public class TLcdXMLTypeObjectFactoryProvider extends Object
com.luciad.format.xml.bind.schema.ILcdXMLSchemaObjectFactory
's that can
create Java instances for XML types and datatypes.
This provider maintains two lookup tables:
com.luciad.format.xml.bind package
documentation
for a general overview of the XML Binding Framework.ILcdXMLTypeUnmarshaller
,
ILcdXMLDatatypeUnmarshaller
,
ILcdXMLUnmarshaller
,
TLcdXMLSchemaBasedDecoder
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
getDatatypeClasses(TLcdXMLSchemaTypeIdentifier aTypeId)
Returns for the specified XSD Schema type identifier a set of all Java classes for which an
object factory is registered.
|
Set<TLcdXMLSchemaTypeIdentifier> |
getDatatypeIdentifiers(Class<?> aClass)
Returns for the specified Java class a Set of all XSD Schema type identifiers for which an
object factory is registered.
|
<T> ILcdXMLObjectFactory<T> |
getDatatypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId,
Class<T> aJavaClass)
Returns an
ILcdXMLObjectFactory which is capable of
creating Java instances assignable to the specified Java class
and corresponding to the specified XML Schema type. |
Set<Class<?>> |
getTypeClasses(TLcdXMLSchemaTypeIdentifier aTypeId)
Returns for the specified XSD Schema type identifier a set of all Java classes for which an
object factory is registered.
|
Set<TLcdXMLSchemaTypeIdentifier> |
getTypeIdentifiers(Class<?> aClass)
Returns for the specified Java class a Set of all XSD Schema type identifiers for which an
object factory is registered.
|
<T> ILcdXMLObjectFactory<T> |
getTypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId,
Class<T> aJavaClass)
Returns an
ILcdXMLObjectFactory that is capable of
creating instances of the specified Java class for the specified XML
Schema type. |
<T> ILcdXMLObjectFactory<? extends T> |
getTypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId,
Class<T> aJavaClass,
boolean aAllowClassSubstitution) |
<T> void |
registerDatatypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId,
Class<T> aJavaClass,
ILcdXMLObjectFactory<T> aSchemaObjectFactory)
Registers an
ILcdXMLObjectFactory which is capable of
creating Java instances assignable to the specified java class and corresponding to
the specified XML Schema data type. |
<T> void |
registerTypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId,
Class<T> aJavaClass,
ILcdXMLObjectFactory<T> aSchemaObjectFactory)
Registers an
ILcdXMLSchemaObjectFactory which is capable of creating Java instances
of the specified class for the specified XML Schema type. |
String |
toString()
Returns a general description of this provider, containing a set of all [XML Schema type, Java
class] pairs with their corresponding factories and all [XML Schema simple type, Java class]
pairs with their corresponding datatype parser.
|
public <T> void registerTypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId, Class<T> aJavaClass, ILcdXMLObjectFactory<T> aSchemaObjectFactory)
ILcdXMLSchemaObjectFactory
which is capable of creating Java instances
of the specified class for the specified XML Schema type.aTypeId
- the XML Schema Type for which to register the object factory.aJavaClass
- the Java class of which instances will be created.aSchemaObjectFactory
- the object factory to be registered.NullPointerException
- if one of the arguments is null
.public <T> ILcdXMLObjectFactory<T> getTypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId, Class<T> aJavaClass)
ILcdXMLObjectFactory
that is capable of
creating instances of the specified Java class for the specified XML
Schema type.aTypeId
- the XML Schema type for which to register the factory.aJavaClass
- the Java class of which the factory creates instances.null
if no such factory was found.NullPointerException
- if one of the arguments is null
.public <T> ILcdXMLObjectFactory<? extends T> getTypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId, Class<T> aJavaClass, boolean aAllowClassSubstitution)
public Set<Class<?>> getTypeClasses(TLcdXMLSchemaTypeIdentifier aTypeId)
aTypeId
- the XSD Schema type identifier for which to return the corresponding Java
classes.public Set<TLcdXMLSchemaTypeIdentifier> getTypeIdentifiers(Class<?> aClass)
aClass
- the XSD Schema type identifier for which to return the corresponding Java
classes.public <T> void registerDatatypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId, Class<T> aJavaClass, ILcdXMLObjectFactory<T> aSchemaObjectFactory)
ILcdXMLObjectFactory
which is capable of
creating Java instances assignable to the specified java class and corresponding to
the specified XML Schema data type.aTypeId
- the XML Schema Type for which to register the factory.aJavaClass
- the Java class to which the objects created by the factory will be assignable.aSchemaObjectFactory
- the factory to be registered.NullPointerException
- if one of the arguments is null
.public <T> ILcdXMLObjectFactory<T> getDatatypeObjectFactory(TLcdXMLSchemaTypeIdentifier aTypeId, Class<T> aJavaClass)
ILcdXMLObjectFactory which is capable of
creating Java instances assignable to the specified Java class
and corresponding to the specified XML Schema type.
aTypeId
- the XML Schema type for which to register the factory.aJavaClass
- the Java class to which the objects created by the factory will be assignable.null
if no such
factory can be found.NullPointerException
- if one of the arguments is null
.public Set<Class<?>> getDatatypeClasses(TLcdXMLSchemaTypeIdentifier aTypeId)
aTypeId
- the XSD Schema type identifier for which to return the corresponding Java
classes.public Set<TLcdXMLSchemaTypeIdentifier> getDatatypeIdentifiers(Class<?> aClass)
aClass
- the XSD Schema type identifier for which to return the corresponding Java
classes.public String toString()