public abstract class AbstractArrayImpl extends AbstractDataComponentImpl implements DataArray, BlockComponent
Provides common methods for all implementations of block components
Modifier and Type | Field and Description |
---|---|
protected OgcPropertyImpl<Count> |
elementCount |
protected OgcPropertyImpl<DataComponent> |
elementType |
static String |
ELT_COUNT_NAME |
protected DataEncoding |
encoding |
protected EncodedValues |
values |
dataBlock, definition, encodingInfo, INDENT, MAX_ARRAY_ERRORS, optional, parent, scalarCount, updatable
description, identifier, label
extensionList, id
Constructor and Description |
---|
AbstractArrayImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(String name,
DataComponent component)
Add a sub-component and registers a name for it
|
abstract AbstractArrayImpl |
copy()
Return a structural copy of this component
The copy is done recursively, but only the structure is copied (not the data)
|
protected void |
copyTo(AbstractArrayImpl other) |
Count |
getElementCount()
Gets the elementCount property
|
OgcProperty<Count> |
getElementCountProperty()
Gets extra info (name, xlink, etc.) carried by the elementCount property
|
DataComponent |
getElementType()
Gets the elementType property
|
OgcProperty<DataComponent> |
getElementTypeProperty()
Gets extra info (name, xlink, etc.) carried by the elementType property
|
DataEncoding |
getEncoding()
Gets the encoding property
|
EncodedValues |
getValues()
Gets the values property
|
boolean |
hasConstraints()
Recursively checks if constraints are specified in this component or
any of its sub-components
|
boolean |
isImplicitSize() |
boolean |
isSetEncoding()
Checks if encoding is set
|
boolean |
isSetValues()
Checks if values is set
|
boolean |
isVariableSize() |
DataComponent |
removeComponent(int index)
Remove the sub-component at the specified index
|
DataComponent |
removeComponent(String name)
Remove sub-component with the specified name
|
void |
setElementCount(Count elementCount)
Sets the elementCount property
If the Count object has a parent, it will used as an external variable size component |
void |
setElementType(String name,
DataComponent component)
Sets the elementType property
|
void |
setEncoding(DataEncoding encoding)
Sets the encoding property
|
void |
setValues(EncodedValues values)
Sets the values property
|
protected void |
setVariableSizeComponent(Count sizeComponent)
Sets the size component to use (for variable size array).
|
assignNewDataBlock, clearData, clone, copyTo, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getData, getDefinition, getEncodingInfo, getName, getOptional, getParent, getUpdatable, isSetDefinition, isSetOptional, isSetUpdatable, renewDataBlock, setData, setDefinition, setEncodingInfo, setName, setOptional, setParent, setUpdatable, toString, toString, unSetOptional, unSetUpdatable, updateAtomCount, updateStartIndex, validateData
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
updateSize, updateSize
accept, assignNewDataBlock, clearData, clone, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getData, getDefinition, getName, getOptional, getParent, getUpdatable, isSetDefinition, isSetOptional, isSetUpdatable, 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 static final String ELT_COUNT_NAME
protected OgcPropertyImpl<Count> elementCount
protected OgcPropertyImpl<DataComponent> elementType
protected DataEncoding encoding
protected EncodedValues values
public abstract AbstractArrayImpl copy()
DataComponent
copy
in interface HasCopy
copy
in interface DataArray
copy
in interface DataComponent
copy
in class AbstractDataComponentImpl
protected void copyTo(AbstractArrayImpl other)
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 DataComponent removeComponent(int index)
DataComponent
removeComponent
in interface DataComponent
public DataComponent removeComponent(String name)
DataComponent
removeComponent
in interface DataComponent
public boolean hasConstraints()
DataComponent
hasConstraints
in interface DataComponent
hasConstraints
in class AbstractDataComponentImpl
public final boolean isVariableSize()
isVariableSize
in interface DataArray
public final boolean isImplicitSize()
isImplicitSize
in interface DataArray
public Count getElementCount()
getElementCount
in interface BlockComponent
public OgcProperty<Count> getElementCountProperty()
getElementCountProperty
in interface BlockComponent
public void setElementCount(Count elementCount)
setElementCount
in interface BlockComponent
protected void setVariableSizeComponent(Count sizeComponent)
sizeComponent
- Count component to obtain array size frompublic DataComponent getElementType()
getElementType
in interface BlockComponent
public OgcProperty<DataComponent> getElementTypeProperty()
BlockComponent
getElementTypeProperty
in interface BlockComponent
public void setElementType(String name, DataComponent component)
setElementType
in interface BlockComponent
public DataEncoding getEncoding()
getEncoding
in interface BlockComponent
public boolean isSetEncoding()
isSetEncoding
in interface BlockComponent
public void setEncoding(DataEncoding encoding)
setEncoding
in interface BlockComponent
public EncodedValues getValues()
getValues
in interface BlockComponent
public boolean isSetValues()
isSetValues
in interface BlockComponent
public void setValues(EncodedValues values)
setValues
in interface BlockComponent
Copyright © 2016 Sensia Software LLC. All rights reserved.