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
ConstructorsConstructorDescriptionCreates a new featured data object for the given type. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSetFeature(int aIndex) Checks whether the specified feature is editable.getFeature(int aIndex) Returns the featureObjectat the given index.getFeature(String aFeatureName) Returns the value of the specified feature ornullif this object does not contain a feature with the given name.intReturns the number of features.Returns theILcdFeaturedDescriptordescribing thisILcdFeaturedobject.voidsetFeature(int aIndex, Object aFeature) Sets the featureObjectat the given index.voidsetFeature(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:ILcdSelfDescribedFeaturedReturns the value of the specified feature ornullif this object does not contain a feature with the given name.- Specified by:
getFeaturein interfaceILcdSelfDescribedFeatured- Parameters:
aFeatureName- the name of the feature- Returns:
- the corresponding value or
null
-
getFeaturedDescriptor
Description copied from interface:ILcdSelfDescribedFeaturedReturns theILcdFeaturedDescriptordescribing thisILcdFeaturedobject.- Specified by:
getFeaturedDescriptorin interfaceILcdSelfDescribedFeatured- Returns:
- the
ILcdFeaturedDescriptordescribing thisILcdFeaturedobject.
-
setFeature
Description copied from interface:ILcdSelfDescribedFeaturedSets the value of the specified feature.- Specified by:
setFeaturein 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:ILcdFeaturedChecks whether the specified feature is editable.- Specified by:
canSetFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-
getFeature
Description copied from interface:ILcdFeaturedReturns the featureObjectat the given index.- Specified by:
getFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- the feature
Objectat 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:ILcdFeaturedReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeatured- Returns:
- the number of features.
-
setFeature
Description copied from interface:ILcdFeaturedSets the featureObjectat the given index.- Specified by:
setFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.aFeature- the new featureObject.- See Also:
-