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 TypeMethodDescriptionvoidendElement(String name) The end of element.void(non-Javadoc)voidlookup(String name, Attributes attributes) Find the property with given name in current node.voidsetAttribute(String name, String value) Sets attribute value for property name.voidSets the value for current element.voidstartElement(String name) The start of element.voidStart 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:UnmarshalerListenerFind the property with given name in current node.- Specified by:
lookupin interfaceUnmarshalerListener- Parameters:
name- the name of an elementattributes- the attributes of current element
-
setAttribute
Description copied from interface:UnmarshalerListenerSets attribute value for property name.- Specified by:
setAttributein interfaceUnmarshalerListener- Parameters:
name- the property namevalue- the property value
-
setValue
Description copied from interface:UnmarshalerListenerSets the value for current element.- Specified by:
setValuein interfaceUnmarshalerListener- Parameters:
value- the property value
-
startMarshaling
public void startMarshaling()Description copied from interface:UnmarshalerListenerStart marshaling.- Specified by:
startMarshalingin interfaceUnmarshalerListener
-
endElement
Description copied from interface:UnmarshalerListenerThe end of element.- Specified by:
endElementin interfaceUnmarshalerListener- Parameters:
name- the name of an element
-
startElement
Description copied from interface:UnmarshalerListenerThe start of element.- Specified by:
startElementin interfaceUnmarshalerListener- Parameters:
name- the name of an element
-
getRootObject
-
endMarshaling
public void endMarshaling()(non-Javadoc)- Specified by:
endMarshalingin interfaceUnmarshalerListener- See Also:
-
unmarshal
- Specified by:
unmarshalin interfaceXMLUnmarshaler<T>
-
unmarshal
- Specified by:
unmarshalin interfaceXMLUnmarshaler<T>
-