Package com.epam.xml.engine
Interface UnmarshalerListener
- All Known Subinterfaces:
XMLUnmarshaler<T>
- All Known Implementing Classes:
AbstractUnmarshaler,DOMUnmarshaler,SAXUnmarshaler
public interface UnmarshalerListener
- Author:
- Serhiy_Zahriychuk
-
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String name) The end of element.voidThe end marshaling.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.
-
Method Details
-
startMarshaling
void startMarshaling()Start marshaling. -
setAttribute
Sets attribute value for property name.- Parameters:
name- the property namevalue- the property value
-
lookup
Find the property with given name in current node.- Parameters:
name- the name of an elementattributes- the attributes of current element- Throws:
RuntimeException- if given property not found
-
startElement
The start of element.- Parameters:
name- the name of an element
-
setValue
Sets the value for current element.- Parameters:
value- the property value
-
endElement
The end of element.- Parameters:
name- the name of an element
-
endMarshaling
void endMarshaling()The end marshaling.
-