Class SweTimeRange
java.lang.Object
org.n52.shetland.ogc.swe.SweAbstractDataComponent
org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<RangeValue<org.joda.time.DateTime>>
org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType<RangeValue<org.joda.time.DateTime>>
org.n52.shetland.ogc.swe.simpleType.SweTimeRange
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<RangeValue<org.joda.time.DateTime>,SweAbstractSimpleType<RangeValue<org.joda.time.DateTime>>>
- Direct Known Subclasses:
TimeRangeValue
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSweTimeRange(RangeValue<org.joda.time.DateTime> value) SweTimeRange(RangeValue<org.joda.time.DateTime> value, String uom) SweTimeRange(RangeValue<org.joda.time.DateTime> value, UoM uom) -
Method Summary
Modifier and TypeMethodDescription<T,X extends Throwable>
Taccept(SweDataComponentVisitor<T, X> visitor) <X extends Throwable>
voidaccept(VoidSweDataComponentVisitor<X> visitor) copy()Get value asStringRangeValue<org.joda.time.DateTime> getValue()Get valuebooleanbooleanIs the values setvoidsetConstraint(SweAllowedTimes constraint) voidsetConstraint(Referenceable<SweAllowedTimes> constraint) voidsetValue(RangeValue<org.joda.time.DateTime> value) Set valueMethods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType
copyValueTo, getUom, getUomObject, isSetUom, setUom, setUom, toStringMethods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQualityMethods inherited from class org.n52.shetland.ogc.swe.SweAbstractDataComponent
addName, addName, addName, getDefaultElementEncoding, getDefinition, getDescription, getIdentifier, getLabel, getName, getNames, getXml, isSetDefinition, isSetDescription, isSetIdentifier, isSetLabel, isSetName, isSetNames, isSetXml, setDefaultElementEncoding, setDefinition, setDescription, setIdentifier, setLabel, setName, setName, setName, setXmlMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
Constructor Details
-
SweTimeRange
public SweTimeRange() -
SweTimeRange
-
SweTimeRange
-
SweTimeRange
-
-
Method Details
-
getValue
Description copied from interface:ValueGet value- Returns:
- value
-
setStringValue
- Specified by:
setStringValuein classSweAbstractSimpleType<RangeValue<org.joda.time.DateTime>>
-
getStringValue
Description copied from interface:ValueGet value asString- Returns:
- The value as
String
-
isSetValue
public boolean isSetValue()Description copied from interface:ValueIs the values set- Returns:
true, if the value is set
-
setValue
Description copied from interface:ValueSet value- Parameters:
value- value to set- Returns:
- this
-
getConstraint
- Returns:
- the constraint
-
setConstraint
- Parameters:
constraint- the constraint to set
-
setConstraint
- Parameters:
constraint- the constraint to set
-
isSetContstraint
public boolean isSetContstraint() -
getDataComponentType
- Specified by:
getDataComponentTypein classSweAbstractDataComponent
-
accept
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X
-
accept
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X
-
copy
-