com.format.xml.schema
API has been deprecated. Instead, use the com.format.xml.bind.schema
API.public class TLcdXMLSchemaDecoder extends Object implements ILcdInputStreamFactoryCapable
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 and Description |
---|
TLcdXMLSchemaDecoder()
Deprecated.
Creates a new schema decoder instance.
|
Modifier and Type | Method and Description |
---|---|
TLcdXMLSchema |
decodeSchema(String aSourceName)
Deprecated.
Decodes the schema located at the given location.
|
TLcdXMLSchema |
decodeSchema(String aNamespaceURI,
String aSourceName)
Deprecated.
use
decodeSchema(aSourceName) |
ILcdInputStreamFactory |
getInputStreamFactory()
Deprecated.
Returns the input stream factory that is currently used for creating input streams
given source names.
|
ILcdXMLSchemaLocationsMap |
getSchemaLocationsMap()
Deprecated.
Returns the schema locations map in which all imports are stored.
|
ILcdXMLSchemaProvider |
getSchemaProvider()
Deprecated.
Returns the schema provider that is used to retrieve and link schemas.
|
void |
setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
Deprecated.
Sets the input stream factory that will be used for creating input streams
given source names.
|
void |
setSchemaLocationsMap(ILcdXMLSchemaLocationsMap aSchemaLocationsMap)
Deprecated.
Sets the schema locations map in which all imports should be stored.
|
void |
setSchemaProvider(ILcdXMLSchemaProvider aSchemaProvider)
Deprecated.
Sets the schema provider to be used by the decoder to retrieve and link schemas.
|
public TLcdXMLSchemaDecoder()
public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
setInputStreamFactory
in interface ILcdInputStreamFactoryCapable
aInputStreamFactory
- the input stream factory to be used.public ILcdInputStreamFactory getInputStreamFactory()
getInputStreamFactory
in interface ILcdInputStreamFactoryCapable
public void setSchemaProvider(ILcdXMLSchemaProvider aSchemaProvider)
aSchemaProvider
- the schema provider to be used by the decoder to link schemas.NullPointerException
- if aSchemaProvider == null
public ILcdXMLSchemaProvider getSchemaProvider()
public void setSchemaLocationsMap(ILcdXMLSchemaLocationsMap aSchemaLocationsMap)
aSchemaLocationsMap
- the schema locations map in which all imports should be stored.NullPointerException
- if aSchemaLocationsMap == null
.public ILcdXMLSchemaLocationsMap getSchemaLocationsMap()
public TLcdXMLSchema decodeSchema(String aNamespaceURI, String aSourceName) throws IOException
decodeSchema(aSourceName)
aNamespaceURI
- aSourceName
- IOException
public TLcdXMLSchema decodeSchema(String aSourceName) throws IOException
aSourceName
- the location of the schema to be decoded.IOException