Package org.vast.data
Class AbstractRangeComponentImpl
java.lang.Object
org.vast.data.AbstractSWEImpl
org.vast.data.AbstractSWEIdentifiableImpl
org.vast.data.AbstractDataComponentImpl
org.vast.data.AbstractSimpleComponentImpl
org.vast.data.AbstractRangeComponentImpl
- All Implemented Interfaces:
Serializable
,HasCopy
,AbstractSWE
,AbstractSWEIdentifiable
,DataComponent
,SimpleComponent
- Direct Known Subclasses:
CategoryRangeImpl
,CountRangeImpl
,QuantityRangeImpl
,TimeRangeImpl
public abstract class AbstractRangeComponentImpl
extends AbstractSimpleComponentImpl
implements SimpleComponent
Base implementation for all range data components with min/max values 11-2014: Updated to implement new API autogenerated from XML schema
- See Also:
-
Field Summary
FieldsFields 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 TypeMethodDescriptionCreate a new datablock for holding data of this componentgetComponent
(int index) Get the sub-component located at the specified indexint
Returns number of sub-components in this componentvoid
Assign a new datablock to this component.protected void
updateStartIndex
(int startIndex) Update datablock start index (for array support) Needed when data is selected by DataArray getComponent(int) and the DataArray is using a parallel or primitive DataBlockMethods 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, copy, copyTo, getData, getDefinition, getEncodingInfo, getName, getOptional, getParent, getUpdatable, hasConstraints, hasData, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setDefinition, setEncodingInfo, setName, setOptional, setParent, setUpdatable, toString, toString, unSetOptional, unSetUpdatable, validateData
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
accept, addComponent, assignNewDataBlock, clearData, clone, copy, getComponent, getComponentIndex, getData, getDefinition, getName, getOptional, getParent, getUpdatable, hasConstraints, hasData, isSetDefinition, isSetOptional, isSetUpdatable, removeComponent, removeComponent, renewDataBlock, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable, validateData
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
-
min
-
max
-
-
Constructor Details
-
AbstractRangeComponentImpl
protected AbstractRangeComponentImpl()
-
-
Method Details
-
getComponentCount
public int getComponentCount()Description copied from interface:DataComponent
Returns number of sub-components in this component- Specified by:
getComponentCount
in interfaceDataComponent
- Specified by:
getComponentCount
in classAbstractDataComponentImpl
- Returns:
- number of direct sub-components
-
getComponent
Description copied from interface:DataComponent
Get the sub-component located at the specified index- Specified by:
getComponent
in interfaceDataComponent
- Overrides:
getComponent
in classAbstractSimpleComponentImpl
- Parameters:
index
- index of component to lookup- Returns:
- child component or null if none exists at the specified index
-
updateStartIndex
protected void updateStartIndex(int startIndex) Description copied from class:AbstractDataComponentImpl
Update datablock start index (for array support) Needed when data is selected by DataArray getComponent(int) and the DataArray is using a parallel or primitive DataBlock- Specified by:
updateStartIndex
in classAbstractDataComponentImpl
-
setData
Description copied from interface:DataComponent
Assign a new datablock to this component. This will recursively assign the right datablocks to sub-components recursively.- Specified by:
setData
in interfaceDataComponent
- Specified by:
setData
in classAbstractDataComponentImpl
-
createDataBlock
Description copied from interface:DataComponent
Create a new datablock for holding data of this component- Specified by:
createDataBlock
in interfaceDataComponent
- Specified by:
createDataBlock
in classAbstractDataComponentImpl
- Returns:
- new datablock object
-