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
fieldListFields 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 TypeMethodDescriptionvoidaccept(DataComponentVisitor visitor) voidaddComponent(String name, DataComponent component) Add a sub-component and registers a name for itvoidaddCoordinateAsCount(String name, Count coordinate) Adds a new coordinateAsCount propertyvoidaddCoordinateAsQuantity(String name, Quantity coordinate) Adds a new coordinateAsQuantity propertyvoidaddCoordinateAsTime(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 propertyintReturns number of coordinate propertiesGets the referenceFrame propertybooleanChecks if localFrame is setbooleanChecks if referenceFrame is setvoidsetDataType(DataType type) Sets the component data typevoidsetLocalFrame(String localFrame) Sets the localFrame propertyvoidsetReferenceFrame(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, validateDataMethods 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, unSetUpdatableMethods 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
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:DataComponentReturn a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)- Specified by:
 copyin interfaceDataComponent- Specified by:
 copyin interfaceHasCopy- Specified by:
 copyin interfaceVector- Specified by:
 copyin classAbstractDataComponentImpl- Returns:
 - copy of this component, including sub-components
 
 - 
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
 - 
toString
Description copied from class:AbstractDataComponentImplReturns String representation of this DataContainer- Specified by:
 toStringin classAbstractDataComponentImpl- Parameters:
 indent- int- Returns:
 - String
 
 - 
getCoordinateList
Gets the list of coordinate properties- Specified by:
 getCoordinateListin interfaceVector
 - 
getNumCoordinates
public int getNumCoordinates()Returns number of coordinate properties- Specified by:
 getNumCoordinatesin interfaceVector
 - 
getCoordinate
Gets the coordinate property with the given name- Specified by:
 getCoordinatein interfaceVector
 - 
addCoordinateAsCount
Adds a new coordinateAsCount property- Specified by:
 addCoordinateAsCountin interfaceVector
 - 
addCoordinateAsQuantity
Adds a new coordinateAsQuantity property- Specified by:
 addCoordinateAsQuantityin interfaceVector
 - 
addCoordinateAsTime
Adds a new coordinateAsTime property- Specified by:
 addCoordinateAsTimein interfaceVector
 - 
getReferenceFrame
Gets the referenceFrame property- Specified by:
 getReferenceFramein interfaceHasRefFrames
 - 
isSetReferenceFrame
public boolean isSetReferenceFrame()Checks if referenceFrame is set- Specified by:
 isSetReferenceFramein interfaceHasRefFrames
 - 
setReferenceFrame
Sets the referenceFrame property- Specified by:
 setReferenceFramein interfaceHasRefFrames
 - 
getLocalFrame
Gets the localFrame property- Specified by:
 getLocalFramein interfaceHasRefFrames
 - 
isSetLocalFrame
public boolean isSetLocalFrame()Checks if localFrame is set- Specified by:
 isSetLocalFramein interfaceHasRefFrames
 - 
setLocalFrame
Sets the localFrame property- Specified by:
 setLocalFramein interfaceHasRefFrames
 - 
getDataType
Description copied from interface:VectorGets the component data type- Specified by:
 getDataTypein interfaceVector
 - 
setDataType
Description copied from interface:VectorSets the component data type- Specified by:
 setDataTypein interfaceVector
 - 
accept
- Specified by:
 acceptin interfaceDataComponent
 
 -