public class DOMUnmarshaler<T> extends AbstractUnmarshaler<T>
xmlInstanceBuilder
Constructor and Description |
---|
DOMUnmarshaler() |
Modifier and Type | Method and Description |
---|---|
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) |
public T unmarshal(Class<?> source, DocumentReader reader, boolean replaceData)
public T unmarshal(T source, DocumentReader reader, boolean replaceData)
public void lookup(String name, Attributes attributes)
UnmarshalerListener
name
- the name of an elementattributes
- the attributes of current elementpublic void setAttribute(String name, String value)
UnmarshalerListener
name
- the property namevalue
- the property valuepublic void setValue(String value)
UnmarshalerListener
value
- the property valuepublic void startMarshaling()
UnmarshalerListener
public void endMarshaling()
UnmarshalerListener
public void endElement(String name)
UnmarshalerListener
name
- the name of an elementpublic void startElement(String name)
UnmarshalerListener
name
- the name of an elementpublic T getRootObject()
Copyright © 2000–2022 EPAM Systems. All rights reserved.