Package com.luciad.format.xml.schema
Class TLcdXMLTypedObjectFactoryProvider
java.lang.Object
com.luciad.format.xml.schema.TLcdXMLTypedObjectFactoryProvider
- All Implemented Interfaces:
ILcdXMLObjectFactoryProvider
public class TLcdXMLTypedObjectFactoryProvider
extends Object
implements ILcdXMLObjectFactoryProvider
Deprecated.
Default implementation of
ILcdXMLTypedFactoryProvider
.
Factories 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
ConstructorDescriptionTLcdXMLTypedObjectFactoryProvider
(ILcdXMLSchemaProvider aSchemaProvider) Deprecated.Creates a new, empty type factory provider. -
Method Summary
Modifier and TypeMethodDescriptiongetFactoryForElement
(ILcdXMLNameStack aElementStack) Deprecated.Returns an object factory for the given XML element name stack.void
registerFactory
(TLcdXMLName aTypeName, ILcdXMLObjectFactory aFactory) Deprecated.Registers the given factory for the given XML type.void
registerFactory
(TLcdXMLName aXMLTypeName, TLcdXMLName[] aElementNameStack, ILcdXMLObjectFactory aFactory) Deprecated.Registers the given factory for the XML type, identified by the element name stack that is contained in the given XML type.
-
Constructor Details
-
TLcdXMLTypedObjectFactoryProvider
Deprecated.Creates a new, empty type factory 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
-
registerFactory
Deprecated.Registers the given factory for the given XML type.- Parameters:
aTypeName
- The XML type for which the given factory can create object instances.aFactory
- The factory that can create object instances for the given type.- Throws:
NullPointerException
- if one of the arguments isnull
.
-
registerFactory
public void registerFactory(TLcdXMLName aXMLTypeName, TLcdXMLName[] aElementNameStack, ILcdXMLObjectFactory aFactory) Deprecated.Registers the given factory for the XML type, identified by the element name stack that is contained in the given XML 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.aFactory
- A factory to register the specified type.- Throws:
NullPointerException
- if none of the arguments isnull
.
-
getFactoryForElement
Deprecated.Description copied from interface:ILcdXMLObjectFactoryProvider
Returns an object factory for the given XML element name stack. If no factory is available, the provider should returnnull
, not the default factory!- Specified by:
getFactoryForElement
in interfaceILcdXMLObjectFactoryProvider
- Parameters:
aElementStack
- the element name stack for which an object factory is to be returned.- Returns:
- the object factory for the given name stack.
-
com.format.xml.schema
API has been deprecated. Instead, use thecom.format.xml.bind.schema
API.