public class HomeXMLExporter extends ObjectXMLExporter<Home>
HomeXMLHandler class.| Modifier and Type | Class and Description |
|---|---|
protected class |
HomeXMLExporter.PieceOfFurnitureExporter
Default exporter class used to write a piece of furniture in XML.
|
| Constructor and Description |
|---|
HomeXMLExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getExportedContentName(Object owner,
Content content)
Returns the saved name of the given
content owned by an object. |
protected String |
getId(Object object)
Returns the XML id of the given
object that can be referenced by other elements. |
protected void |
writeAttributes(XMLWriter writer,
Home home)
Writes as XML attributes some data of
home object with the given writer. |
protected void |
writeBackgroundImage(XMLWriter writer,
BackgroundImage backgroundImage)
Writes in XML the
background object with the given writer. |
protected void |
writeBaseboard(XMLWriter writer,
Baseboard baseboard,
String attributeName)
Writes in XML the
baseboard object with the given writer. |
protected void |
writeCamera(XMLWriter writer,
Camera camera,
String attributeName)
Writes in XML the
camera object with the given writer. |
protected void |
writeChildren(XMLWriter writer,
Home home)
Writes as XML elements some objects that depends on of
home with the given writer. |
protected void |
writeCompass(XMLWriter writer,
Compass compass)
Writes in XML the
compass object with the given writer. |
protected void |
writeDimensionLine(XMLWriter writer,
DimensionLine dimensionLine)
Writes in XML the
dimensionLine object with the given writer. |
void |
writeElement(XMLWriter writer,
Home home)
Writes in XML the
home object and the objects that depends on it with the given writer. |
protected void |
writeEnvironment(XMLWriter writer,
HomeEnvironment environment)
Writes in XML the
environment object with the given writer. |
protected void |
writeLabel(XMLWriter writer,
Label label)
Writes in XML the
label object with the given writer. |
protected void |
writeLevel(XMLWriter writer,
Level level)
Writes in XML the
level object with the given writer. |
protected void |
writeMaterial(XMLWriter writer,
HomeMaterial material,
Content model)
Writes in XML the
material object with the given writer. |
protected void |
writePieceOfFurniture(XMLWriter writer,
HomePieceOfFurniture piece)
Writes in XML the
piece object with the given writer. |
protected void |
writePolyline(XMLWriter writer,
Polyline polyline)
Writes in XML the
polyline object with the given writer. |
protected void |
writePrint(XMLWriter writer,
HomePrint print)
Writes in XML the
print object with the given writer. |
protected void |
writeRoom(XMLWriter writer,
Room room)
Writes in XML the
room object with the given writer. |
protected void |
writeTextStyle(XMLWriter writer,
TextStyle textStyle,
String attributeName)
Writes in XML the
textStyle object with the given writer. |
protected void |
writeTexture(XMLWriter writer,
HomeTexture texture,
String attributeName)
Writes in XML the
texture object with the given writer. |
protected void |
writeWall(XMLWriter writer,
Wall wall)
Writes in XML the
wall object with the given writer. |
getTagprotected String getId(Object object)
object that can be referenced by other elements.IllegalArgumentException - if the object has no associated id.public void writeElement(XMLWriter writer, Home home) throws IOException
home object and the objects that depends on it with the given writer.writeElement in class ObjectXMLExporter<Home>IOExceptionprotected void writeAttributes(XMLWriter writer, Home home) throws IOException
home object with the given writer.writeAttributes in class ObjectXMLExporter<Home>IOExceptionprotected void writeChildren(XMLWriter writer, Home home) throws IOException
home with the given writer.writeChildren in class ObjectXMLExporter<Home>IOExceptionprotected void writeEnvironment(XMLWriter writer, HomeEnvironment environment) throws IOException
environment object with the given writer.IOExceptionprotected void writeBackgroundImage(XMLWriter writer, BackgroundImage backgroundImage) throws IOException
background object with the given writer.IOExceptionprotected void writePrint(XMLWriter writer, HomePrint print) throws IOException
print object with the given writer.IOExceptionprotected void writeCompass(XMLWriter writer, Compass compass) throws IOException
compass object with the given writer.IOExceptionprotected void writeCamera(XMLWriter writer, Camera camera, String attributeName) throws IOException
camera object with the given writer.IOExceptionprotected void writeLevel(XMLWriter writer, Level level) throws IOException
level object with the given writer.IOExceptionprotected void writePieceOfFurniture(XMLWriter writer, HomePieceOfFurniture piece) throws IOException
piece object with the given writer.IOExceptionprotected void writeMaterial(XMLWriter writer, HomeMaterial material, Content model) throws IOException
material object with the given writer.IOExceptionprotected void writeWall(XMLWriter writer, Wall wall) throws IOException
wall object with the given writer.IOExceptionprotected void writeRoom(XMLWriter writer, Room room) throws IOException
room object with the given writer.IOExceptionprotected void writePolyline(XMLWriter writer, Polyline polyline) throws IOException
polyline object with the given writer.IOExceptionprotected void writeDimensionLine(XMLWriter writer, DimensionLine dimensionLine) throws IOException
dimensionLine object with the given writer.IOExceptionprotected void writeLabel(XMLWriter writer, Label label) throws IOException
label object with the given writer.IOExceptionprotected void writeTextStyle(XMLWriter writer, TextStyle textStyle, String attributeName) throws IOException
textStyle object with the given writer.IOExceptionprotected void writeBaseboard(XMLWriter writer, Baseboard baseboard, String attributeName) throws IOException
baseboard object with the given writer.IOExceptionprotected void writeTexture(XMLWriter writer, HomeTexture texture, String attributeName) throws IOException
texture object with the given writer.IOException

© Copyrights 2006-2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License