Package net.opengis.swe.v20
Interface DataArray
- All Superinterfaces:
AbstractSWE,AbstractSWEIdentifiable,BlockComponent,DataComponent,HasCopy,Serializable
- All Known Subinterfaces:
Matrix
- All Known Implementing Classes:
AbstractArrayImpl,DataArrayImpl,DataList,MatrixImpl,SWEData
POJO class for XML type DataArrayType(@http://www.opengis.net/swe/2.0).
This is a complex type.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)Gets the array size component whether the array has fixed, implicit or variable size.booleanbooleanvoidsetElementCount(Count elementCount) Sets the elementCount property.
If the component given as argument is already in the component tree, it will be used as a variable size component (in which case it must have an ID defined), otherwise the component will be used to set a fixed size for the array and must carry a non-negative value.voidUpdates the size of the array (and corresponding data block if set) using the size value set in the size componentvoidupdateSize(int arraySize) Updates the size of the array (and corresponding data block if set) to the given size.Methods 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.BlockComponent
getElementCount, getElementCountProperty, getElementType, getElementTypeProperty, getEncoding, getValues, isSetEncoding, isSetValues, setElementType, setEncoding, setValuesMethods inherited from interface net.opengis.swe.v20.DataComponent
accept, addComponent, 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
-
Method Details
-
copy
DataArray 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 interfaceHasCopy- Returns:
- copy of this component, including sub-components
-
setElementCount
Sets the elementCount property.
If the component given as argument is already in the component tree, it will be used as a variable size component (in which case it must have an ID defined), otherwise the component will be used to set a fixed size for the array and must carry a non-negative value.- Specified by:
setElementCountin interfaceBlockComponent
-
isVariableSize
boolean isVariableSize()- Returns:
- true if array has variable size
-
isImplicitSize
boolean isImplicitSize()- Returns:
- true if array has implicit variable size (i.e. the size is not specified by any component but will be included implicitely in a stream right before the array data).
-
getArraySizeComponent
Count getArraySizeComponent()Gets the array size component whether the array has fixed, implicit or variable size.- Returns:
- the Count component that contains the array size value
-
updateSize
void updateSize()Updates the size of the array (and corresponding data block if set) using the size value set in the size component -
updateSize
void updateSize(int arraySize) Updates the size of the array (and corresponding data block if set) to the given size. If a size component is set, its value is also updated.- Parameters:
arraySize- new array size
-