Class TreeXmlUnmarshaller

  • All Implemented Interfaces:
    XmlUnmarshaller

    public class TreeXmlUnmarshaller
    extends java.lang.Object
    implements XmlUnmarshaller
    Implementation of XmlUnmarshaller that is capable of unmarshalling a tree structure of objects from XML.
    Author:
    Daniel Sagenschneider
    • Field Detail

      • ATTRIBUTE_SEPARATOR

        protected static final java.lang.String ATTRIBUTE_SEPARATOR
        Separator of the attribute and element name for loading.
        See Also:
        Constant Field Values
      • parser

        protected final javax.xml.parsers.SAXParser parser
        Parses the XML.
    • Method Detail

      • unmarshall

        public void unmarshall​(java.io.InputStream xml,
                               java.lang.Object target)
                        throws XmlMarshallException
        Description copied from interface: XmlUnmarshaller
        Unmarshalls the input xml onto the input target object.
        Specified by:
        unmarshall in interface XmlUnmarshaller
        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.