Package org.vast.data
Class TimeRangeImpl
- All Implemented Interfaces:
Serializable
,HasCopy
,AbstractSWE
,AbstractSWEIdentifiable
,DataComponent
,HasConstraints<AllowedTimes>
,HasRefFrames
,HasUom
,RangeComponent
,SimpleComponent
,TimeOrRange
,TimeRange
Extended SWE TimeRange implementation adapted to old VAST framework
- Since:
- Aug 30, 2014
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OgcProperty<AllowedTimes>
protected String
protected OffsetDateTime
protected DateTimeOrDouble[]
protected UnitReferenceImpl
Fields inherited from class org.vast.data.AbstractRangeComponentImpl
max, min
Fields inherited from class org.vast.data.AbstractSimpleComponentImpl
axisID, dataType, nilValues, qualityList, referenceFrame
Fields inherited from class org.vast.data.AbstractDataComponentImpl
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatable
Fields inherited from class org.vast.data.AbstractSWEIdentifiableImpl
description, identifier, label
Fields inherited from class org.vast.data.AbstractSWEImpl
extensionList, id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(DataComponentVisitor visitor) copy()
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)Gets the constraint propertyGets extra info (name, xlink, etc.) carried by the constraint propertyGets the localFrame propertyGets the referenceTime propertygetUom()
Gets the uom propertygetValue()
Gets the value propertyboolean
Recursively checks if constraints are specified in this component or any of its sub-componentsboolean
boolean
Checks if constraint is setboolean
Checks if localFrame is setboolean
Checks if referenceTime is setvoid
setConstraint
(AllowedTimes constraint) Sets the constraint propertyvoid
setLocalFrame
(String localFrame) Sets the localFrame propertyvoid
setReferenceTime
(OffsetDateTime referenceTime) Sets the referenceTime propertyvoid
setUom
(UnitReference uom) Sets the uom propertyvoid
setValue
(DateTimeOrDouble[] value) Sets the value propertyReturns String representation of this DataContainervoid
validateData
(List<ValidationException> errorList) Validates datablock against constraints if any.Methods inherited from class org.vast.data.AbstractRangeComponentImpl
createDataBlock, getComponent, getComponentCount, setData, updateStartIndex
Methods inherited from class org.vast.data.AbstractSimpleComponentImpl
addComponent, addQuality, addQuality, addQuality, addQuality, clearData, copyTo, generateException, getAxisID, getComponent, getComponentIndex, getDataType, getNilValues, getNilValuesProperty, getNumQualitys, getQualityList, getReferenceFrame, getValidationException, isSetAxisID, isSetNilValues, isSetReferenceFrame, isSetValue, removeComponent, removeComponent, setAxisID, setDataType, setNilValues, setReferenceFrame, unSetValue, updateAtomCount
Methods inherited from class org.vast.data.AbstractDataComponentImpl
assignNewDataBlock, clone, copyTo, getData, getDefinition, getEncodingInfo, getName, getOptional, getParent, getUpdatable, hasData, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setDefinition, setEncodingInfo, setName, setOptional, setParent, setUpdatable, toString, unSetOptional, unSetUpdatable
Methods inherited from class org.vast.data.AbstractSWEIdentifiableImpl
copyTo, getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
Methods inherited from class org.vast.data.AbstractSWEImpl
addExtension, copyTo, getExtensionList, getId, getNumExtensions, isSetId, setId
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.opengis.swe.v20.AbstractSWE
addExtension, getExtensionList, getId, getNumExtensions, isSetId, setId
Methods inherited from interface net.opengis.swe.v20.AbstractSWEIdentifiable
getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
Methods inherited from interface net.opengis.swe.v20.DataComponent
addComponent, assignNewDataBlock, clearData, clone, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getData, getDefinition, getName, getOptional, getParent, getUpdatable, hasData, isSetDefinition, isSetOptional, isSetUpdatable, removeComponent, removeComponent, renewDataBlock, setData, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable
Methods inherited from interface net.opengis.swe.v20.HasRefFrames
getReferenceFrame, isSetReferenceFrame, setReferenceFrame
Methods inherited from interface net.opengis.swe.v20.SimpleComponent
addQuality, addQuality, addQuality, addQuality, getAxisID, getDataType, getNilValues, getNilValuesProperty, getNumQualitys, getQualityList, getReferenceFrame, isSetAxisID, isSetNilValues, isSetReferenceFrame, isSetValue, setAxisID, setDataType, setNilValues, setReferenceFrame, unSetValue
-
Field Details
-
uom
-
constraint
-
referenceTime
-
localFrame
-
tmpValue
-
-
Constructor Details
-
TimeRangeImpl
public TimeRangeImpl() -
TimeRangeImpl
-
-
Method Details
-
copy
Description copied from interface:DataComponent
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)- Specified by:
copy
in interfaceDataComponent
- Specified by:
copy
in interfaceHasCopy
- Specified by:
copy
in interfaceTimeRange
- Specified by:
copy
in classAbstractDataComponentImpl
- Returns:
- copy of this component, including sub-components
-
getUom
Gets the uom property -
setUom
Sets the uom property -
getConstraint
Gets the constraint property- Specified by:
getConstraint
in interfaceHasConstraints<AllowedTimes>
-
getConstraintProperty
Gets extra info (name, xlink, etc.) carried by the constraint property- Specified by:
getConstraintProperty
in interfaceHasConstraints<AllowedTimes>
-
isSetConstraint
public boolean isSetConstraint()Checks if constraint is set- Specified by:
isSetConstraint
in interfaceHasConstraints<AllowedTimes>
-
setConstraint
Sets the constraint property- Specified by:
setConstraint
in interfaceHasConstraints<AllowedTimes>
-
getValue
Gets the value property -
setValue
Sets the value property -
getReferenceTime
Description copied from interface:TimeOrRange
Gets the referenceTime property- Specified by:
getReferenceTime
in interfaceTimeOrRange
-
isSetReferenceTime
public boolean isSetReferenceTime()Description copied from interface:TimeOrRange
Checks if referenceTime is set- Specified by:
isSetReferenceTime
in interfaceTimeOrRange
-
setReferenceTime
Description copied from interface:TimeOrRange
Sets the referenceTime property- Specified by:
setReferenceTime
in interfaceTimeOrRange
-
getLocalFrame
Description copied from interface:HasRefFrames
Gets the localFrame property- Specified by:
getLocalFrame
in interfaceHasRefFrames
-
isSetLocalFrame
public boolean isSetLocalFrame()Description copied from interface:HasRefFrames
Checks if localFrame is set- Specified by:
isSetLocalFrame
in interfaceHasRefFrames
-
setLocalFrame
Description copied from interface:HasRefFrames
Sets the localFrame property- Specified by:
setLocalFrame
in interfaceHasRefFrames
-
hasConstraints
public boolean hasConstraints()Description copied from interface:DataComponent
Recursively checks if constraints are specified in this component or any of its sub-components- Specified by:
hasConstraints
in interfaceDataComponent
- Specified by:
hasConstraints
in classAbstractDataComponentImpl
- Returns:
- true if at least one constraint is found, false otherwise
-
validateData
Description copied from interface:DataComponent
Validates datablock against constraints if any. No exceptions are thrown, rather they are appended to the provided list.- Specified by:
validateData
in interfaceDataComponent
- Specified by:
validateData
in classAbstractDataComponentImpl
- Parameters:
errorList
- list to which validation exceptions will be appended
-
toString
Description copied from class:AbstractDataComponentImpl
Returns String representation of this DataContainer- Specified by:
toString
in classAbstractDataComponentImpl
- Parameters:
indent
- int- Returns:
- String
-
accept
- Specified by:
accept
in interfaceDataComponent
-
isIsoTime
public boolean isIsoTime()- Specified by:
isIsoTime
in interfaceTimeOrRange
- Returns:
- true if time is encoded as ISO8601 string
-