ILcdFeatured
interface has been deprecated in favor of ILcdDataObject
and TLcdDataModel
.@Deprecated public interface ILcdFeaturedDescriptor
An ILcdFeaturedDescriptor
describes a list of features.
Each feature has an index, a name, and a Class
. Feature
descriptions can be accessed through their indices or through their names.
The features are typically stored in an ILcdFeatured object.
See also the TLcdDataType
class, as this is the preferred way in
LuciadLightspeed for new code to provide data type information.
ILcdFeatured
Modifier and Type | Method and Description |
---|---|
Class |
getFeatureClass(int aIndex)
Deprecated.
Returns the
Class of the feature at the given index. |
int |
getFeatureCount()
Deprecated.
Returns the number of features.
|
int |
getFeatureIndex(String aName)
Deprecated.
Returns the index of the given feature name if it exists, -1 otherwise.
|
String |
getFeatureName(int aIndex)
Deprecated.
Returns the name of the feature at the given index.
|
default ILcdISO19103UnitOfMeasure |
getFeatureUnitOfMeasure(int aIndex)
Deprecated.
Returns the unit of measure in which the features at the given index are expressed.
|
int getFeatureCount()
String getFeatureName(int aIndex)
aIndex
- a valid feature index.int getFeatureIndex(String aName)
aName
- a feature name.Class getFeatureClass(int aIndex)
Class
of the feature at the given index.aIndex
- a valid feature index.Class
of the feature at the given index.default ILcdISO19103UnitOfMeasure getFeatureUnitOfMeasure(int aIndex)
Returns the unit of measure in which the features at the given index are expressed.
This method will only return a non-null
value when the feature represents a measurement,
and all values of the feature are expressed with the same known unit.
In all other conditions this method should return null
.
For example when your model contains speed values expressed in km/h at a certain index, you could describe this with a descriptor which
returns Double.class
for the getFeatureClass
method, and which returns
TLcdSpeedUnit.KmH
for this getFeatureUnitOfMeasure
method.
The equivalent of this method for TLcdDataModel
instances is annotating a TLcdDataProperty
with a TLcdISO19103MeasureAnnotation
.
aIndex
- a valid feature indexnull
otherwise.