|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.xml.mapper.XMLInstanceBuilder<T>
public final class XMLInstanceBuilder<T>
User: Volodymyr_Biloshkurskyi@epam.com Date: Jul 21, 2009 : 5:44:12 PM
Constructor Summary | |
---|---|
XMLInstanceBuilder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLInstanceBuilder()
Method Detail |
---|
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 value
RuntimeException
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |