Class TLcdAPP6AModelDescriptor

All Implemented Interfaces:
ILcdDataModelDescriptor, ILcdModelDescriptor, ILcdAPP6AModelDescriptor, ILcdFeaturedDescriptor, ILcdFeaturedDescriptorProvider, Serializable

public class TLcdAPP6AModelDescriptor extends TLcdFeaturedModelDescriptor implements ILcdAPP6AModelDescriptor, ILcdDataModelDescriptor

This class is an ILcdModelDescriptor for models that contain ILcdAPP6ACoded objects.

This class also implements ILcdDataModelDescriptor, giving access to the data model and the data types of the model elements.

See Also:
  • Constructor Details

    • TLcdAPP6AModelDescriptor

      public TLcdAPP6AModelDescriptor()
      Creates a model descriptor with the default APP-6A features.
    • TLcdAPP6AModelDescriptor

      public TLcdAPP6AModelDescriptor(String aSourceName, String aTypeName, String aDisplayName, String[] aFeatureNames)
      Creates a model descriptor with the default APP-6A features.
      Parameters:
      aSourceName - a source name for the model
      aTypeName - a type name for the model
      aDisplayName - a display name for the model
      aFeatureNames - not used
    • TLcdAPP6AModelDescriptor

      public TLcdAPP6AModelDescriptor(String aSourceName, String aTypeName, String aDisplayName, String[] aFeatureNames, Class[] aFeatureClasses)
      Creates a model descriptor with the default APP-6A features.
      Parameters:
      aSourceName - a source name for the model
      aTypeName - a type name for the model
      aDisplayName - a display name for the model
      aFeatureNames - not used
      aFeatureClasses - not used
  • Method Details

    • getDataModel

      public TLcdDataModel getDataModel()
      Returns the TLcdDataModel of the APP-6A format. Since this data model is defined statically, this method will always return the result of TLcdAPP6ADataTypes.getDataModel()
      Specified by:
      getDataModel in interface ILcdDataModelDescriptor
      Returns:
      The TLcdDataModel of the APP-6A format.
      See Also:
    • getModelElementTypes

      public Set<TLcdDataType> getModelElementTypes()
      Returns a set with only a single data type: TLcdAPP6ADataTypes.APP6AObjectType, since all model elements have this static data type.
      Specified by:
      getModelElementTypes in interface ILcdDataModelDescriptor
      Returns:
      A set with a single entry: the data type of all model elements.
    • getModelTypes

      public Set<TLcdDataType> getModelTypes()
      Description copied from interface: ILcdDataModelDescriptor

      Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually instances in the model; but they are not required to do so.

      A simple and correct implementation would be to return getDataModel().getTypes(). Implementations are encouraged to return a subset of this set if they can do so without spending an unreasonable amount of resources.

      Implementations should return null in case they don't know which types are present in the model.

      Specified by:
      getModelTypes in interface ILcdDataModelDescriptor
      Returns:
      a set containing all the data types of which instances can be used in the model associated with this descriptor