Package com.epam.xml.engine
Class DOMUnmarshaler<T>
java.lang.Object
com.epam.xml.engine.AbstractUnmarshaler<T>
com.epam.xml.engine.DOMUnmarshaler<T>
- All Implemented Interfaces:
UnmarshalerListener
,XMLUnmarshaler<T>
- Author:
- Serhiy_Zahriychuk Date: 21-Jul-2009
-
Field Summary
Fields inherited from class com.epam.xml.engine.AbstractUnmarshaler
xmlInstanceBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endElement
(String name) The end of element.void
The end marshaling.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
Sets the value for current element.void
startElement
(String name) The start of element.void
Start marshaling.unmarshal
(Class<?> source, DocumentReader reader, boolean replaceData) unmarshal
(T source, DocumentReader reader, boolean replaceData)
-
Constructor Details
-
DOMUnmarshaler
public DOMUnmarshaler()
-
-
Method Details
-
unmarshal
-
unmarshal
-
lookup
Description copied from interface:UnmarshalerListener
Find the property with given name in current node.- Parameters:
name
- the name of an elementattributes
- the attributes of current element
-
setAttribute
Description copied from interface:UnmarshalerListener
Sets attribute value for property name.- Parameters:
name
- the property namevalue
- the property value
-
setValue
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
Description copied from interface:UnmarshalerListener
The end of element.- Parameters:
name
- the name of an element
-
startElement
Description copied from interface:UnmarshalerListener
The start of element.- Parameters:
name
- the name of an element
-
getRootObject
-