Class ALcdXMLModelEncoder
java.lang.Object
com.luciad.format.xml.bind.schema.ALcdXMLModelEncoder
- All Implemented Interfaces:
ILcdOutputStreamFactoryCapable
,ILcdModelEncoder
,Serializable
- Direct Known Subclasses:
TLcdAIXM51ModelEncoder
,TLcdGML2ModelEncoder
,TLcdGML31ModelEncoder
,TLcdGML32ModelEncoder
,TLcdNVG15ModelEncoder
,TLcdNVG20ModelEncoder
public abstract class ALcdXMLModelEncoder
extends Object
implements ILcdModelEncoder, ILcdOutputStreamFactoryCapable
This abstract class provides additional methods for a
ILcdModelEncoder
to encode models into XML schema based documents.- Since:
- 10.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Exports the given model to a destination result.abstract EntityResolver2
Returns theorg.xml.sax.ext.EntityResolver2
that is used for creating input sources for XSD schemas.abstract ILcdOutputStreamFactory
Returns theILcdOutputStreamFactory
that is used for creating output streams.abstract XMLOutputFactory
Returns thejavax.xml.stream.XMLOutputFactory
that is used by this encoder for creatingjavax.xml.stream.XMLStreamWriter
instances.abstract void
setEntityResolver
(EntityResolver2 aEntityResolver) Sets theorg.xml.sax.ext.EntityResolver2
to be used for creating input sources for XSD schemas.abstract void
setOutputStreamFactory
(ILcdOutputStreamFactory aOutputStreamFactory) Sets theILcdOutputStreamFactory
to be used for creating output streams.abstract void
setXMLOutputFactory
(XMLOutputFactory aXMLOutputFactory) Sets thejavax.xml.stream.XMLOutputFactory
to be used by this encoder for creatingjavax.xml.stream.XMLStreamWriter
instances.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdModelEncoder
canExport, canSave, export, getDisplayName, save
-
Constructor Details
-
ALcdXMLModelEncoder
public ALcdXMLModelEncoder()
-
-
Method Details
-
getOutputStreamFactory
Returns theILcdOutputStreamFactory
that is used for creating output streams.- Specified by:
getOutputStreamFactory
in interfaceILcdOutputStreamFactoryCapable
- Returns:
- the
ILcdOutputStreamFactory
that is used for creating output streams. - See Also:
-
setOutputStreamFactory
Sets theILcdOutputStreamFactory
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.- Specified by:
setOutputStreamFactory
in interfaceILcdOutputStreamFactoryCapable
- Parameters:
aOutputStreamFactory
- the output stream factory to be used by this model encoder.- See Also:
-
getXMLOutputFactory
Returns thejavax.xml.stream.XMLOutputFactory
that is used by this encoder for creatingjavax.xml.stream.XMLStreamWriter
instances.- Returns:
- the
javax.xml.stream.XMLOutputFactory
that is used by this encoder for creatingjavax.xml.stream.XMLStreamWriter
instances.
-
setXMLOutputFactory
Sets thejavax.xml.stream.XMLOutputFactory
to be used by this encoder for creatingjavax.xml.stream.XMLStreamWriter
instances.- Parameters:
aXMLOutputFactory
- thejavax.xml.stream.XMLOutputFactory
to be used by this encoder for creatingjavax.xml.stream.XMLStreamWriter
instances.
-
getEntityResolver
Returns theorg.xml.sax.ext.EntityResolver2
that is used for creating input sources for XSD schemas.- Returns:
- the entity resolver to be used for creating input sources for XSD schemas.
-
setEntityResolver
Sets theorg.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.- Parameters:
aEntityResolver
- the entity resolver to be used for creating input sources for XSD schemas.
-
export
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.- Parameters:
aModel
- the model to exportaDestination
- the destination- Throws:
IOException
- if an I/O error occurs during encoding.UnsupportedOperationException
- in case the encoder is not able to write to the given result- See Also:
-