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 Details

    • CodeWithAuthority

      public CodeWithAuthority(String value)
      constructor
      Parameters:
      value - Value/identifier
    • CodeWithAuthority

      public CodeWithAuthority(String value, String codeSpace)
      constructor
      Parameters:
      value - Value/identifier
      codeSpace - Code space
    • CodeWithAuthority

      protected CodeWithAuthority()
  • Method Details

    • 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:
      true if value is set
    • isSetCodeSpace

      public boolean isSetCodeSpace()
      Check whether code space is set
      Returns:
      true if code space is set
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(CodeWithAuthority o)
      Specified by:
      compareTo in interface Comparable<CodeWithAuthority>