Package org.vast.data
Class TimeImpl
- All Implemented Interfaces:
 Serializable,HasCopy,AbstractSWE,AbstractSWEIdentifiable,DataComponent,HasConstraints<AllowedTimes>,HasRefFrames,HasUom,ScalarComponent,SimpleComponent,Time,TimeOrRange
Extended SWE Time implementation adapted to old VAST framework
- Since:
 - Aug 30, 2014
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OgcProperty<AllowedTimes>protected Stringprotected OffsetDateTimeprotected UnitReferenceImplFields inherited from class org.vast.data.AbstractSimpleComponentImpl
axisID, dataType, nilValues, qualityList, referenceFrameFields inherited from class org.vast.data.AbstractDataComponentImpl
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatableFields inherited from class org.vast.data.AbstractSWEIdentifiableImpl
description, identifier, labelFields inherited from class org.vast.data.AbstractSWEImpl
extensionList, idFields inherited from interface net.opengis.swe.v20.Time
ISO_TIME_UNIT - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(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 propertybooleanRecursively checks if constraints are specified in this component or any of its sub-componentsbooleanbooleanChecks if constraint is setbooleanChecks if localFrame is setbooleanChecks if referenceTime is setvoidsetConstraint(AllowedTimes constraint) Sets the constraint propertyvoidsetLocalFrame(String localFrame) Sets the localFrame propertyvoidsetReferenceTime(OffsetDateTime referenceTime) Sets the referenceTime propertyvoidsetUom(UnitReference uom) Sets the uom propertyvoidsetValue(DateTimeOrDouble dateTime) Sets the value propertyReturns String representation of this DataContainervoidvalidateData(List<ValidationException> errorList) Validates datablock against constraints if any.Methods inherited from class org.vast.data.DataValue
createDataBlock, getComponentCount, setData, updateStartIndexMethods inherited from class org.vast.data.AbstractSimpleComponentImpl
addComponent, addQuality, addQuality, addQuality, addQuality, clearData, copyTo, generateException, getAxisID, getComponent, getComponent, getComponentIndex, getDataType, getNilValues, getNilValuesProperty, getNumQualitys, getQualityList, getReferenceFrame, getValidationException, isSetAxisID, isSetNilValues, isSetReferenceFrame, isSetValue, removeComponent, removeComponent, setAxisID, setDataType, setNilValues, setReferenceFrame, unSetValue, updateAtomCountMethods 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, unSetUpdatableMethods inherited from class org.vast.data.AbstractSWEIdentifiableImpl
copyTo, getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabelMethods inherited from class org.vast.data.AbstractSWEImpl
addExtension, copyTo, getExtensionList, getId, getNumExtensions, isSetId, setIdMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.opengis.swe.v20.AbstractSWE
addExtension, getExtensionList, getId, getNumExtensions, isSetId, setIdMethods inherited from interface net.opengis.swe.v20.AbstractSWEIdentifiable
getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabelMethods 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, unSetUpdatableMethods inherited from interface net.opengis.swe.v20.HasRefFrames
getReferenceFrame, isSetReferenceFrame, setReferenceFrameMethods 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
 
 - 
 - 
Constructor Details
- 
TimeImpl
public TimeImpl() - 
TimeImpl
 
 - 
 - 
Method Details
- 
copy
Description copied from interface:DataComponentReturn a structural copy of this component The copy is done recursively, but only the structure is copied (not the data) - 
getUom
Gets the uom property - 
setUom
Sets the uom property - 
getConstraint
Gets the constraint property- Specified by:
 getConstraintin interfaceHasConstraints<AllowedTimes>
 - 
getConstraintProperty
Gets extra info (name, xlink, etc.) carried by the constraint property- Specified by:
 getConstraintPropertyin interfaceHasConstraints<AllowedTimes>
 - 
isSetConstraint
public boolean isSetConstraint()Checks if constraint is set- Specified by:
 isSetConstraintin interfaceHasConstraints<AllowedTimes>
 - 
setConstraint
Sets the constraint property- Specified by:
 setConstraintin interfaceHasConstraints<AllowedTimes>
 - 
getValue
Gets the value property - 
setValue
Sets the value property - 
getReferenceTime
Gets the referenceTime property- Specified by:
 getReferenceTimein interfaceTimeOrRange
 - 
isSetReferenceTime
public boolean isSetReferenceTime()Checks if referenceTime is set- Specified by:
 isSetReferenceTimein interfaceTimeOrRange
 - 
setReferenceTime
Sets the referenceTime property- Specified by:
 setReferenceTimein interfaceTimeOrRange
 - 
getLocalFrame
Gets the localFrame property- Specified by:
 getLocalFramein interfaceHasRefFrames
 - 
isSetLocalFrame
public boolean isSetLocalFrame()Checks if localFrame is set- Specified by:
 isSetLocalFramein interfaceHasRefFrames
 - 
setLocalFrame
Sets the localFrame property- Specified by:
 setLocalFramein interfaceHasRefFrames
 - 
hasConstraints
public boolean hasConstraints()Description copied from interface:DataComponentRecursively checks if constraints are specified in this component or any of its sub-components- Specified by:
 hasConstraintsin interfaceDataComponent- Specified by:
 hasConstraintsin classAbstractDataComponentImpl- Returns:
 - true if at least one constraint is found, false otherwise
 
 - 
validateData
Description copied from interface:DataComponentValidates datablock against constraints if any. No exceptions are thrown, rather they are appended to the provided list.- Specified by:
 validateDatain interfaceDataComponent- Specified by:
 validateDatain classAbstractDataComponentImpl- Parameters:
 errorList- list to which validation exceptions will be appended
 - 
toString
Description copied from class:AbstractDataComponentImplReturns String representation of this DataContainer- Specified by:
 toStringin classAbstractDataComponentImpl- Parameters:
 indent- int- Returns:
 - String
 
 - 
accept
- Specified by:
 acceptin interfaceDataComponent
 - 
isIsoTime
public boolean isIsoTime()- Specified by:
 isIsoTimein interfaceTimeOrRange- Returns:
 - true if time is encoded as ISO8601 string
 
 
 -