Package org.vast.data
Class VectorImpl
- All Implemented Interfaces:
Serializable
,HasCopy
,AbstractSWE
,AbstractSWEIdentifiable
,DataComponent
,HasRefFrames
,Vector
POJO class for XML type VectorType(@http://www.opengis.net/swe/2.0).
This is a complex type.
- See Also:
-
Field Summary
FieldsFields inherited from class org.vast.data.AbstractRecordImpl
fieldList
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
accept
(DataComponentVisitor visitor) void
addComponent
(String name, DataComponent component) Add a sub-component and registers a name for itvoid
addCoordinateAsCount
(String name, Count coordinate) Adds a new coordinateAsCount propertyvoid
addCoordinateAsQuantity
(String name, Quantity coordinate) Adds a new coordinateAsQuantity propertyvoid
addCoordinateAsTime
(String name, Time coordinate) Adds a new coordinateAsTime propertycopy()
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)getCoordinate
(String name) Gets the coordinate property with the given nameGets the list of coordinate propertiesGets the component data typeGets the localFrame propertyint
Returns number of coordinate propertiesGets the referenceFrame propertyboolean
Checks if localFrame is setboolean
Checks if referenceFrame is setvoid
setDataType
(DataType type) Sets the component data typevoid
setLocalFrame
(String localFrame) Sets the localFrame propertyvoid
setReferenceFrame
(String referenceFrame) Sets the referenceFrame propertyReturns String representation of this DataContainerMethods inherited from class org.vast.data.AbstractRecordImpl
clearData, combineDataBlocks, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, hasConstraints, removeComponent, removeComponent, setData, updateAtomCount, updateDataBlock, updateStartIndex, validateData
Methods 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, unSetUpdatable
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
assignNewDataBlock, clearData, clone, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getData, getDefinition, getName, getOptional, getParent, getUpdatable, hasConstraints, hasData, isSetDefinition, isSetOptional, isSetUpdatable, removeComponent, removeComponent, renewDataBlock, setData, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable, validateData
-
Field Details
-
referenceFrame
-
localFrame
-
-
Constructor Details
-
VectorImpl
public VectorImpl() -
VectorImpl
public VectorImpl(int size)
-
-
Method Details
-
copy
Description copied from interface:DataComponent
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)- Specified by:
copy
in interfaceDataComponent
- Specified by:
copy
in interfaceHasCopy
- Specified by:
copy
in interfaceVector
- Specified by:
copy
in classAbstractDataComponentImpl
- Returns:
- copy of this component, including sub-components
-
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
-
toString
Description copied from class:AbstractDataComponentImpl
Returns String representation of this DataContainer- Specified by:
toString
in classAbstractDataComponentImpl
- Parameters:
indent
- int- Returns:
- String
-
getCoordinateList
Gets the list of coordinate properties- Specified by:
getCoordinateList
in interfaceVector
-
getNumCoordinates
public int getNumCoordinates()Returns number of coordinate properties- Specified by:
getNumCoordinates
in interfaceVector
-
getCoordinate
Gets the coordinate property with the given name- Specified by:
getCoordinate
in interfaceVector
-
addCoordinateAsCount
Adds a new coordinateAsCount property- Specified by:
addCoordinateAsCount
in interfaceVector
-
addCoordinateAsQuantity
Adds a new coordinateAsQuantity property- Specified by:
addCoordinateAsQuantity
in interfaceVector
-
addCoordinateAsTime
Adds a new coordinateAsTime property- Specified by:
addCoordinateAsTime
in interfaceVector
-
getReferenceFrame
Gets the referenceFrame property- Specified by:
getReferenceFrame
in interfaceHasRefFrames
-
isSetReferenceFrame
public boolean isSetReferenceFrame()Checks if referenceFrame is set- Specified by:
isSetReferenceFrame
in interfaceHasRefFrames
-
setReferenceFrame
Sets the referenceFrame property- Specified by:
setReferenceFrame
in interfaceHasRefFrames
-
getLocalFrame
Gets the localFrame property- Specified by:
getLocalFrame
in interfaceHasRefFrames
-
isSetLocalFrame
public boolean isSetLocalFrame()Checks if localFrame is set- Specified by:
isSetLocalFrame
in interfaceHasRefFrames
-
setLocalFrame
Sets the localFrame property- Specified by:
setLocalFrame
in interfaceHasRefFrames
-
getDataType
Description copied from interface:Vector
Gets the component data type- Specified by:
getDataType
in interfaceVector
-
setDataType
Description copied from interface:Vector
Sets the component data type- Specified by:
setDataType
in interfaceVector
-
accept
- Specified by:
accept
in interfaceDataComponent
-