|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.system.client.util.xml.XMLUtility
public class XMLUtility
Class used to convert domain objects to and from XML.
Constructor Summary | |
---|---|
XMLUtility(Marshaller marshaller,
Unmarshaller unmarshaller)
|
Method Summary | |
---|---|
java.lang.Object |
fromXML(java.io.File xmlFile)
Instantiates an object from an XML File that contains the serialized output of that object. |
java.lang.Object |
fromXML(java.io.Reader input)
Instantiates an object from xml input that contains the serialized output of that object. |
java.lang.String |
toXML(java.lang.Object beanObject)
Serializes an object into xml |
void |
toXML(java.lang.Object beanObject,
java.io.Writer stream)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLUtility(Marshaller marshaller, Unmarshaller unmarshaller)
Method Detail |
---|
public java.lang.String toXML(java.lang.Object beanObject) throws XMLUtilityException
beanObject
- The caCORE object to serialize into xml
XMLUtilityException
public void toXML(java.lang.Object beanObject, java.io.Writer stream) throws XMLUtilityException
XMLUtilityException
public java.lang.Object fromXML(java.io.File xmlFile) throws XMLUtilityException
xmlFile
-
XMLUtilityException
public java.lang.Object fromXML(java.io.Reader input) throws XMLUtilityException
input
- Reader type
XMLUtilityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |