com.format.xml.schema
API has been deprecated. Instead, use the com.format.xml.bind.schema
API.public class TLcdXMLTypedObjectFactoryProvider extends Object implementsILcdXMLObjectFactoryProvider
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 and Description |
---|
TLcdXMLTypedObjectFactoryProvider(ILcdXMLSchemaProvider aSchemaProvider)
Deprecated.
Creates a new, empty type factory provider.
|
Modifier and Type | Method and Description |
---|---|
ILcdXMLObjectFactory |
getFactoryForElement(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.
|
public TLcdXMLTypedObjectFactoryProvider(ILcdXMLSchemaProvider aSchemaProvider)
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.NullPointerException
- if the given schema provider is null
.public void registerFactory(TLcdXMLName aTypeName, ILcdXMLObjectFactory aFactory)
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.NullPointerException
- if one of the arguments is null
.public void registerFactory(TLcdXMLName aXMLTypeName, TLcdXMLName[] aElementNameStack, ILcdXMLObjectFactory aFactory)
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.NullPointerException
- if none of the arguments is null
.public ILcdXMLObjectFactory getFactoryForElement(ILcdXMLNameStack aElementStack)
ILcdXMLObjectFactoryProvider
null
, not the default factory!getFactoryForElement
in interface ILcdXMLObjectFactoryProvider
aElementStack
- the element name stack for which an object factory is to be returned.