public class TLcdXMLCompositeSchemaTypeMapping extends Object implements ILcdXMLSchemaTypeMapping
ILcdXMLSchemaTypeMapping
implementation that manages a collection of schema type mappings.Constructor and Description |
---|
TLcdXMLCompositeSchemaTypeMapping()
Constructs a new empty composite schema type mapping.
|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ILcdXMLSchemaTypeMapping aSchemaTypeMapping)
Adds the given schema type mapping to this composite.
|
void |
add(TLcdDataModel aDataModel)
Adds the schema type mappings of the given data model and all its dependencies to this type mapping.
|
TLcdDataType |
getType(TLcdXMLSchemaTypeIdentifier aTypeId)
Returns the data type to which the given XML schema type is mapped.
|
void |
remove(ILcdXMLSchemaTypeMapping aSchemaTypeMapping)
Removes the given schema type mapping from this composite mapping.
|
void |
remove(TLcdDataModel aDataModel)
Removes the given data model from this composite mapping.
|
public TLcdXMLCompositeSchemaTypeMapping()
public TLcdXMLCompositeSchemaTypeMapping(Collection<TLcdDataModel> aModels)
aModels
- the data models to addpublic TLcdDataType getType(TLcdXMLSchemaTypeIdentifier aTypeId)
getType
in interface ILcdXMLSchemaTypeMapping
aTypeId
- the XML schema type identifier for which to returned the mapped data typepublic void add(TLcdDataModel aDataModel)
aDataModel
- the data model to addTLcdXMLSchemaTypeMappingAnnotation
public void add(ILcdXMLSchemaTypeMapping aSchemaTypeMapping)
aSchemaTypeMapping
- the schema type mapping to addpublic void remove(ILcdXMLSchemaTypeMapping aSchemaTypeMapping)
aSchemaTypeMapping
- the schema type mapping that is to be removedpublic void remove(TLcdDataModel aDataModel)
aDataModel
- the data model to remove