Package org.n52.shetland.ogc.om
Class OmObservableProperty
- java.lang.Object
-
- org.n52.shetland.ogc.gml.AbstractGML
-
- org.n52.shetland.ogc.gml.AbstractFeature
-
- org.n52.shetland.ogc.om.AbstractPhenomenon
-
- org.n52.shetland.ogc.om.OmObservableProperty
-
- All Implemented Interfaces:
Comparable<AbstractPhenomenon>,HasDefaultEncoding<AbstractFeature>
public class OmObservableProperty extends AbstractPhenomenon
class represents a phenomenon of an observation- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description OmObservableProperty(String identifier)constructorOmObservableProperty(String identifier, String description, String unit, String valueType)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUnit()Get unit of measurementStringgetValueType()Get value typebooleanisComposite()booleanisObservableProperty()booleanisSetUnit()Check whether unit of measure is setvoidsetUnit(String unit)Set unit of measurementvoidsetValueType(String valueType)Set value type-
Methods inherited from class org.n52.shetland.ogc.om.AbstractPhenomenon
asCompositePhenomenon, asObservableProperty, compareTo, equals, hashCode, toString
-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncoded
-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractGML
addMetaDataProperty, addMetaDataProperty, addName, addName, addName, copyTo, getDescription, getFirstName, getGmlId, getHumanReadableIdentifier, getHumanReadableIdentifierCodeWithAuthority, getIdentifier, getIdentifierCodeWithAuthority, getMetaDataProperty, getName, getOriginalIdentifier, getOriginalIdentifierCodeWithAuthority, isReferenced, isSetDescription, isSetGmlID, isSetHumanReadableIdentifier, isSetIdentifier, isSetMetaDataProperty, isSetName, isSetOriginalIdentifier, setDescription, setGmlId, setHumanReadableIdentifier, setHumanReadableIdentifier, setHumanReadableIdentifierAsIdentifier, setIdentifier, setIdentifier, setMetaDataProperty, setName, setName
-
-
-
-
Constructor Detail
-
OmObservableProperty
public OmObservableProperty(String identifier)
constructor- Parameters:
identifier- observableProperty identifier
-
OmObservableProperty
public OmObservableProperty(String identifier, String description, String unit, String valueType)
constructor- Parameters:
identifier- id of the observablePropertydescription- description of the observablePropertyunit- unit of the observation values according to this observablePropertyvalueType- database valType of the observation values according to this observableProperty
-
-
Method Detail
-
getUnit
public String getUnit()
Get unit of measurement- Returns:
- Returns the unit.
-
setUnit
public void setUnit(String unit)
Set unit of measurement- Parameters:
unit- The unit to set.
-
getValueType
public String getValueType()
Get value type- Returns:
- Returns the valueType.
-
setValueType
public void setValueType(String valueType)
Set value type- Parameters:
valueType- The valueType to set.
-
isSetUnit
public boolean isSetUnit()
Check whether unit of measure is set- Returns:
true, if unit of measure is set
-
isComposite
public boolean isComposite()
- Specified by:
isCompositein classAbstractPhenomenon
-
isObservableProperty
public boolean isObservableProperty()
- Specified by:
isObservablePropertyin classAbstractPhenomenon
-
-