public class TimeImpl extends DataValue implements Time
Extended SWE Time implementation adapted to old VAST framework
Modifier and Type | Field and Description |
---|---|
protected OgcProperty<AllowedTimes> |
constraint |
protected String |
localFrame |
protected IDateTime |
referenceTime |
protected UnitReferenceImpl |
uom |
axisID, dataType, nilValues, qualityList, referenceFrame
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatable
description, identifier, label
extensionList, id
ISO_TIME_UNIT
Modifier and Type | Method and Description |
---|---|
void |
accept(DataComponentVisitor visitor) |
TimeImpl |
copy()
Return a structural copy of this component
The copy is done recursively, but only the structure is copied (not the data)
|
AllowedTimes |
getConstraint()
Gets the constraint property
|
OgcProperty<AllowedTimes> |
getConstraintProperty()
Gets extra info (name, xlink, etc.) carried by the constraint property
|
String |
getLocalFrame()
Gets the localFrame property
|
IDateTime |
getReferenceTime()
Gets the referenceTime property
|
UnitReference |
getUom()
Gets the uom property
|
IDateTime |
getValue()
Gets the value property
|
boolean |
hasConstraints()
Recursively checks if constraints are specified in this component or
any of its sub-components
|
boolean |
isSetConstraint()
Checks if constraint is set
|
boolean |
isSetLocalFrame()
Checks if localFrame is set
|
boolean |
isSetReferenceTime()
Checks if referenceTime is set
|
boolean |
isSetValue()
Checks if value is set
|
void |
setConstraint(AllowedTimes constraint)
Sets the constraint property
|
void |
setLocalFrame(String localFrame)
Sets the localFrame property
|
void |
setReferenceTime(IDateTime referenceTime)
Sets the referenceTime property
|
void |
setUom(UnitReference uom)
Sets the uom property
|
void |
setValue(IDateTime dateTime)
Sets the value property
|
String |
toString(String indent)
Returns String representation of this DataContainer
|
void |
validateData(List<ValidationException> errorList)
Validates dataBlock against constraints if any.
|
createDataBlock, getComponentCount, setData, updateStartIndex
addComponent, addQuality, addQuality, addQuality, addQuality, clearData, copyTo, getAxisID, getComponent, getComponent, getComponentIndex, getDataType, getNilValues, getNilValuesProperty, getNumQualitys, getQualityList, getReferenceFrame, isSetAxisID, isSetNilValues, isSetReferenceFrame, removeComponent, removeComponent, setAxisID, setDataType, setNilValues, setReferenceFrame, updateAtomCount
assignNewDataBlock, clone, copyTo, getData, getDefinition, getEncodingInfo, getName, getOptional, getParent, getUpdatable, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setDefinition, setEncodingInfo, setName, setOptional, setParent, setUpdatable, toString, unSetOptional, unSetUpdatable
copyTo, getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
addExtension, copyTo, getExtensionList, getId, getNumExtensions, isSetId, setId
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addQuality, addQuality, addQuality, addQuality, getAxisID, getDataType, getNilValues, getNilValuesProperty, getNumQualitys, getQualityList, getReferenceFrame, isSetAxisID, isSetNilValues, isSetReferenceFrame, setAxisID, setDataType, setNilValues, setReferenceFrame
addComponent, assignNewDataBlock, clearData, clone, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getData, getDefinition, getName, getOptional, getParent, getUpdatable, isSetDefinition, isSetOptional, isSetUpdatable, removeComponent, removeComponent, renewDataBlock, setData, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable
getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
addExtension, getExtensionList, getId, getNumExtensions, isSetId, setId
getReferenceFrame, isSetReferenceFrame, setReferenceFrame
protected UnitReferenceImpl uom
protected OgcProperty<AllowedTimes> constraint
protected IDateTime referenceTime
protected String localFrame
public TimeImpl()
public TimeImpl(DataType dataType)
public TimeImpl copy()
DataComponent
public UnitReference getUom()
public void setUom(UnitReference uom)
public AllowedTimes getConstraint()
getConstraint
in interface HasConstraints<AllowedTimes>
public OgcProperty<AllowedTimes> getConstraintProperty()
getConstraintProperty
in interface HasConstraints<AllowedTimes>
public boolean isSetConstraint()
isSetConstraint
in interface HasConstraints<AllowedTimes>
public void setConstraint(AllowedTimes constraint)
setConstraint
in interface HasConstraints<AllowedTimes>
public IDateTime getValue()
public boolean isSetValue()
isSetValue
in interface Time
public void setValue(IDateTime dateTime)
public IDateTime getReferenceTime()
getReferenceTime
in interface Time
public boolean isSetReferenceTime()
isSetReferenceTime
in interface Time
public void setReferenceTime(IDateTime referenceTime)
setReferenceTime
in interface Time
public String getLocalFrame()
getLocalFrame
in interface HasRefFrames
public boolean isSetLocalFrame()
isSetLocalFrame
in interface HasRefFrames
public void setLocalFrame(String localFrame)
setLocalFrame
in interface HasRefFrames
public boolean hasConstraints()
DataComponent
hasConstraints
in interface DataComponent
hasConstraints
in class AbstractDataComponentImpl
public void validateData(List<ValidationException> errorList)
DataComponent
validateData
in interface DataComponent
validateData
in class AbstractDataComponentImpl
errorList
- list to which validation exceptions will be appendedpublic String toString(String indent)
AbstractDataComponentImpl
toString
in class AbstractDataComponentImpl
indent
- intpublic void accept(DataComponentVisitor visitor)
accept
in interface DataComponent
Copyright © 2016 Sensia Software LLC. All rights reserved.