Package org.vast.data
Class DataRecordImpl
- All Implemented Interfaces:
Serializable
,HasCopy
,AbstractSWE
,AbstractSWEIdentifiable
,DataComponent
,DataRecord
Implementation of SWE Common DataRecord
- See Also:
-
Field Summary
Fields 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
addField
(String name, DataComponent field) Adds a new field propertycopy()
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)Gets the field property with the given nameGets the list of field propertiesint
Returns number of field propertiesReturns 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
-
Constructor Details
-
DataRecordImpl
public DataRecordImpl() -
DataRecordImpl
public DataRecordImpl(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 interfaceDataRecord
- Specified by:
copy
in interfaceHasCopy
- 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
-
getFieldList
Gets the list of field properties- Specified by:
getFieldList
in interfaceDataRecord
-
getNumFields
public int getNumFields()Returns number of field properties- Specified by:
getNumFields
in interfaceDataRecord
-
getField
Gets the field property with the given name- Specified by:
getField
in interfaceDataRecord
-
addField
Adds a new field property- Specified by:
addField
in interfaceDataRecord
-
accept
- Specified by:
accept
in interfaceDataComponent
-