Package com.luciad.format.xml.schema
Class TLcdXMLSchemaDecoder
java.lang.Object
com.luciad.format.xml.schema.TLcdXMLSchemaDecoder
- All Implemented Interfaces:
ILcdInputStreamFactoryCapable
Deprecated.
A decoder for XML schemas.
The decoded schema is registered with the decoder's schema provider. All subschemas, included
in the schema via the
include statement, are also decoded. Schemas, referred to
via the import statement, will be added to the decoder's schema locations map.
All schemas decoded by the same schema decoder will only be decoded once (the schema provider of
the decoder keeps track of which schemas were already loaded), and can potentially reference each
other directly (e.g., an XML element X in schema A of XML type Y in schema B, shall be
represented by a TLcdXMLElement object in a TLcdXMLSchema object for
schema A that references to a TLcdXMLType object in a
TLcdXMLSchema object for schema B). Schemas decoded by different decoders will not
reference each other; if a schema is needed in two different decoders, both decoders will load
it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeSchema(String aSourceName) Deprecated.Decodes the schema located at the given location.decodeSchema(String aNamespaceURI, String aSourceName) Deprecated.usedecodeSchema(aSourceName)Deprecated.Returns the input stream factory that is currently used for creating input streams given source names.Deprecated.Returns the schema locations map in which all imports are stored.Deprecated.Returns the schema provider that is used to retrieve and link schemas.voidsetInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory) Deprecated.Sets the input stream factory that will be used for creating input streams given source names.voidsetSchemaLocationsMap(ILcdXMLSchemaLocationsMap aSchemaLocationsMap) Deprecated.Sets the schema locations map in which all imports should be stored.voidsetSchemaProvider(ILcdXMLSchemaProvider aSchemaProvider) Deprecated.Sets the schema provider to be used by the decoder to retrieve and link schemas.
-
Constructor Details
-
TLcdXMLSchemaDecoder
public TLcdXMLSchemaDecoder()Deprecated.Creates a new schema decoder instance.
-
-
Method Details
-
setInputStreamFactory
Deprecated.Sets the input stream factory that will be used for creating input streams given source names.- Specified by:
setInputStreamFactoryin interfaceILcdInputStreamFactoryCapable- Parameters:
aInputStreamFactory- the input stream factory to be used.
-
getInputStreamFactory
Deprecated.Returns the input stream factory that is currently used for creating input streams given source names.- Specified by:
getInputStreamFactoryin interfaceILcdInputStreamFactoryCapable- Returns:
- the input stream factory that is currently used.
-
setSchemaProvider
Deprecated.Sets the schema provider to be used by the decoder to retrieve and link schemas.- Parameters:
aSchemaProvider- the schema provider to be used by the decoder to link schemas.- Throws:
NullPointerException- ifaSchemaProvider == null
-
getSchemaProvider
Deprecated.Returns the schema provider that is used to retrieve and link schemas.- Returns:
- the schema provider that is used to retrieve and link schemas.
-
setSchemaLocationsMap
Deprecated.Sets the schema locations map in which all imports should be stored.- Parameters:
aSchemaLocationsMap- the schema locations map in which all imports should be stored.- Throws:
NullPointerException- ifaSchemaLocationsMap == null.
-
getSchemaLocationsMap
Deprecated.Returns the schema locations map in which all imports are stored.- Returns:
- the schema locations map in which all imports are stored.
-
decodeSchema
Deprecated.usedecodeSchema(aSourceName)Decodes the schema located at the given location.- Parameters:
aNamespaceURI-aSourceName-- Returns:
- the schema corresponding to the given namespace.
- Throws:
IOException
-
decodeSchema
Deprecated.Decodes the schema located at the given location.- Parameters:
aSourceName- the location of the schema to be decoded.- Returns:
- the schema corresponding to the given namespace.
- Throws:
IOException
-
com.format.xml.schemaAPI has been deprecated. Instead, use thecom.format.xml.bind.schemaAPI.