Package com.epam.xml.engine
Class SAXUnmarshaler<T>
java.lang.Object
com.epam.xml.engine.AbstractUnmarshaler<T>
com.epam.xml.engine.SAXUnmarshaler<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
UnmarshalerListener
,XMLUnmarshaler<T>
- Author:
- Serhiy_Zahriychuk
-
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
(non-Javadoc)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 documentReader, boolean replaceData) unmarshal
(T source, DocumentReader documentReader, boolean replaceData)
-
Constructor Details
-
SAXUnmarshaler
public SAXUnmarshaler() -
SAXUnmarshaler
public SAXUnmarshaler(boolean loadDescriptions)
-
-
Method Details
-
lookup
Description copied from interface:UnmarshalerListener
Find the property with given name in current node.- Specified by:
lookup
in interfaceUnmarshalerListener
- Parameters:
name
- the name of an elementattributes
- the attributes of current element
-
setAttribute
Description copied from interface:UnmarshalerListener
Sets attribute value for property name.- Specified by:
setAttribute
in interfaceUnmarshalerListener
- Parameters:
name
- the property namevalue
- the property value
-
setValue
Description copied from interface:UnmarshalerListener
Sets the value for current element.- Specified by:
setValue
in interfaceUnmarshalerListener
- Parameters:
value
- the property value
-
startMarshaling
public void startMarshaling()Description copied from interface:UnmarshalerListener
Start marshaling.- Specified by:
startMarshaling
in interfaceUnmarshalerListener
-
endElement
Description copied from interface:UnmarshalerListener
The end of element.- Specified by:
endElement
in interfaceUnmarshalerListener
- Parameters:
name
- the name of an element
-
startElement
Description copied from interface:UnmarshalerListener
The start of element.- Specified by:
startElement
in interfaceUnmarshalerListener
- Parameters:
name
- the name of an element
-
getRootObject
-
endMarshaling
public void endMarshaling()(non-Javadoc)- Specified by:
endMarshaling
in interfaceUnmarshalerListener
- See Also:
-
unmarshal
- Specified by:
unmarshal
in interfaceXMLUnmarshaler<T>
-
unmarshal
- Specified by:
unmarshal
in interfaceXMLUnmarshaler<T>
-