Class TLcdXMLSchemaDecoder

java.lang.Object
com.luciad.format.xml.schema.TLcdXMLSchemaDecoder
All Implemented Interfaces:
ILcdInputStreamFactoryCapable

public class TLcdXMLSchemaDecoder extends Object implements ILcdInputStreamFactoryCapable
Deprecated.
Use of the com.format.xml.schema API has been deprecated. Instead, use the com.format.xml.bind.schema API.
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 Details

    • TLcdXMLSchemaDecoder

      public TLcdXMLSchemaDecoder()
      Deprecated.
      Creates a new schema decoder instance.
  • Method Details

    • setInputStreamFactory

      public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
      Deprecated.
      Sets the input stream factory that will be used for creating input streams given source names.
      Specified by:
      setInputStreamFactory in interface ILcdInputStreamFactoryCapable
      Parameters:
      aInputStreamFactory - the input stream factory to be used.
    • getInputStreamFactory

      public ILcdInputStreamFactory getInputStreamFactory()
      Deprecated.
      Returns the input stream factory that is currently used for creating input streams given source names.
      Specified by:
      getInputStreamFactory in interface ILcdInputStreamFactoryCapable
      Returns:
      the input stream factory that is currently used.
    • setSchemaProvider

      public void setSchemaProvider(ILcdXMLSchemaProvider aSchemaProvider)
      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 - if aSchemaProvider == null
    • getSchemaProvider

      public ILcdXMLSchemaProvider 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

      public void setSchemaLocationsMap(ILcdXMLSchemaLocationsMap aSchemaLocationsMap)
      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 - if aSchemaLocationsMap == null.
    • getSchemaLocationsMap

      public ILcdXMLSchemaLocationsMap 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

      public TLcdXMLSchema decodeSchema(String aNamespaceURI, String aSourceName) throws IOException
      Deprecated.
      use decodeSchema(aSourceName)
      Decodes the schema located at the given location.
      Parameters:
      aNamespaceURI -
      aSourceName -
      Returns:
      the schema corresponding to the given namespace.
      Throws:
      IOException
    • decodeSchema

      public TLcdXMLSchema decodeSchema(String aSourceName) throws IOException
      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