Class TLcdAPP6AModelDescriptor
- All Implemented Interfaces:
ILcdDataModelDescriptor
,ILcdModelDescriptor
,ILcdAPP6AModelDescriptor
,ILcdFeaturedDescriptor
,ILcdFeaturedDescriptorProvider
,Serializable
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:
-
Field Summary
Fields inherited from class com.luciad.model.TLcdFeaturedModelDescriptor
fFeatureClasses, fFeatureNames
-
Constructor Summary
ConstructorDescriptionCreates a model descriptor with the default APP-6A features.TLcdAPP6AModelDescriptor
(String aSourceName, String aTypeName, String aDisplayName, String[] aFeatureNames) Creates a model descriptor with the default APP-6A features.TLcdAPP6AModelDescriptor
(String aSourceName, String aTypeName, String aDisplayName, String[] aFeatureNames, Class[] aFeatureClasses) Creates a model descriptor with the default APP-6A features. -
Method Summary
Modifier and TypeMethodDescriptionReturns theTLcdDataModel
of the APP-6A format.Returns a set with only a single data type:TLcdAPP6ADataTypes.APP6AObjectType
, 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, getFeatureName
Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasure
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
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 modelaTypeName
- a type name for the modelaDisplayName
- a display name for the modelaFeatureNames
- 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 modelaTypeName
- a type name for the modelaDisplayName
- a display name for the modelaFeatureNames
- not usedaFeatureClasses
- not used
-
-
Method Details
-
getDataModel
Returns theTLcdDataModel
of the APP-6A format. Since this data model is defined statically, this method will always return the result ofTLcdAPP6ADataTypes.getDataModel()
- Specified by:
getDataModel
in interfaceILcdDataModelDescriptor
- Returns:
- The
TLcdDataModel
of the APP-6A format. - See Also:
-
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 interfaceILcdDataModelDescriptor
- Returns:
- A set with a single entry: the data type of all model elements.
-
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 interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-