Package org.n52.shetland.ogc.gml
Class CodeWithAuthority
- java.lang.Object
-
- org.n52.shetland.ogc.gml.CodeWithAuthority
-
- All Implemented Interfaces:
Comparable<CodeWithAuthority>
- Direct Known Subclasses:
Identifier
public class CodeWithAuthority extends Object implements Comparable<CodeWithAuthority>
Class represents a GML conform CodeWithAuthority element- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCodeWithAuthority()CodeWithAuthority(String value)constructorCodeWithAuthority(String value, String codeSpace)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CodeWithAuthority o)booleanequals(Object obj)StringgetCodeSpace()Get code spaceStringgetValue()Get valueinthashCode()booleanisSetCodeSpace()Check whether code space is setbooleanisSetValue()Check whether value is setCodeWithAuthoritysetCodeSpace(String codeSpace)Set code space and return this CodeWithAuthority objectCodeWithAuthoritysetValue(String value)Set value and return this CodeWithAuthority objectStringtoString()
-
-
-
Constructor Detail
-
CodeWithAuthority
public CodeWithAuthority(String value)
constructor- Parameters:
value- Value/identifier
-
CodeWithAuthority
public CodeWithAuthority(String value, String codeSpace)
constructor- Parameters:
value- Value/identifiercodeSpace- Code space
-
CodeWithAuthority
protected CodeWithAuthority()
-
-
Method Detail
-
getValue
public String getValue()
Get value- Returns:
- Value
-
getCodeSpace
public String getCodeSpace()
Get code space- Returns:
- Code space
-
setValue
public CodeWithAuthority setValue(String value)
Set value and return this CodeWithAuthority object- Parameters:
value- Value to set- Returns:
- This CodeWithAuthority object
-
setCodeSpace
public CodeWithAuthority setCodeSpace(String codeSpace)
Set code space and return this CodeWithAuthority object- Parameters:
codeSpace- Code space to set- Returns:
- This CodeWithAuthority object
-
isSetValue
public boolean isSetValue()
Check whether value is set- Returns:
trueif value is set
-
isSetCodeSpace
public boolean isSetCodeSpace()
Check whether code space is set- Returns:
trueif code space is set
-
compareTo
public int compareTo(CodeWithAuthority o)
- Specified by:
compareToin interfaceComparable<CodeWithAuthority>
-
-