public class TLcdXMLMapping extends Object
Contains a set of object factories that can be used to create a Java instance representing an element from the XML document.
Please refer tothis package's documentation
and the
com.luciad.format.xml.bind package documentation
for a general
overview of the XML Binding Framework.Constructor and Description |
---|
TLcdXMLMapping()
Creates a new, empty
TLcdXMLMapping . |
TLcdXMLMapping(ILcdXMLMappingLibrary... aLibrary)
Creates a new
TLcdXMLMapping for the specified mapping
libraries. |
TLcdXMLMapping(ILcdXMLMappingLibrary aLibrary)
Creates a new
TLcdXMLMapping and configures it with
the specified mapping library. |
TLcdXMLMapping(List<ILcdXMLMappingLibrary> aLibrary)
Creates a new
TLcdXMLMapping and configures it
with the specified mapping libraries. |
Modifier and Type | Method and Description |
---|---|
<T> T |
createObject(QName aElementName,
Class<T> aClass,
ILcdXMLDocumentContext aDocumentContext)
Creates a new object instance for the specified XML element name, of the specified class (or subclass).
|
TLcdXMLJavaClassResolver |
getJavaClassResolver()
Returns the
TLcdXMLJavaClassResolver used by this mapping. |
Set<String> |
getNamespaceURIs()
Returns the set of namespaces which are supported by this mapping.
|
TLcdXMLObjectFactoryProvider |
getObjectFactoryProvider()
Returns the object factory provider of this mapping.
|
Object |
getProperty(String aName)
Returns the custom property with the specified name.
|
void |
registerNamespaceURI(String aNamespaceURI)
Registers the specified namespace on this mapping.
|
void |
setProperty(String aName,
Object aValue)
Sets the specified custom property on this, to be shared among users of this mapping.
|
public TLcdXMLMapping()
TLcdXMLMapping
.public TLcdXMLMapping(ILcdXMLMappingLibrary aLibrary)
TLcdXMLMapping
and configures it with
the specified mapping library.aLibrary
- the mapping library to configure the mapping with.public TLcdXMLMapping(List<ILcdXMLMappingLibrary> aLibrary)
TLcdXMLMapping
and configures it
with the specified mapping libraries.aLibrary
- the mapping libraries with which the mapping is to be configured.public TLcdXMLMapping(ILcdXMLMappingLibrary... aLibrary)
TLcdXMLMapping
for the specified mapping
libraries.aLibrary
- the mapping libraries with which the mapping is to be configured.public <T> T createObject(QName aElementName, Class<T> aClass, ILcdXMLDocumentContext aDocumentContext)
createObject()
method of this factory.T
- the class the created object should be assignable to.aElementName
- the XML element name for which to create an object.aClass
- the Java class the created object should be assignable to.aDocumentContext
- the document context providing additional information about the document in which
the object will be included.public TLcdXMLObjectFactoryProvider getObjectFactoryProvider()
public TLcdXMLJavaClassResolver getJavaClassResolver()
TLcdXMLJavaClassResolver
used by this mapping. See TLcdXMLJavaClassResolver
for more information.TLcdXMLJavaClassResolver
used by this mapping.public Object getProperty(String aName)
aName
- the name of the custom property to be returned.public void setProperty(String aName, Object aValue)
aName
- the name of the custom property to be set.aValue
- the property to be set.public Set<String> getNamespaceURIs()
public void registerNamespaceURI(String aNamespaceURI)
aNamespaceURI
- the namespace for which object factories and additional information are registered on
this mapping.