org.citygml4j.builder.jaxb.xml.io.writer
Class JAXBModelWriter

java.lang.Object
  extended by org.citygml4j.builder.jaxb.xml.io.writer.AbstractJAXBWriter
      extended by org.citygml4j.builder.jaxb.xml.io.writer.JAXBModelWriter
All Implemented Interfaces:
AbstractCityGMLWriter, CityModelWriter

public class JAXBModelWriter
extends AbstractJAXBWriter
implements CityModelWriter


Constructor Summary
JAXBModelWriter(SAXWriter writer, JAXBOutputFactory factory, ModuleContext moduleContext)
           
JAXBModelWriter(SAXWriter writer, JAXBOutputFactory factory, ModuleContext moduleContext, CityModelInfo cityModelInfo)
           
 
Method Summary
 void close()
           
 CityModelInfo getCityModelInfo()
           
 void reset()
           
 void setCityModelInfo(CityModelInfo cityModelInfo)
           
 void writeEndDocument()
           
 void writeFeatureMember(AbstractFeature feature)
           
 void writeFeatureMember(ADEComponent adeComponent)
           
 void writeFeatureMembers(java.util.List<ModelObject> features)
           
 void writeStartDocument()
           
 
Methods inherited from class org.citygml4j.builder.jaxb.xml.io.writer.AbstractJAXBWriter
flush, getEscapeCharacters, getHeaderComment, getIndentString, getModuleContext, getNamespaceContext, getNamespaceURI, getPrefix, getSchemaLocation, isWriteEncoding, isWriteXMLDecl, setDefaultNamespace, setDefaultNamespace, setEscapeCharacters, setHeaderComment, setIndentString, setModuleContext, setNamespaceContext, setPrefix, setPrefix, setPrefixes, setPrefixes, setSchemaLocation, setSchemaLocation, setSchemaLocations, setSchemaLocations, setWriteEncoding, setWriteXMLDecl, unsetHeaderComment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.citygml4j.xml.io.writer.AbstractCityGMLWriter
flush, getEscapeCharacters, getHeaderComment, getIndentString, getModuleContext, getNamespaceContext, getNamespaceURI, getPrefix, getSchemaLocation, isWriteEncoding, isWriteXMLDecl, setDefaultNamespace, setDefaultNamespace, setEscapeCharacters, setHeaderComment, setIndentString, setModuleContext, setNamespaceContext, setPrefix, setPrefix, setPrefixes, setPrefixes, setSchemaLocation, setSchemaLocation, setSchemaLocations, setSchemaLocations, setWriteEncoding, setWriteXMLDecl, unsetHeaderComment
 

Constructor Detail

JAXBModelWriter

public JAXBModelWriter(SAXWriter writer,
                       JAXBOutputFactory factory,
                       ModuleContext moduleContext)
                throws CityGMLWriteException
Throws:
CityGMLWriteException

JAXBModelWriter

public JAXBModelWriter(SAXWriter writer,
                       JAXBOutputFactory factory,
                       ModuleContext moduleContext,
                       CityModelInfo cityModelInfo)
                throws CityGMLWriteException
Throws:
CityGMLWriteException
Method Detail

reset

public void reset()
Specified by:
reset in interface AbstractCityGMLWriter
Overrides:
reset in class AbstractJAXBWriter

close

public void close()
           throws CityGMLWriteException
Specified by:
close in interface AbstractCityGMLWriter
Overrides:
close in class AbstractJAXBWriter
Throws:
CityGMLWriteException

getCityModelInfo

public CityModelInfo getCityModelInfo()
Specified by:
getCityModelInfo in interface CityModelWriter

setCityModelInfo

public void setCityModelInfo(CityModelInfo cityModelInfo)
Specified by:
setCityModelInfo in interface CityModelWriter

writeFeatureMember

public void writeFeatureMember(AbstractFeature feature)
                        throws CityGMLWriteException
Specified by:
writeFeatureMember in interface CityModelWriter
Throws:
CityGMLWriteException

writeFeatureMember

public void writeFeatureMember(ADEComponent adeComponent)
                        throws CityGMLWriteException
Specified by:
writeFeatureMember in interface CityModelWriter
Throws:
CityGMLWriteException

writeStartDocument

public void writeStartDocument()
                        throws CityGMLWriteException
Specified by:
writeStartDocument in interface CityModelWriter
Throws:
CityGMLWriteException

writeEndDocument

public void writeEndDocument()
                      throws CityGMLWriteException
Specified by:
writeEndDocument in interface CityModelWriter
Throws:
CityGMLWriteException

writeFeatureMembers

public void writeFeatureMembers(java.util.List<ModelObject> features)
                         throws CityGMLWriteException
Specified by:
writeFeatureMembers in interface CityModelWriter
Throws:
CityGMLWriteException