Class TLcdMS2525bModelDescriptor

java.lang.Object
com.luciad.model.TLcdModelDescriptor
com.luciad.model.TLcdFeaturedModelDescriptor
com.luciad.symbology.milstd2525b.model.TLcdMS2525bModelDescriptor
All Implemented Interfaces:
ILcdDataModelDescriptor, ILcdModelDescriptor, ILcdMS2525bModelDescriptor, ILcdFeaturedDescriptor, ILcdFeaturedDescriptorProvider, Serializable

public class TLcdMS2525bModelDescriptor extends TLcdFeaturedModelDescriptor implements ILcdMS2525bModelDescriptor, ILcdDataModelDescriptor

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

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

See Also:
  • Constructor Details

    • TLcdMS2525bModelDescriptor

      public TLcdMS2525bModelDescriptor()
      Creates a model descriptor with the default MIL-STD 2525b features.
    • TLcdMS2525bModelDescriptor

      public TLcdMS2525bModelDescriptor(String aSourceName, String aTypeName, String aDisplayName, String[] aFeatureNames)
      Creates a model descriptor with the default MIL-STD 2525b 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
    • TLcdMS2525bModelDescriptor

      public TLcdMS2525bModelDescriptor(String aSourceName, String aTypeName, String aDisplayName, String[] aFeatureNames, Class[] aFeatureClasses)
      Creates a model descriptor with the default MIL-STD 2525b 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 MS2525b format. Since this data model is defined statically, this method will always return the result of TLcdMS2525bDataTypes.getDataModel()
      Specified by:
      getDataModel in interface ILcdDataModelDescriptor
      Returns:
      The TLcdDataModel of the MS2525b format.
      See Also:
    • getModelElementTypes

      public Set<TLcdDataType> getModelElementTypes()
      Returns a set with only a single data type: TLcdMS2525bDataTypes.MS2525bObjectType, 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