CaseParser¶
-
public class
CaseParser
<T>¶ Class for converting the XML passed in the constructor to the instance of the
CaseXml
class or domain class, which is defined bu the class parameter.Parameters: - <T> – the domain class
Constructors¶
CaseParser¶
-
public
CaseParser
(Class<T> clazz, String xmlDocument)¶ Creates an instance of the
CaseMapper
class. The created object will provide methods for parsing the givenxmlDocument
into objects of the givenclazz
or theCaseXml
class.Parameters: - clazz – the domain class
- xmlDocument – the case as a XML string
Methods¶
parseCase¶
-
public T
parseCase
()¶ Parses the XML into an instance of the domain class defined in the class parameter.
Throws: - CaseParserException – if there were problems while parsing case XML
Returns: the created instance