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 java.lang.String |
getExportedContentName(java.lang.Object owner,
Content content)
Returns the saved name of the given
content owned by an object. |
protected java.lang.String |
getId(java.lang.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,
java.lang.String attributeName)
Writes in XML the
baseboard object with the given writer . |
protected void |
writeCamera(XMLWriter writer,
Camera camera,
java.lang.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,
java.lang.String attributeName)
Writes in XML the
textStyle object with the given writer . |
protected void |
writeTexture(XMLWriter writer,
HomeTexture texture,
java.lang.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 . |
getTag
protected java.lang.String getId(java.lang.Object object)
object
that can be referenced by other elements.java.lang.IllegalArgumentException
- if the object
has no associated id.public void writeElement(XMLWriter writer, Home home) throws java.io.IOException
home
object and the objects that depends on it with the given writer
.writeElement
in class ObjectXMLExporter<Home>
java.io.IOException
protected void writeAttributes(XMLWriter writer, Home home) throws java.io.IOException
home
object with the given writer
.writeAttributes
in class ObjectXMLExporter<Home>
java.io.IOException
protected void writeChildren(XMLWriter writer, Home home) throws java.io.IOException
home
with the given writer
.writeChildren
in class ObjectXMLExporter<Home>
java.io.IOException
protected void writeEnvironment(XMLWriter writer, HomeEnvironment environment) throws java.io.IOException
environment
object with the given writer
.java.io.IOException
protected void writeBackgroundImage(XMLWriter writer, BackgroundImage backgroundImage) throws java.io.IOException
background
object with the given writer
.java.io.IOException
protected void writePrint(XMLWriter writer, HomePrint print) throws java.io.IOException
print
object with the given writer
.java.io.IOException
protected void writeCompass(XMLWriter writer, Compass compass) throws java.io.IOException
compass
object with the given writer
.java.io.IOException
protected void writeCamera(XMLWriter writer, Camera camera, java.lang.String attributeName) throws java.io.IOException
camera
object with the given writer
.java.io.IOException
protected void writeLevel(XMLWriter writer, Level level) throws java.io.IOException
level
object with the given writer
.java.io.IOException
protected void writePieceOfFurniture(XMLWriter writer, HomePieceOfFurniture piece) throws java.io.IOException
piece
object with the given writer
.java.io.IOException
protected void writeMaterial(XMLWriter writer, HomeMaterial material, Content model) throws java.io.IOException
material
object with the given writer
.java.io.IOException
protected void writeWall(XMLWriter writer, Wall wall) throws java.io.IOException
wall
object with the given writer
.java.io.IOException
protected void writeRoom(XMLWriter writer, Room room) throws java.io.IOException
room
object with the given writer
.java.io.IOException
protected void writePolyline(XMLWriter writer, Polyline polyline) throws java.io.IOException
polyline
object with the given writer
.java.io.IOException
protected void writeDimensionLine(XMLWriter writer, DimensionLine dimensionLine) throws java.io.IOException
dimensionLine
object with the given writer
.java.io.IOException
protected void writeLabel(XMLWriter writer, Label label) throws java.io.IOException
label
object with the given writer
.java.io.IOException
protected void writeTextStyle(XMLWriter writer, TextStyle textStyle, java.lang.String attributeName) throws java.io.IOException
textStyle
object with the given writer
.java.io.IOException
protected void writeBaseboard(XMLWriter writer, Baseboard baseboard, java.lang.String attributeName) throws java.io.IOException
baseboard
object with the given writer
.java.io.IOException
protected void writeTexture(XMLWriter writer, HomeTexture texture, java.lang.String attributeName) throws java.io.IOException
texture
object with the given writer
.java.io.IOException
protected java.lang.String getExportedContentName(java.lang.Object owner, Content content)
content
owned by an object.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License