com.format.xml.schema
API has been deprecated. Instead, use the com.format.xml.bind.schema
API.public class TLcdXMLSchemaProvider extends Object implementsILcdXMLEditableSchemaProvider, ILcdInputStreamFactoryCapable
ILcdXMLSchemaProvider
. It uses a
TLcdXMLSchemaDecoder
internally to decode new schemas.Constructor and Description |
---|
TLcdXMLSchemaProvider()
Deprecated.
Creates a new schema provider.
|
TLcdXMLSchemaProvider(ILcdXMLSchemaLocationsMap aSchemaLocationsMap)
Deprecated.
Creates a new schema provider, with a given schema locations map.
|
Modifier and Type | Method and Description |
---|---|
void |
addSchema(TLcdXMLSchema aSchema)
Deprecated.
Adds the given schema to the schema provider's schema table.
|
ILcdInputStreamFactory |
getInputStreamFactory()
Deprecated.
Returns the input stream factory that is currently used for creating input streams
from which schemas are decoded.
|
TLcdXMLSchema |
getSchema(String aNameSpace)
Deprecated.
Returns the schema corresponding to the given namespace URI, or
null if
no schema is available for the given namespace URI. |
ILcdXMLSchemaLocationsMap |
getSchemaLocationsMap()
Deprecated.
Returns the schema locations map that is used by this provider to retrieve schema
locations.
|
boolean |
isSchemaAvailable(String aNameSpace)
Deprecated.
Returns
true if there is a schema available for the given namespace,
false otherwise. |
void |
setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
Deprecated.
Sets the input stream factory that will be used for creating input streams
from which to decode schemas.
|
void |
setSchemaLocationsMap(ILcdXMLSchemaLocationsMap aSchemaLocationsMap)
Deprecated.
Sets the schema locations map to be used by this provider to retrieve its schema locations from.
|
public TLcdXMLSchemaProvider()
public TLcdXMLSchemaProvider(ILcdXMLSchemaLocationsMap aSchemaLocationsMap)
aSchemaLocationsMap
- the schema locations map that contains the schema locations.NullPointerException
- if the given schema locations map is null
.public ILcdXMLSchemaLocationsMap getSchemaLocationsMap()
public void setSchemaLocationsMap(ILcdXMLSchemaLocationsMap aSchemaLocationsMap)
aSchemaLocationsMap
- the schema locations map to be used by this provider.NullPointerException
- if aSchemaLocationsMap == null
.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 TLcdXMLSchema getSchema(String aNameSpace)
ILcdXMLSchemaProvider
null
if
no schema is available for the given namespace URI.getSchema
in interface ILcdXMLSchemaProvider
aNameSpace
- the namespace URI of the schema to be retrievednull
if no schema was
available.public boolean isSchemaAvailable(String aNameSpace)
ILcdXMLSchemaProvider
true
if there is a schema available for the given namespace,
false
otherwise.isSchemaAvailable
in interface ILcdXMLSchemaProvider
aNameSpace
- the namespace of the schema for which to check if it is availablepublic void addSchema(TLcdXMLSchema aSchema)
ILcdXMLEditableSchemaProvider
addSchema
in interface ILcdXMLEditableSchemaProvider
aSchema
- the schema to be added.