Package com.luciad.format.xml.schema
Class TLcdXMLTypedElementReaderProvider
java.lang.Object
com.luciad.format.xml.schema.TLcdXMLTypedElementReaderProvider
- All Implemented Interfaces:
ILcdXMLElementReaderProvider
,ILcdXMLTypedElementReaderProvider
public class TLcdXMLTypedElementReaderProvider
extends Object
implements ILcdXMLTypedElementReaderProvider
Deprecated.
Default implementation of
ILcdXMLTypereaderProvider
.
Readers need only be registered for types; the provider will automatically
perform mappings from element stacks to types, as well as mappings from types to their
supertypes, based on the XML schema information provided by a ILcdXMLSchemaProvider
.-
Constructor Summary
ConstructorDescriptionTLcdXMLTypedElementReaderProvider
(ILcdXMLSchemaProvider aSchemaProvider) Deprecated.Creates a new, empty type reader provider. -
Method Summary
Modifier and TypeMethodDescriptiongetReaderForElement
(ILcdXMLNameStack aElementStack) Deprecated.Returns an element reader for the given XML element name stack.getReaderForType
(TLcdXMLName aTypeName, boolean aSearchRecursive) Deprecated.Returns an element reader for the given type.void
registerReader
(TLcdXMLName aXMLTypeName, ILcdXMLElementReader aReader) Deprecated.Registers the given reader for the given XML type.void
registerReader
(TLcdXMLName aXMLTypeName, TLcdXMLName[] aElementNameStack, ILcdXMLElementReader aReader) Deprecated.Registers the given reader for the anonymous XML type, identified by the given element name stack, and, if the element name stack is contained within a named type, the name of that type.
-
Constructor Details
-
TLcdXMLTypedElementReaderProvider
Deprecated.Creates a new, empty type reader provider.- Parameters:
aSchemaProvider
- the schema provider to be used by this provider. The schema provider will be used to look up the type and possible supertypes of an element.- Throws:
NullPointerException
- if the given schema provider isnull
.
-
-
Method Details
-
registerReader
Deprecated.Registers the given reader for the given XML type.- Parameters:
aXMLTypeName
- The XML type name for which the reader was written.aReader
- A reader to process the given element.- Throws:
NullPointerException
- if none of the arguments isnull
.
-
registerReader
public void registerReader(TLcdXMLName aXMLTypeName, TLcdXMLName[] aElementNameStack, ILcdXMLElementReader aReader) Deprecated.Registers the given reader for the anonymous XML type, identified by the given element name stack, and, if the element name stack is contained within a named type, the name of that type.- Parameters:
aXMLTypeName
- The XML type name from which the specified element name stack is part of.aElementNameStack
- The element name stack, identifying the XML type within the provided XML type.aReader
- A reader to process the given element.- Throws:
NullPointerException
- ifaReader == null
.
-
getReaderForType
Deprecated.Description copied from interface:ILcdXMLTypedElementReaderProvider
Returns an element reader for the given type. If no reader is available for the given type, andaSearchRecursive == true
, the provider will recursively look at the XML super types of the given type, until a super type is found for which a reader is available.- Specified by:
getReaderForType
in interfaceILcdXMLTypedElementReaderProvider
- Parameters:
aTypeName
- the full XML name of the type for which to retrieve an element reader.aSearchRecursive
- flag indicating whether to look recursively into to the super type hierarchy, if no reader was found.- Returns:
- the reader for the given type, or the most closely super type, if no reader was found
for the type itself and the
aSearchRecursive
flag was set.
-
getReaderForElement
Deprecated.Description copied from interface:ILcdXMLElementReaderProvider
Returns an element reader for the given XML element name stack.- Specified by:
getReaderForElement
in interfaceILcdXMLElementReaderProvider
- Parameters:
aElementStack
- the element name stack for which an element reader is to be returned.- Returns:
- the element reader for the given name stack.
-
com.format.xml.schema
API has been deprecated. Instead, use thecom.format.xml.bind.schema
API.