Class ObjectXMLExporter
Defined in: SweetHome3D.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Base class used to write objects to XML.
|
Method Attributes | Method Name and Description |
---|---|
getTag(object)
Returns the element tag matching the object in parameter.
|
|
writeAttributes(writer, object)
Writes the attributes of the object in parameter.
|
|
writeChildren(writer, object)
Writes the children of the object in parameter.
|
|
writeElement(writer, object)
Writes in XML the given
object in the element returned by the
{@link #getTag(Object) getTag}, then writes its attributes and children
calling {@link #writeAttributes(XMLWriter, Object) writeAttributes}
and {@link #writeChildren(XMLWriter, Object) writeChildren} methods. |
Class Detail
ObjectXMLExporter()
Base class used to write objects to XML.
Author: Emmanuel Puybaret.
Author: Emmanuel Puybaret.
Method Detail
{string}
getTag(object)
Returns the element tag matching the object in parameter.
- Parameters:
- {Object} object
- Returns:
- {string} the simple class name of the exported object with its first letter at lower case,
without
Home
prefix if it's the case.
writeAttributes(writer, object)
Writes the attributes of the object in parameter.
- Parameters:
- {XMLWriter} writer
- {Object} object
writeChildren(writer, object)
Writes the children of the object in parameter.
- Parameters:
- {XMLWriter} writer
- {Object} object
writeElement(writer, object)
Writes in XML the given
object
in the element returned by the
{@link #getTag(Object) getTag}, then writes its attributes and children
calling {@link #writeAttributes(XMLWriter, Object) writeAttributes}
and {@link #writeChildren(XMLWriter, Object) writeChildren} methods.
- Parameters:
- {XMLWriter} writer
- {Object} object