public abstract class ObjectXMLExporter<T>
extends java.lang.Object
| Constructor and Description | 
|---|
ObjectXMLExporter()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.lang.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 java.io.IOException
object in the element returned by the
 getTag, then writes its attributes and children
 calling writeAttributes
 and writeChildren methods.java.io.IOExceptionprotected java.lang.String getTag(T object)
Home prefix if it's the case.protected void writeAttributes(XMLWriter writer, T object) throws java.io.IOException
java.io.IOException
                        
© Copyright 2024 Space Mushrooms
                            
Distributed under GNU General Public License