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 Stringprotected DataTypeprotected OgcProperty<NilValues>protected OgcPropertyList<SimpleComponent>protected StringFields 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, id - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(String name, DataComponent component) Add a sub-component and registers a name for itvoidaddQuality(Category quality) Adds a new qualityAsCategory propertyvoidaddQuality(Quantity quality) Adds a new qualityAsQuantity propertyvoidaddQuality(QuantityRange quality) Adds a new qualityAsQuantityRange propertyvoidaddQuality(Text quality) Adds a new qualityAsText propertyvoidClear the datablock used by this component.protected voidprotected UnsupportedOperationExceptionGets the axisID propertygetComponent(int index) Get the sub-component located at the specified indexgetComponent(String name) Get the sub-component registered with the specified nameintgetComponentIndex(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 propertyintReturns number of quality propertiesGets the list of quality propertiesGets the referenceFrame propertyprotected ValidationExceptiongetValidationException(String assertMsg) booleanChecks if axisID is setbooleanChecks if nilValues is setbooleanChecks if referenceFrame is setbooleanChecks if value is setremoveComponent(int index) Remove the sub-component at the specified indexremoveComponent(String name) Remove sub-component with the specified namevoidSets the axisID propertyvoidsetDataType(DataType type) Sets the component data typevoidsetNilValues(NilValues nilValues) Sets the nilValues propertyvoidsetReferenceFrame(String referenceFrame) Sets the referenceFrame propertyvoidUnsets the value propertyprotected voidupdateAtomCount(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, validateDataMethods 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
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:SimpleComponentGets the component data type- Specified by:
 getDataTypein interfaceSimpleComponent
 - 
setDataType
Description copied from interface:SimpleComponentSets the component data type- Specified by:
 setDataTypein interfaceSimpleComponent
 - 
getQualityList
Gets the list of quality properties- Specified by:
 getQualityListin interfaceSimpleComponent
 - 
getNumQualitys
public int getNumQualitys()Returns number of quality properties- Specified by:
 getNumQualitysin interfaceSimpleComponent
 - 
addQuality
Adds a new qualityAsQuantity property- Specified by:
 addQualityin interfaceSimpleComponent
 - 
addQuality
Adds a new qualityAsQuantityRange property- Specified by:
 addQualityin interfaceSimpleComponent
 - 
addQuality
Adds a new qualityAsCategory property- Specified by:
 addQualityin interfaceSimpleComponent
 - 
addQuality
Adds a new qualityAsText property- Specified by:
 addQualityin interfaceSimpleComponent
 - 
getNilValues
Gets the nilValues property- Specified by:
 getNilValuesin interfaceSimpleComponent
 - 
getNilValuesProperty
Gets extra info (name, xlink, etc.) carried by the nilValues property- Specified by:
 getNilValuesPropertyin interfaceSimpleComponent
 - 
isSetNilValues
public boolean isSetNilValues()Checks if nilValues is set- Specified by:
 isSetNilValuesin interfaceSimpleComponent
 - 
setNilValues
Sets the nilValues property- Specified by:
 setNilValuesin interfaceSimpleComponent
 - 
getReferenceFrame
Gets the referenceFrame property- Specified by:
 getReferenceFramein interfaceSimpleComponent
 - 
isSetReferenceFrame
public boolean isSetReferenceFrame()Checks if referenceFrame is set- Specified by:
 isSetReferenceFramein interfaceSimpleComponent
 - 
setReferenceFrame
Sets the referenceFrame property- Specified by:
 setReferenceFramein interfaceSimpleComponent
 - 
getAxisID
Gets the axisID property- Specified by:
 getAxisIDin interfaceSimpleComponent
 - 
isSetAxisID
public boolean isSetAxisID()Checks if axisID is set- Specified by:
 isSetAxisIDin interfaceSimpleComponent
 - 
setAxisID
Sets the axisID property- Specified by:
 setAxisIDin interfaceSimpleComponent
 - 
clearData
public void clearData()Description copied from interface:DataComponentClear the datablock used by this component. This will also clear data from all the sub-components recursively.- Specified by:
 clearDatain interfaceDataComponent- Specified by:
 clearDatain classAbstractDataComponentImpl
 - 
isSetValue
public boolean isSetValue()Description copied from interface:SimpleComponentChecks if value is set- Specified by:
 isSetValuein interfaceSimpleComponent
 - 
unSetValue
public void unSetValue()Description copied from interface:SimpleComponentUnsets the value property- Specified by:
 unSetValuein interfaceSimpleComponent
 - 
updateAtomCount
protected void updateAtomCount(int childOffsetCount) Description copied from class:AbstractDataComponentImplUpdate 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:
 updateAtomCountin classAbstractDataComponentImpl
 - 
getValidationException
 - 
addComponent
Description copied from interface:DataComponentAdd a sub-component and registers a name for it- Specified by:
 addComponentin interfaceDataComponent- Specified by:
 addComponentin classAbstractDataComponentImpl- Parameters:
 name- name of component to usecomponent- new sub-component to append to this component
 - 
getComponent
Description copied from interface:DataComponentGet the sub-component registered with the specified name- Specified by:
 getComponentin interfaceDataComponent- Specified by:
 getComponentin 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:DataComponentGet the index of the sub-component registered with this name- Specified by:
 getComponentIndexin interfaceDataComponent- Specified by:
 getComponentIndexin 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:DataComponentGet the sub-component located at the specified index- Specified by:
 getComponentin interfaceDataComponent- Specified by:
 getComponentin 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:DataComponentRemove the sub-component at the specified index- Specified by:
 removeComponentin interfaceDataComponent- Returns:
 - the component that was just removed
 
 - 
removeComponent
Description copied from interface:DataComponentRemove sub-component with the specified name- Specified by:
 removeComponentin interfaceDataComponent- Returns:
 - the component that was just removed
 
 - 
generateException
 
 -