Class TLcdXMLCompositeSchemaTypeMapping

java.lang.Object
com.luciad.format.xml.bind.schema.dataobject.TLcdXMLCompositeSchemaTypeMapping
All Implemented Interfaces:
ILcdXMLSchemaTypeMapping

public class TLcdXMLCompositeSchemaTypeMapping extends Object implements ILcdXMLSchemaTypeMapping
Composite ILcdXMLSchemaTypeMapping implementation that manages a collection of schema type mappings.
Since:
10.0
  • Constructor Details

    • TLcdXMLCompositeSchemaTypeMapping

      public TLcdXMLCompositeSchemaTypeMapping()
      Constructs a new empty composite schema type mapping.
    • TLcdXMLCompositeSchemaTypeMapping

      public TLcdXMLCompositeSchemaTypeMapping(Collection<TLcdDataModel> aModels)
      Constructs a new composite schema type mapping and adds the schema type mappings of the given data models and all their dependencies to this type mapping.
      Parameters:
      aModels - the data models to add
      Since:
      2017.1
  • Method Details

    • getType

      public TLcdDataType getType(TLcdXMLSchemaTypeIdentifier aTypeId)
      Returns the data type to which the given XML schema type is mapped.
      Specified by:
      getType in interface ILcdXMLSchemaTypeMapping
      Parameters:
      aTypeId - the XML schema type identifier for which to returned the mapped data type
      Returns:
      the data type that maps on the given XML schema type
    • add

      public void add(TLcdDataModel aDataModel)
      Adds the schema type mappings of the given data model and all its dependencies to this type mapping.
      Parameters:
      aDataModel - the data model to add
      See Also:
    • add

      public void add(ILcdXMLSchemaTypeMapping aSchemaTypeMapping)
      Adds the given schema type mapping to this composite.
      Parameters:
      aSchemaTypeMapping - the schema type mapping to add
    • remove

      public void remove(ILcdXMLSchemaTypeMapping aSchemaTypeMapping)
      Removes the given schema type mapping from this composite mapping.
      Parameters:
      aSchemaTypeMapping - the schema type mapping that is to be removed
    • remove

      public void remove(TLcdDataModel aDataModel)
      Removes the given data model from this composite mapping.
      Parameters:
      aDataModel - the data model to remove