Package org.sensorhub.api.feature
Class FeatureWrapper
java.lang.Object
org.sensorhub.api.feature.FeatureWrapper
Utility class for wrapping a feature and overriding some of its behavior
- Since:
 - Oct 2, 2021
 
- 
Field Summary
FieldsFields inherited from interface org.vast.ogc.gml.IFeature
DEFAULT_QNAME - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
f
 
 - 
 - 
Constructor Details
- 
FeatureWrapper
 
 - 
 - 
Method Details
- 
getId
 - 
getUniqueIdentifier
- Specified by:
 getUniqueIdentifierin interfaceIFeature- Returns:
 - the globally unique identifier that can be used to identify the same feature across contexts (e.g. across repositories)
 
 - 
getName
 - 
getDescription
- Specified by:
 getDescriptionin interfaceIResource- Returns:
 - A short description of the resource
 
 - 
getProperties
- Specified by:
 getPropertiesin interfaceIFeature- Returns:
 - the property list
 
 - 
getGeometry
- Specified by:
 getGeometryin interfaceIFeature- Returns:
 - the geometry/location (or null if feature has no geometry)
 
 - 
getValidTime
- Specified by:
 getValidTimein interfaceIFeature- Returns:
 - feature validity period (or null if always valid)
 
 - 
getType
 - 
hasCustomGeomProperty
public boolean hasCustomGeomProperty()Description copied from interface:IFeatureTo be overriden by subclasses when a property other than location provides the geometry. In this case, no location property is serialized- Specified by:
 hasCustomGeomPropertyin interfaceIFeature- Returns:
 - True if a custom property contains the geometry
 
 - 
hasCustomTimeProperty
public boolean hasCustomTimeProperty()Description copied from interface:IFeatureTo be overriden by subclasses when a property other than validTime provides the feature time. In this case, no validTime property is serialized- Specified by:
 hasCustomTimePropertyin interfaceIFeature- Returns:
 - True if a custom property contains the feature time stamp
 
 
 -