public class VectorImpl extends AbstractRecordImpl<ScalarComponent> implements Vector
Modifier and Type | Field and Description |
---|---|
protected String |
localFrame |
protected String |
referenceFrame |
fieldList
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatable
description, identifier, label
extensionList, id
Constructor and Description |
---|
VectorImpl() |
VectorImpl(int size) |
Modifier and Type | Method and Description |
---|---|
void |
accept(DataComponentVisitor visitor) |
void |
addComponent(String name,
DataComponent component)
Add a sub-component and registers a name for it
|
void |
addCoordinateAsCount(String name,
Count coordinate)
Adds a new coordinateAsCount property
|
void |
addCoordinateAsQuantity(String name,
Quantity coordinate)
Adds a new coordinateAsQuantity property
|
void |
addCoordinateAsTime(String name,
Time coordinate)
Adds a new coordinateAsTime property
|
VectorImpl |
copy()
Return a structural copy of this component
The copy is done recursively, but only the structure is copied (not the data)
|
ScalarComponent |
getCoordinate(String name)
Gets the coordinate property with the given name
|
OgcPropertyList<ScalarComponent> |
getCoordinateList()
Gets the list of coordinate properties
|
DataType |
getDataType()
Gets the component data type
|
String |
getLocalFrame()
Gets the localFrame property
|
int |
getNumCoordinates()
Returns number of coordinate properties
|
String |
getReferenceFrame()
Gets the referenceFrame property
|
boolean |
isSetLocalFrame()
Checks if localFrame is set
|
boolean |
isSetReferenceFrame()
Checks if referenceFrame is set
|
void |
setDataType(DataType type)
Sets the component data type
|
void |
setLocalFrame(String localFrame)
Sets the localFrame property
|
void |
setReferenceFrame(String referenceFrame)
Sets the referenceFrame property
|
String |
toString(String indent)
Returns String representation of this DataContainer
|
clearData, combineDataBlocks, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, hasConstraints, removeComponent, removeComponent, setData, updateAtomCount, updateStartIndex, validateData
assignNewDataBlock, clone, copyTo, getData, getDefinition, getEncodingInfo, getName, getOptional, getParent, getUpdatable, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setDefinition, setEncodingInfo, setName, setOptional, setParent, setUpdatable, toString, unSetOptional, unSetUpdatable
copyTo, getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
addExtension, copyTo, getExtensionList, getId, getNumExtensions, isSetId, setId
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
assignNewDataBlock, clearData, clone, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getData, getDefinition, getName, getOptional, getParent, getUpdatable, hasConstraints, isSetDefinition, isSetOptional, isSetUpdatable, removeComponent, removeComponent, renewDataBlock, setData, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable, validateData
getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
addExtension, getExtensionList, getId, getNumExtensions, isSetId, setId
public VectorImpl copy()
DataComponent
copy
in interface HasCopy
copy
in interface DataComponent
copy
in interface Vector
copy
in class AbstractDataComponentImpl
public void addComponent(String name, DataComponent component)
DataComponent
addComponent
in interface DataComponent
addComponent
in class AbstractDataComponentImpl
name
- name of component to usecomponent
- new sub-component to append to this componentpublic String toString(String indent)
AbstractDataComponentImpl
toString
in class AbstractDataComponentImpl
indent
- intpublic OgcPropertyList<ScalarComponent> getCoordinateList()
getCoordinateList
in interface Vector
public int getNumCoordinates()
getNumCoordinates
in interface Vector
public ScalarComponent getCoordinate(String name)
getCoordinate
in interface Vector
public void addCoordinateAsCount(String name, Count coordinate)
addCoordinateAsCount
in interface Vector
public void addCoordinateAsQuantity(String name, Quantity coordinate)
addCoordinateAsQuantity
in interface Vector
public void addCoordinateAsTime(String name, Time coordinate)
addCoordinateAsTime
in interface Vector
public String getReferenceFrame()
getReferenceFrame
in interface HasRefFrames
public boolean isSetReferenceFrame()
isSetReferenceFrame
in interface HasRefFrames
public void setReferenceFrame(String referenceFrame)
setReferenceFrame
in interface HasRefFrames
public String getLocalFrame()
getLocalFrame
in interface HasRefFrames
public boolean isSetLocalFrame()
isSetLocalFrame
in interface HasRefFrames
public void setLocalFrame(String localFrame)
setLocalFrame
in interface HasRefFrames
public DataType getDataType()
Vector
getDataType
in interface Vector
public void setDataType(DataType type)
Vector
setDataType
in interface Vector
public void accept(DataComponentVisitor visitor)
accept
in interface DataComponent
Copyright © 2016 Sensia Software LLC. All rights reserved.