Class FlatXmlUnmarshaller
java.lang.Object
net.officefloor.plugin.xml.unmarshall.flat.FlatXmlUnmarshaller
- All Implemented Interfaces:
XmlUnmarshaller
XML unmarshaller to load a flat object.
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classHandler to load XML values onto target object. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FlatXmlUnmarshaller.HandlerImplHandler to load the XML to the target object.protected final SAXParserParses the XML. -
Constructor Summary
ConstructorsConstructorDescriptionInitiate with meta-data to unmarshall the XML. -
Method Summary
Modifier and TypeMethodDescriptionvoidunmarshall(InputStream xml, Object target) Unmarshalls the input xml onto the input target object.
-
Field Details
-
parser
Parses the XML. -
handler
Handler to load the XML to the target object.
-
-
Constructor Details
-
FlatXmlUnmarshaller
Initiate with meta-data to unmarshall the XML.- Parameters:
metaData- Meta-data to unmarshall XML.- Throws:
XmlMarshallException- Should fail to initiate instance.
-
-
Method Details
-
unmarshall
Description copied from interface:XmlUnmarshallerUnmarshalls the input xml onto the input target object.- Specified by:
unmarshallin interfaceXmlUnmarshaller- Parameters:
xml- XML to unmarshall.target- Target object to load XML data onto.- Throws:
XmlMarshallException- Should fail to load XML data onto the target object.
-