Class TLcdMS2525bModelDescriptor
- All Implemented Interfaces:
ILcdDataModelDescriptor,ILcdModelDescriptor,ILcdMS2525bModelDescriptor,ILcdFeaturedDescriptor,ILcdFeaturedDescriptorProvider,Serializable
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:
-
Field Summary
Fields inherited from class com.luciad.model.TLcdFeaturedModelDescriptor
fFeatureClasses, fFeatureNames -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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. -
Method Summary
Modifier and TypeMethodDescriptionReturns theTLcdDataModelof the MS2525b format.Returns a set with only a single data type:TLcdMS2525bDataTypes.MS2525bObjectType, since all model elements have this static data type.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.Methods inherited from class com.luciad.model.TLcdFeaturedModelDescriptor
getFeatureClass, getFeatureCount, getFeaturedDescriptor, getFeatureIndex, getFeatureNameMethods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasureMethods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
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 modelaTypeName- a type name for the modelaDisplayName- a display name for the modelaFeatureNames- 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 modelaTypeName- a type name for the modelaDisplayName- a display name for the modelaFeatureNames- not usedaFeatureClasses- not used
-
-
Method Details
-
getDataModel
Returns theTLcdDataModelof the MS2525b format. Since this data model is defined statically, this method will always return the result ofTLcdMS2525bDataTypes.getDataModel()- Specified by:
getDataModelin interfaceILcdDataModelDescriptor- Returns:
- The
TLcdDataModelof the MS2525b format. - See Also:
-
getModelElementTypes
Returns a set with only a single data type:TLcdMS2525bDataTypes.MS2525bObjectType, since all model elements have this static data type.- Specified by:
getModelElementTypesin interfaceILcdDataModelDescriptor- Returns:
- A set with a single entry: the data type of all model elements.
-
getModelTypes
Description copied from interface:ILcdDataModelDescriptorReturns 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
nullin case they don't know which types are present in the model.- Specified by:
getModelTypesin interfaceILcdDataModelDescriptor- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-