Class TLcdXMLSchemaBasedMappingUtil

java.lang.Object
com.luciad.format.xml.bind.schema.TLcdXMLSchemaBasedMappingUtil

public class TLcdXMLSchemaBasedMappingUtil extends Object
Provides utility methods for working with XML Schema mappings.
Since:
9.0
  • 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 the createObject() 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 implementing com.luciad.util.ILcdSelfDescribedFeatured.

      This method will retrieve the object factory for the specified [XML Schema type, Java class] pair and call the createObject() 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.