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