Class SweCategory
- java.lang.Object
-
- org.n52.shetland.ogc.swe.SweAbstractDataComponent
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType<T>
-
- org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType<String>
-
- org.n52.shetland.ogc.swe.simpleType.SweCategory
-
- All Implemented Interfaces:
Copyable<SweAbstractDataComponent>,HasDefaultEncoding<SweAbstractDataComponent>,Value<String,SweAbstractSimpleType<String>>,SweQuality
- Direct Known Subclasses:
CategoryValue
public class SweCategory extends SweAbstractUomType<String> implements SweQuality
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SweCategory()SweCategory(String value, String uom)SweCategory(String value, UoM uom)
-
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)SweCategorycopy()StringgetCodeSpace()Referenceable<SweAllowedTokens>getConstraint()SweConstants.SweDataComponentTypegetDataComponentType()StringgetStringValue()Get value asStringStringgetValue()Get valuebooleanisSetCodeSpace()booleanisSetContstraint()booleanisSetValue()Is the values setSweCategorysetCodeSpace(String codeSpace)voidsetConstraint(SweAllowedTokens constraint)voidsetConstraint(Referenceable<SweAllowedTokens> constraint)voidsetStringValue(String s)SweCategorysetValue(String value)Set valueStringtoString()-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractUomType
copyValueTo, getUom, getUomObject, isSetUom, setUom, setUom
-
Methods inherited from class org.n52.shetland.ogc.swe.simpleType.SweAbstractSimpleType
copyQuality, equals, getQuality, hashCode, isSetQuality, setQuality
-
Methods inherited from class org.n52.shetland.ogc.swe.SweAbstractDataComponent
addName, addName, addName, 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, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.HasDefaultEncoding
isSetDefaultElementEncoding
-
-
-
-
Method Detail
-
getValue
public String getValue()
Description copied from interface:ValueGet value- Specified by:
getValuein interfaceValue<String,SweAbstractSimpleType<String>>- Returns:
- value
-
setValue
public SweCategory setValue(String value)
Description copied from interface:ValueSet value- Specified by:
setValuein interfaceValue<String,SweAbstractSimpleType<String>>- Parameters:
value- value to set- Returns:
- this
-
setCodeSpace
public SweCategory setCodeSpace(String codeSpace)
-
getCodeSpace
public String getCodeSpace()
-
isSetCodeSpace
public boolean isSetCodeSpace()
-
toString
public String toString()
- Overrides:
toStringin classSweAbstractUomType<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
-
setStringValue
public void setStringValue(String s)
- Specified by:
setStringValuein classSweAbstractSimpleType<String>
-
getStringValue
public String getStringValue()
Description copied from interface:ValueGet value asString- Specified by:
getStringValuein interfaceValue<String,SweAbstractSimpleType<String>>- Returns:
- The value as
String
-
getConstraint
public Referenceable<SweAllowedTokens> getConstraint()
- Returns:
- the constraint
-
setConstraint
public void setConstraint(SweAllowedTokens constraint)
- Parameters:
constraint- the constraint to set
-
setConstraint
public void setConstraint(Referenceable<SweAllowedTokens> constraint)
- Parameters:
constraint- the constraint to set
-
isSetContstraint
public boolean isSetContstraint()
-
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 SweCategory copy()
- Specified by:
copyin interfaceCopyable<SweAbstractDataComponent>
-
-