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 void
ensureServiceOnChildren(SensorThingsService service)
boolean
equals(Object obj)
BaseDao<FeatureOfInterest>
getDao(SensorThingsService service)
String
getDescription()
String
getEncodingType()
Object
getFeature()
String
getName()
EntityList<Observation>
getObservations()
Map<String,Object>
getProperties()
int
hashCode()
ObservationDao
observations()
void
setDescription(String description)
void
setEncodingType(String encodingType)
void
setFeature(Object feature)
void
setName(String name)
void
setObservations(List<Observation> observations)
void
setProperties(Map<String,Object> properties)
String
toString()
FeatureOfInterest
withOnlyId()
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:
ensureServiceOnChildren
in classEntity<FeatureOfInterest>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classEntity<FeatureOfInterest>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
getDao
in classEntity<FeatureOfInterest>
-
withOnlyId
public FeatureOfInterest withOnlyId()
Description copied from class:Entity
Creates a copy of the entity, with only the ID field set. Useful when creating a new entity that links to this entity.- Specified by:
withOnlyId
in classEntity<FeatureOfInterest>
- Returns:
- a copy with only the ID field set.
-
toString
public String toString()
- Overrides:
toString
in classEntity<FeatureOfInterest>
-
-