Class TreeXmlUnmarshaller

  • All Implemented Interfaces:

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


        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​( 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
        xml - XML to unmarshall.
        target - Target object to load XML data onto.
        XmlMarshallException - Should fail to load XML data onto the target object.