Package org.vast.data
Class AbstractSimpleComponentImpl
java.lang.Object
org.vast.data.AbstractSWEImpl
org.vast.data.AbstractSWEIdentifiableImpl
org.vast.data.AbstractDataComponentImpl
org.vast.data.AbstractSimpleComponentImpl
- All Implemented Interfaces:
Serializable
,HasCopy
,AbstractSWE
,AbstractSWEIdentifiable
,DataComponent
,SimpleComponent
- Direct Known Subclasses:
AbstractRangeComponentImpl
,DataValue
public abstract class AbstractSimpleComponentImpl
extends AbstractDataComponentImpl
implements SimpleComponent
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected DataType
protected OgcProperty<NilValues>
protected OgcPropertyList<SimpleComponent>
protected String
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
addComponent
(String name, DataComponent component) Add a sub-component and registers a name for itvoid
addQuality
(Category quality) Adds a new qualityAsCategory propertyvoid
addQuality
(Quantity quality) Adds a new qualityAsQuantity propertyvoid
addQuality
(QuantityRange quality) Adds a new qualityAsQuantityRange propertyvoid
addQuality
(Text quality) Adds a new qualityAsText propertyvoid
Clear the datablock used by this component.protected void
protected UnsupportedOperationException
Gets the axisID propertygetComponent
(int index) Get the sub-component located at the specified indexgetComponent
(String name) Get the sub-component registered with the specified nameint
getComponentIndex
(String name) Get the index of the sub-component registered with this nameGets the component data typeGets the nilValues propertyGets extra info (name, xlink, etc.) carried by the nilValues propertyint
Returns number of quality propertiesGets the list of quality propertiesGets the referenceFrame propertyprotected ValidationException
getValidationException
(String assertMsg) boolean
Checks if axisID is setboolean
Checks if nilValues is setboolean
Checks if referenceFrame is setboolean
Checks if value is setremoveComponent
(int index) Remove the sub-component at the specified indexremoveComponent
(String name) Remove sub-component with the specified namevoid
Sets the axisID propertyvoid
setDataType
(DataType type) Sets the component data typevoid
setNilValues
(NilValues nilValues) Sets the nilValues propertyvoid
setReferenceFrame
(String referenceFrame) Sets the referenceFrame propertyvoid
Unsets the value propertyprotected void
updateAtomCount
(int childOffsetCount) Update this component's datablock atomCount (for resizable array support).Methods inherited from class org.vast.data.AbstractDataComponentImpl
assignNewDataBlock, clone, copy, copyTo, createDataBlock, getComponentCount, getData, getDefinition, getEncodingInfo, getName, getOptional, getParent, getUpdatable, hasConstraints, hasData, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setData, setDefinition, setEncodingInfo, setName, setOptional, setParent, setUpdatable, toString, toString, unSetOptional, unSetUpdatable, updateStartIndex, 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, assignNewDataBlock, clone, copy, createDataBlock, getComponentCount, getData, getDefinition, getName, getOptional, getParent, getUpdatable, hasConstraints, hasData, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setData, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable, validateData
-
Field Details
-
dataType
-
qualityList
-
nilValues
-
referenceFrame
-
axisID
-
-
Constructor Details
-
AbstractSimpleComponentImpl
public AbstractSimpleComponentImpl()
-
-
Method Details
-
copyTo
-
getDataType
Description copied from interface:SimpleComponent
Gets the component data type- Specified by:
getDataType
in interfaceSimpleComponent
-
setDataType
Description copied from interface:SimpleComponent
Sets the component data type- Specified by:
setDataType
in interfaceSimpleComponent
-
getQualityList
Gets the list of quality properties- Specified by:
getQualityList
in interfaceSimpleComponent
-
getNumQualitys
public int getNumQualitys()Returns number of quality properties- Specified by:
getNumQualitys
in interfaceSimpleComponent
-
addQuality
Adds a new qualityAsQuantity property- Specified by:
addQuality
in interfaceSimpleComponent
-
addQuality
Adds a new qualityAsQuantityRange property- Specified by:
addQuality
in interfaceSimpleComponent
-
addQuality
Adds a new qualityAsCategory property- Specified by:
addQuality
in interfaceSimpleComponent
-
addQuality
Adds a new qualityAsText property- Specified by:
addQuality
in interfaceSimpleComponent
-
getNilValues
Gets the nilValues property- Specified by:
getNilValues
in interfaceSimpleComponent
-
getNilValuesProperty
Gets extra info (name, xlink, etc.) carried by the nilValues property- Specified by:
getNilValuesProperty
in interfaceSimpleComponent
-
isSetNilValues
public boolean isSetNilValues()Checks if nilValues is set- Specified by:
isSetNilValues
in interfaceSimpleComponent
-
setNilValues
Sets the nilValues property- Specified by:
setNilValues
in interfaceSimpleComponent
-
getReferenceFrame
Gets the referenceFrame property- Specified by:
getReferenceFrame
in interfaceSimpleComponent
-
isSetReferenceFrame
public boolean isSetReferenceFrame()Checks if referenceFrame is set- Specified by:
isSetReferenceFrame
in interfaceSimpleComponent
-
setReferenceFrame
Sets the referenceFrame property- Specified by:
setReferenceFrame
in interfaceSimpleComponent
-
getAxisID
Gets the axisID property- Specified by:
getAxisID
in interfaceSimpleComponent
-
isSetAxisID
public boolean isSetAxisID()Checks if axisID is set- Specified by:
isSetAxisID
in interfaceSimpleComponent
-
setAxisID
Sets the axisID property- Specified by:
setAxisID
in interfaceSimpleComponent
-
clearData
public void clearData()Description copied from interface:DataComponent
Clear the datablock used by this component. This will also clear data from all the sub-components recursively.- Specified by:
clearData
in interfaceDataComponent
- Specified by:
clearData
in classAbstractDataComponentImpl
-
isSetValue
public boolean isSetValue()Description copied from interface:SimpleComponent
Checks if value is set- Specified by:
isSetValue
in interfaceSimpleComponent
-
unSetValue
public void unSetValue()Description copied from interface:SimpleComponent
Unsets the value property- Specified by:
unSetValue
in interfaceSimpleComponent
-
updateAtomCount
protected void updateAtomCount(int childOffsetCount) Description copied from class:AbstractDataComponentImpl
Update this component's datablock atomCount (for resizable array support). This is called by child components to notify parents that a variable size DataArray has been resized- Specified by:
updateAtomCount
in classAbstractDataComponentImpl
-
getValidationException
-
addComponent
Description copied from interface:DataComponent
Add a sub-component and registers a name for it- Specified by:
addComponent
in interfaceDataComponent
- Specified by:
addComponent
in classAbstractDataComponentImpl
- Parameters:
name
- name of component to usecomponent
- new sub-component to append to this component
-
getComponent
Description copied from interface:DataComponent
Get the sub-component registered with the specified name- Specified by:
getComponent
in interfaceDataComponent
- Specified by:
getComponent
in classAbstractDataComponentImpl
- Parameters:
name
- name of component to lookup- Returns:
- child component or null if none exists with the specified name
-
getComponentIndex
Description copied from interface:DataComponent
Get the index of the sub-component registered with this name- Specified by:
getComponentIndex
in interfaceDataComponent
- Specified by:
getComponentIndex
in classAbstractDataComponentImpl
- Parameters:
name
- name of component to lookup- Returns:
- index of child component or -1 if none exists with the specified name
-
getComponent
Description copied from interface:DataComponent
Get the sub-component located at the specified index- Specified by:
getComponent
in interfaceDataComponent
- Specified by:
getComponent
in classAbstractDataComponentImpl
- Parameters:
index
- index of component to lookup- Returns:
- child component or null if none exists at the specified index
-
removeComponent
Description copied from interface:DataComponent
Remove the sub-component at the specified index- Specified by:
removeComponent
in interfaceDataComponent
- Returns:
- the component that was just removed
-
removeComponent
Description copied from interface:DataComponent
Remove sub-component with the specified name- Specified by:
removeComponent
in interfaceDataComponent
- Returns:
- the component that was just removed
-
generateException
-