Javolution 6.0.0 java
|
Public Member Functions | |
Default () | |
boolean | isReferenceable () |
Object | newInstance (Class<?> cls, javolution.xml.XMLFormat.InputElement xml) throws XMLStreamException |
void | read (XMLFormat.InputElement xml, Object obj) throws XMLStreamException |
void | write (Object obj, XMLFormat.OutputElement xml) throws XMLStreamException |
T | newInstance (Class<? extends T > cls, InputElement xml) throws XMLStreamException |
abstract void | write (T obj, OutputElement xml) throws XMLStreamException |
abstract void | read (InputElement xml, T obj) throws XMLStreamException |
Static Private Attributes | |
static final String | NULL |
Returns the default XML format for any object having a plain text format; this XML representation consists of the plain text representation of the object as a "value" attribute.
Definition at line 986 of file XMLFormat.java.
javolution.xml.XMLFormat< T >.Default.Default | ( | ) |
boolean javolution.xml.XMLFormat< T >.Default.isReferenceable | ( | ) |
Definition at line 994 of file XMLFormat.java.
|
inherited |
Allocates a new object of the specified class from the specified XML input element. By default, this method returns an object created using the public no-arg constructor of the specified class. XML formats may override this method in order to use private/multi-arg constructors.
cls | the class of the object to return. |
xml | the XML input element. |
Definition at line 152 of file XMLFormat.java.
Object javolution.xml.XMLFormat< T >.Default.newInstance | ( | Class<?> | cls, |
javolution.xml.XMLFormat.InputElement | xml | ||
) | throws XMLStreamException |
Definition at line 999 of file XMLFormat.java.
References javolution.text.TextContext.getFormat(), and javolution.text.TextFormat< T >.parse().
|
abstractinherited |
Parses an XML input element into the specified object.
xml | the XML element to parse. |
obj | the object created through newInstance and to setup from the specified XML element. |
void javolution.xml.XMLFormat< T >.Default.read | ( | XMLFormat.InputElement | xml, |
Object | obj | ||
) | throws XMLStreamException |
Definition at line 1014 of file XMLFormat.java.
void javolution.xml.XMLFormat< T >.Default.write | ( | Object | obj, |
XMLFormat.OutputElement | xml | ||
) | throws XMLStreamException |
Definition at line 1020 of file XMLFormat.java.
References javolution.text.TextContext.getFormat().
|
abstractinherited |
Formats an object into the specified XML output element.
obj | the object to format. |
xml | the XMLElement destination. |
|
staticprivateinherited |
Holds null
representation.
Definition at line 121 of file XMLFormat.java.