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>
class represents a phenomenon of an observation
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionOmObservableProperty(String identifier) constructorOmObservableProperty(String identifier, String description, String unit, String valueType) constructor -
Method Summary
Modifier and TypeMethodDescriptiongetUnit()Get unit of measurementGet value typebooleanbooleanbooleanCheck whether unit of measure is setvoidSet unit of measurementvoidsetValueType(String valueType) Set value typeMethods inherited from class org.n52.shetland.ogc.om.AbstractPhenomenon
asCompositePhenomenon, asObservableProperty, compareTo, equals, hashCode, toStringMethods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncodedMethods 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 Details
-
OmObservableProperty
constructor- Parameters:
identifier- observableProperty identifier
-
OmObservableProperty
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 Details
-
getUnit
Get unit of measurement- Returns:
- Returns the unit.
-
setUnit
Set unit of measurement- Parameters:
unit- The unit to set.
-
getValueType
Get value type- Returns:
- Returns the valueType.
-
setValueType
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
-