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
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 itvoidaddField(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 propertiesintReturns 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, 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 
- 
Constructor Details
- 
DataRecordImpl
public DataRecordImpl() - 
DataRecordImpl
public DataRecordImpl(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 interfaceDataRecord- Specified by:
 copyin interfaceHasCopy- 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
 
 - 
getFieldList
Gets the list of field properties- Specified by:
 getFieldListin interfaceDataRecord
 - 
getNumFields
public int getNumFields()Returns number of field properties- Specified by:
 getNumFieldsin interfaceDataRecord
 - 
getField
Gets the field property with the given name- Specified by:
 getFieldin interfaceDataRecord
 - 
addField
Adds a new field property- Specified by:
 addFieldin interfaceDataRecord
 - 
accept
- Specified by:
 acceptin interfaceDataComponent
 
 -