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.
fFeatureClasses, fFeatureNames
Constructor and Description |
---|
TLcdMS2525bModelDescriptor()
Creates a model descriptor with the default MIL-STD 2525b features.
|
TLcdMS2525bModelDescriptor(String aSourceName,
String aTypeName,
String aDisplayName,
String[] aFeatureNames)
Creates a model descriptor with the default MIL-STD 2525b features.
|
TLcdMS2525bModelDescriptor(String aSourceName,
String aTypeName,
String aDisplayName,
String[] aFeatureNames,
Class[] aFeatureClasses)
Creates a model descriptor with the default MIL-STD 2525b features.
|
Modifier and Type | Method and Description |
---|---|
TLcdDataModel |
getDataModel()
Returns the
TLcdDataModel of the MS2525b format. |
Set<TLcdDataType> |
getModelElementTypes()
Returns a set with only a single data type:
TLcdMS2525bDataTypes.MS2525bObjectType , since
all model elements have this static data type. |
Set<TLcdDataType> |
getModelTypes()
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.
|
getFeatureClass, getFeatureCount, getFeaturedDescriptor, getFeatureIndex, getFeatureName
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, getSourceName, getTypeName
getFeatureUnitOfMeasure
public TLcdMS2525bModelDescriptor()
public TLcdMS2525bModelDescriptor(String aSourceName, String aTypeName, String aDisplayName, String[] aFeatureNames)
aSourceName
- a source name for the modelaTypeName
- a type name for the modelaDisplayName
- a display name for the modelaFeatureNames
- not usedpublic TLcdMS2525bModelDescriptor(String aSourceName, String aTypeName, String aDisplayName, String[] aFeatureNames, Class[] aFeatureClasses)
aSourceName
- a source name for the modelaTypeName
- a type name for the modelaDisplayName
- a display name for the modelaFeatureNames
- not usedaFeatureClasses
- not usedpublic TLcdDataModel getDataModel()
TLcdDataModel
of the MS2525b format. Since this data model is defined
statically, this method will always return the result of TLcdMS2525bDataTypes.getDataModel()
getDataModel
in interface ILcdDataModelDescriptor
TLcdDataModel
of the MS2525b format.TLcdMS2525bDataTypes.getDataModel()
public Set<TLcdDataType> getModelElementTypes()
TLcdMS2525bDataTypes.MS2525bObjectType
, since
all model elements have this static data type.getModelElementTypes
in interface ILcdDataModelDescriptor
public Set<TLcdDataType> getModelTypes()
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.
getModelTypes
in interface ILcdDataModelDescriptor