Package com.luciad.datamodel
Class TLcdFeaturedDataObject
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.datamodel.TLcdFeaturedDataObject
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,ILcdFeatured
,ILcdSelfDescribedFeatured
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcdGML2AbstractFeature
,TLcdGML2AbstractGeometry
,TLcdGML2BoundingShape
,TLcdGML2Coord
,TLcdGML2Coordinates
,TLcdGML2FeatureAssociation
,TLcdGML2GeometryAssociation
,TLcdGML2GeometryProperty
,TLcdGML31AbstractCurveSegment
,TLcdGML31AbstractGML
,TLcdGML31AbstractMetaData
,TLcdGML31AbstractRingProperty
,TLcdGML31AbstractSurfacePatch
,TLcdGML31AffinePlacement
,TLcdGML31AngleChoice
,TLcdGML31ArrayAssociation
,TLcdGML31Association
,TLcdGML31BoundingShape
,TLcdGML31Clothoid.RefLocation
,TLcdGML31Code
,TLcdGML31CodeList
,TLcdGML31CodeOrNullList
,TLcdGML31CompositeCurveProperty
,TLcdGML31CompositeSolidProperty
,TLcdGML31CompositeSurfaceProperty
,TLcdGML31Coord
,TLcdGML31Coordinates
,TLcdGML31CoverageFunction
,TLcdGML31CurveArrayProperty
,TLcdGML31CurveProperty
,TLcdGML31CurveSegmentArrayProperty
,TLcdGML31DataBlock
,TLcdGML31Degrees
,TLcdGML31DirectionProperty
,TLcdGML31DirectionVector
,TLcdGML31DirectPosition
,TLcdGML31DirectPositionList
,TLcdGML31DMSAngle
,TLcdGML31DomainSet
,TLcdGML31Envelope
,TLcdGML31FeatureArrayProperty
,TLcdGML31FeatureProperty
,TLcdGML31File
,TLcdGML31GeometricComplexProperty
,TLcdGML31GeometricPrimitiveProperty
,TLcdGML31GeometryArrayProperty
,TLcdGML31GeometryProperty
,TLcdGML31GridEnvelope
,TLcdGML31GridFunction
,TLcdGML31GridLimits
,TLcdGML31HistoryProperty
,TLcdGML31Knot
,TLcdGML31KnotProperty
,TLcdGML31LinearRingProperty
,TLcdGML31LineStringProperty
,TLcdGML31LineStringSegmentArrayProperty
,TLcdGML31LocationProperty
,TLcdGML31Measure
,TLcdGML31MeasureList
,TLcdGML31MeasureOrNullList
,TLcdGML31MetaDataProperty
,TLcdGML31MultiCurveProperty
,TLcdGML31MultiGeometryProperty
,TLcdGML31MultiLineStringProperty
,TLcdGML31MultiPointProperty
,TLcdGML31MultiPolygonProperty
,TLcdGML31MultiSolidProperty
,TLcdGML31MultiSurfaceProperty
,TLcdGML31PointArrayProperty
,TLcdGML31PointProperty
,TLcdGML31PolygonProperty
,TLcdGML31RangeParameters
,TLcdGML31RangeSet
,TLcdGML31Reference
,TLcdGML31RingProperty
,TLcdGML31Row
,TLcdGML31SequenceRule
,TLcdGML31SolidArrayProperty
,TLcdGML31SolidProperty
,TLcdGML31StringOrRef
,TLcdGML31SurfaceArrayProperty
,TLcdGML31SurfacePatchArrayProperty
,TLcdGML31SurfaceProperty
,TLcdGML31TargetProperty
,TLcdGML31TimeGeometricPrimitiveProperty
,TLcdGML31TimeInstantProperty
,TLcdGML31TimeIntervalLength
,TLcdGML31TimePeriodProperty
,TLcdGML31TimePosition
,TLcdGML31TimePrimitiveProperty
,TLcdGML31Tin.ControlPoint
,TLcdGML31UnitOfMeasure
,TLcdGML31ValueArrayProperty
,TLcdGML31ValueProperty
,TLcdGML31Vector
Data object that also implements the
ILcdSelfDescribedFeatured
interface. This class is
introduced to increase compatibility with models that implement
ILcdFeatured
.- Since:
- 10.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new featured data object for the given type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSetFeature
(int aIndex) Checks whether the specified feature is editable.getFeature
(int aIndex) Returns the featureObject
at the given index.getFeature
(String aFeatureName) Returns the value of the specified feature ornull
if this object does not contain a feature with the given name.int
Returns the number of features.Returns theILcdFeaturedDescriptor
describing thisILcdFeatured
object.void
setFeature
(int aIndex, Object aFeature) Sets the featureObject
at the given index.void
setFeature
(String aFeatureName, Object aValue) Sets the value of the specified feature.
-
Constructor Details
-
TLcdFeaturedDataObject
Creates a new featured data object for the given type.- Parameters:
aType
- the type for which to create new instance
-
-
Method Details
-
getFeature
Description copied from interface:ILcdSelfDescribedFeatured
Returns the value of the specified feature ornull
if this object does not contain a feature with the given name.- Specified by:
getFeature
in interfaceILcdSelfDescribedFeatured
- Parameters:
aFeatureName
- the name of the feature- Returns:
- the corresponding value or
null
-
getFeaturedDescriptor
Description copied from interface:ILcdSelfDescribedFeatured
Returns theILcdFeaturedDescriptor
describing thisILcdFeatured
object.- Specified by:
getFeaturedDescriptor
in interfaceILcdSelfDescribedFeatured
- Returns:
- the
ILcdFeaturedDescriptor
describing thisILcdFeatured
object.
-
setFeature
Description copied from interface:ILcdSelfDescribedFeatured
Sets the value of the specified feature.- Specified by:
setFeature
in interfaceILcdSelfDescribedFeatured
- Parameters:
aFeatureName
- the name of the feature to modifyaValue
- the new value for the feature
-
canSetFeature
public boolean canSetFeature(int aIndex) Description copied from interface:ILcdFeatured
Checks whether the specified feature is editable.- Specified by:
canSetFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-
getFeature
Description copied from interface:ILcdFeatured
Returns the featureObject
at the given index.- Specified by:
getFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- the feature
Object
at the given index. - Throws:
IndexOutOfBoundsException
- when an index is chosen greater than the result of getFeatureCount.- See Also:
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeatured
Returns the number of features.- Specified by:
getFeatureCount
in interfaceILcdFeatured
- Returns:
- the number of features.
-
setFeature
Description copied from interface:ILcdFeatured
Sets the featureObject
at the given index.- Specified by:
setFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.aFeature
- the new featureObject
.- See Also:
-