Package aQute.lib.xmldtoparser
Class DomDTOParser
java.lang.Object
aQute.lib.xmldtoparser.DomDTOParser
Parse an XML file based on a DTO as schema
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DomDTOParser
public DomDTOParser()
-
-
Method Details
-
parse
parse the given XML file based on the type as the schema. Attributes and elements are mapped to fields in an object of this type. If the field is a collection or a DTO type, the parse will be recursive.- Parameters:
type
- the type acting as schemedoc
- the file- Returns:
- a DTO of type
- Throws:
Exception
-
parse
parse the given XML file based on the type as the schema. Attributes and elements are mapped to fields in an object of this type. If the field is a collection or a DTO type, the parse will be recursive.- Parameters:
type
- the type acting as schemedoc
- the file- Returns:
- a DTO of type
- Throws:
Exception
-