public abstract class ObjectXMLExporter<T> extends Object
Constructor and Description |
---|
ObjectXMLExporter() |
Modifier and Type | Method and Description |
---|---|
protected String |
getTag(T object)
Returns the element tag matching the object in parameter.
|
protected void |
writeAttributes(XMLWriter writer,
T object)
Writes the attributes of the object in parameter.
|
protected void |
writeChildren(XMLWriter writer,
T object)
Writes the children of the object in parameter.
|
void |
writeElement(XMLWriter writer,
T object)
Writes in XML the given
object in the element returned by the
getTag , then writes its attributes and children
calling writeAttributes
and writeChildren methods. |
public void writeElement(XMLWriter writer, T object) throws IOException
object
in the element returned by the
getTag
, then writes its attributes and children
calling writeAttributes
and writeChildren
methods.IOException
protected String getTag(T object)
Home
prefix if it's the case.protected void writeAttributes(XMLWriter writer, T object) throws IOException
IOException
protected void writeChildren(XMLWriter writer, T object) throws IOException
IOException
© Copyrights 2006-2016 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License