public final class XMLInstanceBuilder<T> extends Object
Constructor and Description |
---|
XMLInstanceBuilder() |
XMLInstanceBuilder(boolean loadDescriptions) |
Modifier and Type | Method and Description |
---|---|
void |
endDocument()
On end document.
|
void |
endElement(String nodeName)
Ends element.
|
protected ReflectDataStorage |
getReflectDataStorage(Class _class) |
T |
getRootObject()
Gets root Object.
|
Object |
lookup(String nodeName,
Attributes attributes)
Finds instance by nodeName.
|
void |
setAttribute(Object instance,
String attributeName,
String attributeValue)
Sets attribute.
|
void |
setAttribute(String attributeName,
String attributeValue)
Sets attribute.
|
void |
setGamut(int gamut) |
void |
setRootClass(Class source)
Sets a root class.
|
void |
setRootObject(T rootObject,
boolean replaceData)
Set root Object.
|
void |
setValue(String value)
Sets the value.
|
void |
startDocument()
Starts document.
|
void |
startElement(String elementName)
Starts element.
|
public XMLInstanceBuilder()
public XMLInstanceBuilder(boolean loadDescriptions)
public void setGamut(int gamut)
public Object lookup(String nodeName, Attributes attributes)
nodeName
- attributes
- public void setAttribute(String attributeName, String attributeValue)
attributeName
- attributeValue
- RuntimeException
- if occurredpublic void setAttribute(Object instance, String attributeName, String attributeValue)
attributeName
- attributeValue
- RuntimeException
- if occurredpublic void setValue(String value)
value
- the valueRuntimeException
- if occurredpublic void startDocument()
public void startElement(String elementName)
public void endElement(String nodeName)
nodeName
- RuntimeException
- if occurredpublic void endDocument()
public void setRootClass(Class source)
public final T getRootObject()
public void setRootObject(T rootObject, boolean replaceData)
rootObject
- protected final ReflectDataStorage getReflectDataStorage(Class _class)
Copyright © 2000–2022 EPAM Systems. All rights reserved.