Class TLcdXMLSchemaBasedMappingUtil
java.lang.Object
com.luciad.format.xml.bind.schema.TLcdXMLSchemaBasedMappingUtil
Provides utility methods for working with XML Schema mappings.
- Since:
- 9.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdSelfDescribedFeatured
createFeaturedObject
(TLcdXMLSchemaBasedMapping aMapping, TLcdXMLSchemaElement aSchemaElement) Creates a new object instance for the specified XML Schema type, and implementingcom.luciad.util.ILcdSelfDescribedFeatured
.static <T> T
createObject
(TLcdXMLSchemaBasedMapping aMapping, TLcdXMLSchemaElement aSchemaElement, Class<T> aClass) Creates a new object instance for the specified XML Schema element, of the specified class (or subclass).
-
Method Details
-
createObject
public static <T> T createObject(TLcdXMLSchemaBasedMapping aMapping, TLcdXMLSchemaElement aSchemaElement, Class<T> aClass) Creates a new object instance for the specified XML Schema element, of the specified class (or subclass). This method will retrieve the object factory for the specified [XML Schema type, Java class] pair and call thecreateObject()
method of this factory.- Type Parameters:
T
- the class the created object should be assignable to.- Parameters:
aMapping
- the XML mapping from which to retrieve an XML object factory.aSchemaElement
- the XML element type for which to create an object.aClass
- the Java class the created object should be assignable to.- Returns:
- a new object instance for the specified XML Schema type and Java class.
-
createFeaturedObject
public static ILcdSelfDescribedFeatured createFeaturedObject(TLcdXMLSchemaBasedMapping aMapping, TLcdXMLSchemaElement aSchemaElement) Creates a new object instance for the specified XML Schema type, and implementingcom.luciad.util.ILcdSelfDescribedFeatured
. This method will retrieve the object factory for the specified [XML Schema type, Java class] pair and call thecreateObject()
method of this factory.- Parameters:
aMapping
- the XML mapping from which to retrieve an XML object factory.aSchemaElement
- the XML Schema element for which to create an object.- Returns:
- a new object instance for the specified XML Schema type and Java class.
-