com.epam.xml.engine
Class DOMUnmarshaler<T>

java.lang.Object
  extended by com.epam.xml.engine.AbstractUnmarshaler<T>
      extended by 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

Field Summary
 
Fields inherited from class com.epam.xml.engine.AbstractUnmarshaler
xmlInstanceBuilder
 
Constructor Summary
DOMUnmarshaler()
           
 
Method Summary
 void endElement(String name)
          The end of element.
 void endMarshaling()
          The end marshaling.
 T getRootObject()
           
 void lookup(String name, Attributes attributes)
          Find the property with given name in current node.
 void setAttribute(String name, String value)
          Sets attribute value for property name.
 void setValue(String value)
          Sets the value for current element.
 void startElement(String name)
          The start of element.
 void startMarshaling()
          Start marshaling.
 T unmarshal(Class<?> source, DocumentReader reader, boolean replaceData)
           
 T unmarshal(T source, DocumentReader reader, boolean replaceData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUnmarshaler

public DOMUnmarshaler()
Method Detail

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()


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.