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
Class represents a GML conform CodeWithAuthority element
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCodeWithAuthority(String value) constructorCodeWithAuthority(String value, String codeSpace) constructor -
Method Summary
Modifier and TypeMethodDescriptionintbooleanGet code spacegetValue()Get valueinthashCode()booleanCheck whether code space is setbooleanCheck whether value is setsetCodeSpace(String codeSpace) Set code space and return this CodeWithAuthority objectSet value and return this CodeWithAuthority objecttoString()
-
Constructor Details
-
CodeWithAuthority
constructor- Parameters:
value- Value/identifier
-
CodeWithAuthority
constructor- Parameters:
value- Value/identifiercodeSpace- Code space
-
CodeWithAuthority
protected CodeWithAuthority()
-
-
Method Details
-
getValue
Get value- Returns:
- Value
-
getCodeSpace
Get code space- Returns:
- Code space
-
setValue
Set value and return this CodeWithAuthority object- Parameters:
value- Value to set- Returns:
- This CodeWithAuthority object
-
setCodeSpace
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
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<CodeWithAuthority>
-