Class SweTimeRange
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<T>
-
- 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
public class SweTimeRange extends SweAbstractUomType<RangeValue<org.joda.time.DateTime>>
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SweTimeRange()SweTimeRange(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,X extends Throwable>
Taccept(SweDataComponentVisitor<T,X> visitor)<X extends Throwable>
voidaccept(VoidSweDataComponentVisitor<X> visitor)SweTimeRangecopy()Referenceable<SweAllowedTimes>getConstraint()SweConstants.SweDataComponentTypegetDataComponentType()StringgetStringValue()Get value asStringRangeValue<org.joda.time.DateTime>getValue()Get valuebooleanisSetContstraint()booleanisSetValue()Is the values setvoidsetConstraint(SweAllowedTimes constraint)voidsetConstraint(Referenceable<SweAllowedTimes> constraint)voidsetStringValue(String s)SweTimeRangesetValue(RangeValue<org.joda.time.DateTime> value)Set value-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType
copyValueTo, getUom, getUomObject, isSetUom, setUom, setUom, toString
-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQuality
-
Methods 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, setXml
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
-
-
-
Constructor Detail
-
SweTimeRange
public SweTimeRange()
-
SweTimeRange
public SweTimeRange(RangeValue<org.joda.time.DateTime> value)
-
SweTimeRange
public SweTimeRange(RangeValue<org.joda.time.DateTime> value, String uom)
-
SweTimeRange
public SweTimeRange(RangeValue<org.joda.time.DateTime> value, UoM uom)
-
-
Method Detail
-
getValue
public RangeValue<org.joda.time.DateTime> getValue()
Description copied from interface:ValueGet value- Returns:
- value
-
setStringValue
public void setStringValue(String s)
- Specified by:
setStringValuein classSweAbstractSimpleType<RangeValue<org.joda.time.DateTime>>
-
getStringValue
public String 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
public SweTimeRange setValue(RangeValue<org.joda.time.DateTime> value)
Description copied from interface:ValueSet value- Parameters:
value- value to set- Returns:
- this
-
getConstraint
public Referenceable<SweAllowedTimes> getConstraint()
- Returns:
- the constraint
-
setConstraint
public void setConstraint(SweAllowedTimes constraint)
- Parameters:
constraint- the constraint to set
-
setConstraint
public void setConstraint(Referenceable<SweAllowedTimes> constraint)
- Parameters:
constraint- the constraint to set
-
isSetContstraint
public boolean isSetContstraint()
-
getDataComponentType
public SweConstants.SweDataComponentType getDataComponentType()
- Specified by:
getDataComponentTypein classSweAbstractDataComponent
-
accept
public <T,X extends Throwable> T accept(SweDataComponentVisitor<T,X> visitor) throws X extends Throwable
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X extends Throwable
-
accept
public <X extends Throwable> void accept(VoidSweDataComponentVisitor<X> visitor) throws X extends Throwable
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X extends Throwable
-
copy
public SweTimeRange copy()
-
-