|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface that identifies a class that can be serialized as XML. An object implementing this interface must be able to persist it's data to XML and set it's values from an XML.
| Method Summary | |
java.lang.String |
getXmlString()
returns a String containing the XML representation of the object. |
void |
loadFromXml(java.io.Reader reader)
load the object data from xml. |
void |
toXml(java.io.Writer writer)
marhsall the object to xml and place it in writer. |
| Method Detail |
public void toXml(java.io.Writer writer)
throws java.io.IOException,
MappingException,
MarshalException,
ValidationException
writer -
java.io.IOException
MappingException
MarshalException
ValidationException
public void loadFromXml(java.io.Reader reader)
throws java.io.IOException,
MappingException,
MarshalException,
ValidationException
reader - a reader containing a parseable xml
java.io.IOException
MappingException
MarshalException
ValidationException
public java.lang.String getXmlString()
throws java.io.IOException,
MappingException,
MarshalException,
ValidationException
String containing the XML representation of the object.
This method internally calls toXml, exceptions thrown from this method are not caught.
java.io.IOException - if toXml throws it
MappingException - if toXml throws it
MarshalException - if toXml throws it
ValidationException - if toXml throws ittoXml(Writer)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||