public class DataRecordImpl extends AbstractRecordImpl<DataComponent> implements DataRecord
Implementation of SWE Common DataRecord
fieldList
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatable
description, identifier, label
extensionList, id
Constructor and Description |
---|
DataRecordImpl() |
DataRecordImpl(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 |
addField(String name,
DataComponent field)
Adds a new field property
|
DataRecordImpl |
copy()
Return a structural copy of this component
The copy is done recursively, but only the structure is copied (not the data)
|
DataComponent |
getField(String name)
Gets the field property with the given name
|
OgcPropertyList<DataComponent> |
getFieldList()
Gets the list of field properties
|
int |
getNumFields()
Returns number of field properties
|
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 DataRecordImpl()
public DataRecordImpl(int size)
public DataRecordImpl copy()
DataComponent
copy
in interface HasCopy
copy
in interface DataComponent
copy
in interface DataRecord
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<DataComponent> getFieldList()
getFieldList
in interface DataRecord
public int getNumFields()
getNumFields
in interface DataRecord
public DataComponent getField(String name)
getField
in interface DataRecord
public void addField(String name, DataComponent field)
addField
in interface DataRecord
public void accept(DataComponentVisitor visitor)
accept
in interface DataComponent
Copyright © 2016 Sensia Software LLC. All rights reserved.