Package org.n52.shetland.ogc.swe
Class SweDataArray
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.SweDataArray
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>
public class SweDataArray extends SweAbstractDataComponent
-
-
Constructor Summary
Constructors Constructor Description SweDataArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,X extends Throwable>
Taccept(SweDataComponentVisitor<T,X> visitor)<X extends Throwable>
voidaccept(VoidSweDataComponentVisitor<X> visitor)booleanadd(List<String> blockOfTokensToAddAtTheEnd)booleanaddAll(List<List<String>> newValues)SweDataArraycopy()booleanequals(Object obj)SweConstants.SweDataComponentTypegetDataComponentType()SweCountgetElementCount()SweAbstractDataComponentgetElementType()SweAbstractEncodinggetEncoding()StringgetValueAsString()List<List<String>>getValues()inthashCode()booleanisEmpty()booleanisSetElementCount()booleanisSetElementTyp()booleanisSetEncoding()booleanisSetValues()SweDataArraysetElementCount(SweCount elementCount)SweDataArraysetElementType(SweAbstractDataComponent elementType)SweDataArraysetEncoding(SweAbstractEncoding encoding)SweDataArraysetValues(List<List<String>> values)-
Methods inherited from class org.n52.shetland.ogc.swe.SweAbstractDataComponent
addName, addName, addName, copyValueTo, getDefaultElementEncoding, getDefinition, getDescription, getIdentifier, getLabel, getName, getNames, getXml, isSetDefinition, isSetDescription, isSetIdentifier, isSetLabel, isSetName, isSetNames, isSetXml, setDefaultElementEncoding, setDefinition, setDescription, setIdentifier, setLabel, setName, setName, setName, setXml
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
-
-
-
Method Detail
-
setValues
public SweDataArray setValues(List<List<String>> values)
- Parameters:
values- the values to set- Returns:
- This SweDataArray
-
getValueAsString
public String getValueAsString()
-
getElementType
public SweAbstractDataComponent getElementType()
- Returns:
- the elementType
-
setElementType
public SweDataArray setElementType(SweAbstractDataComponent elementType)
- Parameters:
elementType- the elementType to set- Returns:
- This SweDataArray
-
getElementCount
public SweCount getElementCount()
-
getEncoding
public SweAbstractEncoding getEncoding()
-
setEncoding
public SweDataArray setEncoding(SweAbstractEncoding encoding)
-
isSetValues
public boolean isSetValues()
- Returns:
- true, if the values field is set properly
-
add
public boolean add(List<String> blockOfTokensToAddAtTheEnd)
- Parameters:
blockOfTokensToAddAtTheEnd- the blocks of tokens to add- Returns:
- true (as specified by
Collection.add(E))
false if block could not be added
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSweAbstractDataComponent
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classSweAbstractDataComponent
-
isSetElementTyp
public boolean isSetElementTyp()
-
isSetEncoding
public boolean isSetEncoding()
-
setElementCount
public SweDataArray setElementCount(SweCount elementCount)
-
isSetElementCount
public boolean isSetElementCount()
-
isEmpty
public boolean isEmpty()
-
getDataComponentType
public SweConstants.SweDataComponentType getDataComponentType()
- Specified by:
getDataComponentTypein classSweAbstractDataComponent
-
accept
public <T,X extends Throwable> T accept(SweDataComponentVisitor<T,X> visitor) throws X extends Throwable
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X extends Throwable
-
accept
public <X extends Throwable> void accept(VoidSweDataComponentVisitor<X> visitor) throws X extends Throwable
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X extends Throwable
-
copy
public SweDataArray copy()
-
-