Class SweText
java.lang.Object
org.n52.shetland.ogc.swe.SweAbstractDataComponent
org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<String>
org.n52.shetland.ogc.swe.simpleType.SweText
- All Implemented Interfaces:
Comparable<SweText>,Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<String,,SweAbstractSimpleType<String>> SweQuality
- Direct Known Subclasses:
TextValue
public class SweText
extends SweAbstractSimpleType<String>
implements Comparable<SweText>, SweQuality
SOS internal representation of SWE simpleType text
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T,X extends Throwable>
Taccept(SweDataComponentVisitor<T, X> visitor) <X extends Throwable>
voidaccept(VoidSweDataComponentVisitor<X> visitor) intcopy()Get value asStringgetValue()Get valuebooleanbooleanIs the values setvoidsetConstraint(SweAllowedTokens constraint) voidsetConstraint(Referenceable<SweAllowedTokens> constraint) voidSet valueMethods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQuality, toStringMethods 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, setXmlMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
Constructor Details
-
SweText
public SweText()constructor
-
-
Method Details
-
getValue
Description copied from interface:ValueGet value- Specified by:
getValuein interfaceValue<String,SweAbstractSimpleType<String>> - Returns:
- value
-
setValue
Description copied from interface:ValueSet value- Specified by:
setValuein interfaceValue<String,SweAbstractSimpleType<String>> - Parameters:
value- value to set- Returns:
- this
-
setStringValue
- Specified by:
setStringValuein classSweAbstractSimpleType<String>
-
getStringValue
Description copied from interface:ValueGet value asString- Specified by:
getStringValuein interfaceValue<String,SweAbstractSimpleType<String>> - Returns:
- The value as
String
-
isSetValue
public boolean isSetValue()Description copied from interface:ValueIs the values set- Specified by:
isSetValuein interfaceValue<String,SweAbstractSimpleType<String>> - Returns:
true, if the value is set
-
getConstraint
- Returns:
- the constraint
-
setConstraint
- Parameters:
constraint- the constraint to set
-
setConstraint
- Parameters:
constraint- the constraint to set
-
isSetContstraint
public boolean isSetContstraint() -
getDataComponentType
- Specified by:
getDataComponentTypein classSweAbstractDataComponent
-
compareTo
- Specified by:
compareToin interfaceComparable<SweText>
-
accept
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X
-
accept
- Specified by:
acceptin classSweAbstractDataComponent- Throws:
X
-
copy
- Specified by:
copyin interfaceCopyable<SweAbstractDataComponent>
-