Interface DataArray

All Superinterfaces:
AbstractSWE, AbstractSWEIdentifiable, BlockComponent, DataComponent, HasCopy, Serializable
All Known Subinterfaces:
Matrix
All Known Implementing Classes:
AbstractArrayImpl, DataArrayImpl, DataList, MatrixImpl, SWEData

public interface DataArray extends BlockComponent
POJO class for XML type DataArrayType(@http://www.opengis.net/swe/2.0). This is a complex type.
  • Method Details

    • copy

      DataArray 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 interface DataComponent
      Specified by:
      copy in interface HasCopy
      Returns:
      copy of this component, including sub-components
    • setElementCount

      void setElementCount(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.
      Specified by:
      setElementCount in interface BlockComponent
    • 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