Package de.fraunhofer.iosb.ilt.sta.model
Class FeatureOfInterest
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sta.model.Entity<FeatureOfInterest>
-
- de.fraunhofer.iosb.ilt.sta.model.FeatureOfInterest
-
public class FeatureOfInterest extends Entity<FeatureOfInterest>
-
-
Field Summary
-
Fields inherited from class de.fraunhofer.iosb.ilt.sta.model.Entity
AT_IOT_COUNT, AT_IOT_NAVIGATION_LINK, AT_IOT_NEXT_LINK, AT_IOT_SELF_LINK, id, IOT_COUNT, IOT_NAVIGATION_LINK, IOT_NEXT_LINK, IOT_SELF_LINK, selfLink
-
-
Constructor Summary
Constructors Constructor Description FeatureOfInterest()FeatureOfInterest(String name, String description, String encodingType, org.geojson.GeoJsonObject feature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureServiceOnChildren(SensorThingsService service)booleanequals(Object obj)BaseDao<FeatureOfInterest>getDao(SensorThingsService service)StringgetDescription()StringgetEncodingType()ObjectgetFeature()StringgetName()EntityList<Observation>getObservations()Map<String,Object>getProperties()inthashCode()ObservationDaoobservations()voidsetDescription(String description)voidsetEncodingType(String encodingType)voidsetFeature(Object feature)voidsetName(String name)voidsetObservations(List<Observation> observations)voidsetProperties(Map<String,Object> properties)StringtoString()FeatureOfInterestwithOnlyId()Creates a copy of the entity, with only the ID field set.-
Methods inherited from class de.fraunhofer.iosb.ilt.sta.model.Entity
getId, getSelfLink, getService, getType, handleNamespacedProperties, setId, setSelfLink, setSelfLink, setService, subscribe, subscribeRelative
-
-
-
-
Method Detail
-
ensureServiceOnChildren
protected void ensureServiceOnChildren(SensorThingsService service)
- Specified by:
ensureServiceOnChildrenin classEntity<FeatureOfInterest>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classEntity<FeatureOfInterest>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEntity<FeatureOfInterest>
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getEncodingType
public String getEncodingType()
-
setEncodingType
public void setEncodingType(String encodingType)
-
getFeature
public Object getFeature()
-
setFeature
public void setFeature(Object feature)
-
observations
public ObservationDao observations()
-
getObservations
public EntityList<Observation> getObservations()
-
setObservations
public void setObservations(List<Observation> observations)
-
getDao
public BaseDao<FeatureOfInterest> getDao(SensorThingsService service)
- Specified by:
getDaoin classEntity<FeatureOfInterest>
-
withOnlyId
public FeatureOfInterest withOnlyId()
Description copied from class:EntityCreates a copy of the entity, with only the ID field set. Useful when creating a new entity that links to this entity.- Specified by:
withOnlyIdin classEntity<FeatureOfInterest>- Returns:
- a copy with only the ID field set.
-
toString
public String toString()
- Overrides:
toStringin classEntity<FeatureOfInterest>
-
-