Package com.luciad.format.xml.schema
Class TLcdXMLTypedElementAdapterProvider
java.lang.Object
com.luciad.format.xml.schema.TLcdXMLTypedElementAdapterProvider
- All Implemented Interfaces:
ILcdXMLElementAdapterProvider,ILcdXMLTypedElementAdapterProvider
- Direct Known Subclasses:
TLcdOGCFilterElementAdapterProvider10,TLcdOGCFilterElementAdapterProvider11,TLcdSLDFeatureTypeStyleElementAdapterProvider10
public class TLcdXMLTypedElementAdapterProvider
extends Object
implements ILcdXMLTypedElementAdapterProvider
Deprecated.
Default implementation of
ILcdXMLTypedElementAdapterProvider.
Element adapters 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
ConstructorsConstructorDescriptionTLcdXMLTypedElementAdapterProvider(ILcdXMLSchemaProvider aSchemaProvider) Deprecated.Creates a new, empty adapter provider.TLcdXMLTypedElementAdapterProvider(ILcdXMLSchemaProvider aSchemaProvider, ILcdXMLTypedElementAdapterProvider aCompositeAdapterProvider) Deprecated.Creates a new, empty adapter provider. -
Method Summary
Modifier and TypeMethodDescriptiongetAdapterForObject(ILcdXMLNameStack aParentElementNameStack, ILcdXMLObjectStack aParentObjectStack, TLcdXMLName aSubstitutionGroup, Object aObject) Deprecated.Returns theILcdXMLElementAdapterthat is most suitable to handle the object, specified by the given name/object stack, substitution group and object.getAdapterForType(TLcdXMLName aTypeName, Object aObject, boolean aRecursiveSearch) Deprecated.Returns aILcdXMLElementAdapterfor the given XML name and Java object.voidregisterElementAdapter(TLcdXMLName aTypeName, TLcdXMLName[] aElementNameStack, Class aJavaClass, ILcdXMLElementAdapter aAdapter) Deprecated.Registers the given adapter for the anonymous XML type, identified by the element name stack, and, if the element name stack is contained within a named type, the name of that type.voidregisterElementAdapter(TLcdXMLName aTypeName, Class aJavaClass, ILcdXMLElementAdapter aAdapter) Deprecated.Registers the given element adapter for the given XML type and Java type.
-
Constructor Details
-
TLcdXMLTypedElementAdapterProvider
Deprecated.Creates a new, empty adapter 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.
-
TLcdXMLTypedElementAdapterProvider
public TLcdXMLTypedElementAdapterProvider(ILcdXMLSchemaProvider aSchemaProvider, ILcdXMLTypedElementAdapterProvider aCompositeAdapterProvider) Deprecated.Creates a new, empty adapter 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.
-
-
Method Details
-
registerElementAdapter
public void registerElementAdapter(TLcdXMLName aTypeName, Class aJavaClass, ILcdXMLElementAdapter aAdapter) Deprecated.Registers the given element adapter for the given XML type and Java type.- Parameters:
aTypeName- the XML type name for which the adapter was written.aJavaClass- the Java class for which the adapter was written.aAdapter- the adapter to be registered.- Throws:
NullPointerException- if one of the arguments isnull.
-
registerElementAdapter
public void registerElementAdapter(TLcdXMLName aTypeName, TLcdXMLName[] aElementNameStack, Class aJavaClass, ILcdXMLElementAdapter aAdapter) Deprecated.Registers the given adapter for the anonymous XML type, identified by the element name stack, and, if the element name stack is contained within a named type, the name of that type.- Parameters:
aTypeName- 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.aAdapter- the adapter to be registered.- Throws:
NullPointerException- ifaAdapter == null || aJavaClass == null.
-
getAdapterForType
public ILcdXMLElementAdapter getAdapterForType(TLcdXMLName aTypeName, Object aObject, boolean aRecursiveSearch) Deprecated.Description copied from interface:ILcdXMLTypedElementAdapterProviderReturns aILcdXMLElementAdapterfor the given XML name and Java object. If no reader is available for the XML given type, andaSearchRecursive == true, the provider will recursively look at the XML base types of the given type, until a base type is found for which a reader is available.- Specified by:
getAdapterForTypein interfaceILcdXMLTypedElementAdapterProvider- Parameters:
aTypeName-aObject-aRecursiveSearch-- Returns:
- a element adapter that can handle the given (XML Type, Java object) combination.
-
getAdapterForObject
public ILcdXMLElementAdapter getAdapterForObject(ILcdXMLNameStack aParentElementNameStack, ILcdXMLObjectStack aParentObjectStack, TLcdXMLName aSubstitutionGroup, Object aObject) Deprecated.Description copied from interface:ILcdXMLElementAdapterProviderReturns theILcdXMLElementAdapterthat is most suitable to handle the object, specified by the given name/object stack, substitution group and object.- Specified by:
getAdapterForObjectin interfaceILcdXMLElementAdapterProvider- Parameters:
aParentElementNameStack- the XML name stack, containing all XML names from the root element up to the parent element nameaParentObjectStack- the XML object stack, containing all XML objects from the root element up to the parent elementaSubstitutionGroup- the substitution group the element belongs to, if there is one (nullotherwise).aObject- the element for which to return an adapter.- Returns:
- the element adapter that is most suitable to handle the specified object.
-
com.format.xml.schemaAPI has been deprecated. Instead, use thecom.format.xml.bind.schemaAPI.