CaseParser¶
-
public class
CaseParser<T>¶ Class for converting the XML passed in the constructor to the instance of the
CaseXmlclass 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
CaseMapperclass. The created object will provide methods for parsing the givenxmlDocumentinto objects of the givenclazzor theCaseXmlclass.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