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:
getUniqueIdentifier
in 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:
getDescription
in interfaceIResource
- Returns:
- A short description of the resource
-
getProperties
- Specified by:
getProperties
in interfaceIFeature
- Returns:
- the property list
-
getGeometry
- Specified by:
getGeometry
in interfaceIFeature
- Returns:
- the geometry/location (or null if feature has no geometry)
-
getValidTime
- Specified by:
getValidTime
in interfaceIFeature
- Returns:
- feature validity period (or null if always valid)
-
getType
-
hasCustomGeomProperty
public boolean hasCustomGeomProperty()Description copied from interface:IFeature
To be overriden by subclasses when a property other than location provides the geometry. In this case, no location property is serialized- Specified by:
hasCustomGeomProperty
in interfaceIFeature
- Returns:
- True if a custom property contains the geometry
-
hasCustomTimeProperty
public boolean hasCustomTimeProperty()Description copied from interface:IFeature
To be overriden by subclasses when a property other than validTime provides the feature time. In this case, no validTime property is serialized- Specified by:
hasCustomTimeProperty
in interfaceIFeature
- Returns:
- True if a custom property contains the feature time stamp
-