public abstract class ALcdXMLModelEncoder extends Object implements ILcdModelEncoder, ILcdOutputStreamFactoryCapable
ILcdModelEncoder
to encode models into XML schema based documents.Constructor and Description |
---|
ALcdXMLModelEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
export(ILcdModel aModel,
Result aDestination)
Exports the given model to a destination result.
|
abstract EntityResolver2 |
getEntityResolver()
Returns the
org.xml.sax.ext.EntityResolver2 that is used for creating input sources for
XSD schemas. |
abstract ILcdOutputStreamFactory |
getOutputStreamFactory()
Returns the
ILcdOutputStreamFactory that is used for creating output streams. |
abstract XMLOutputFactory |
getXMLOutputFactory()
Returns the
javax.xml.stream.XMLOutputFactory that is used by this encoder for creating
javax.xml.stream.XMLStreamWriter instances. |
abstract void |
setEntityResolver(EntityResolver2 aEntityResolver)
Sets the
org.xml.sax.ext.EntityResolver2 to be used for creating input sources for XSD
schemas. |
abstract void |
setOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory)
Sets the
ILcdOutputStreamFactory to be used for creating output streams. |
abstract void |
setXMLOutputFactory(XMLOutputFactory aXMLOutputFactory)
Sets the
javax.xml.stream.XMLOutputFactory to be used by this encoder for creating
javax.xml.stream.XMLStreamWriter instances. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canExport, canSave, export, getDisplayName, save
public abstract ILcdOutputStreamFactory getOutputStreamFactory()
ILcdOutputStreamFactory
that is used for creating output streams.getOutputStreamFactory
in interface ILcdOutputStreamFactoryCapable
ILcdOutputStreamFactory
that is used for creating output streams.setOutputStreamFactory(com.luciad.io.ILcdOutputStreamFactory)
public abstract void setOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory)
ILcdOutputStreamFactory
to be used for creating output streams. This
output stream factory is used for output streams for both the data files and the XSD schemas.setOutputStreamFactory
in interface ILcdOutputStreamFactoryCapable
aOutputStreamFactory
- the output stream factory to be used by this model encoder.setOutputStreamFactory(com.luciad.io.ILcdOutputStreamFactory)
public abstract XMLOutputFactory getXMLOutputFactory()
javax.xml.stream.XMLOutputFactory
that is used by this encoder for creating
javax.xml.stream.XMLStreamWriter
instances.javax.xml.stream.XMLOutputFactory
that is used by this encoder for creating
javax.xml.stream.XMLStreamWriter
instances.public abstract void setXMLOutputFactory(XMLOutputFactory aXMLOutputFactory)
javax.xml.stream.XMLOutputFactory
to be used by this encoder for creating
javax.xml.stream.XMLStreamWriter
instances.aXMLOutputFactory
- the javax.xml.stream.XMLOutputFactory
to be used by this encoder
for creating javax.xml.stream.XMLStreamWriter
instances.public abstract EntityResolver2 getEntityResolver()
org.xml.sax.ext.EntityResolver2
that is used for creating input sources for
XSD schemas.public abstract void setEntityResolver(EntityResolver2 aEntityResolver)
org.xml.sax.ext.EntityResolver2
to be used for creating input sources for XSD
schemas. This entity resolver is only used for retrieving runtime extension schemas.aEntityResolver
- the entity resolver to be used for creating input sources for XSD
schemas.public void export(ILcdModel aModel, Result aDestination) throws IOException
Exports the given model to a destination result.
Note that the default implementation throws UnsupportedOperationException
. Extensions
from this class should provide a more appropriate implementation.
aModel
- the model to exportaDestination
- the destinationIOException
- if an I/O error occurs during encoding.UnsupportedOperationException
- in case the encoder is not able to write to
the given resultILcdModelEncoder.export(ILcdModel, String)