Class DOMUnmarshaler<T>

java.lang.Object
com.epam.xml.engine.AbstractUnmarshaler<T>
com.epam.xml.engine.DOMUnmarshaler<T>
All Implemented Interfaces:
UnmarshalerListener, XMLUnmarshaler<T>

public class DOMUnmarshaler<T> extends AbstractUnmarshaler<T>
Author:
Serhiy_Zahriychuk Date: 21-Jul-2009
  • Constructor Details

    • DOMUnmarshaler

      public DOMUnmarshaler()
  • Method Details

    • unmarshal

      public T unmarshal(Class<?> source, DocumentReader reader, boolean replaceData)
    • unmarshal

      public T unmarshal(T source, DocumentReader reader, boolean replaceData)
    • lookup

      public void lookup(String name, Attributes attributes)
      Description copied from interface: UnmarshalerListener
      Find the property with given name in current node.
      Parameters:
      name - the name of an element
      attributes - the attributes of current element
    • setAttribute

      public void setAttribute(String name, String value)
      Description copied from interface: UnmarshalerListener
      Sets attribute value for property name.
      Parameters:
      name - the property name
      value - the property value
    • setValue

      public void setValue(String value)
      Description copied from interface: UnmarshalerListener
      Sets the value for current element.
      Parameters:
      value - the property value
    • startMarshaling

      public void startMarshaling()
      Description copied from interface: UnmarshalerListener
      Start marshaling.
    • endMarshaling

      public void endMarshaling()
      Description copied from interface: UnmarshalerListener
      The end marshaling.
    • endElement

      public void endElement(String name)
      Description copied from interface: UnmarshalerListener
      The end of element.
      Parameters:
      name - the name of an element
    • startElement

      public void startElement(String name)
      Description copied from interface: UnmarshalerListener
      The start of element.
      Parameters:
      name - the name of an element
    • getRootObject

      public T getRootObject()