Class NamespaceDecoderKey<T>

java.lang.Object
org.n52.svalbard.decode.NamespaceDecoderKey<T>
All Implemented Interfaces:
Similar<DecoderKey>, DecoderKey
Direct Known Subclasses:
XmlNamespaceDecoderKey, XmlNamespaceOperationDecoderKey

public abstract class NamespaceDecoderKey<T> extends Object implements DecoderKey
Abstract DecoderKey class for namespace decoder.
Since:
1.0.0
  • Constructor Details

    • NamespaceDecoderKey

      public NamespaceDecoderKey(String namespace, T type)
  • Method Details

    • setType

      protected abstract void setType(T type)
      Set the type.
      Parameters:
      type - the type
    • getType

      public abstract T getType()
      Get the type.
      Returns:
      the type
    • getTypeName

      protected abstract String getTypeName()
      Get String representation of the type.
      Returns:
      String representation of the type.
    • getSimilarity

      protected abstract int getSimilarity(DecoderKey key, T type)
      Check for similarity
      Parameters:
      key - DecoderKey to check
      type - Type to check
      Returns:
      0 for equality, -1 for non equality
    • getNamespace

      public String getNamespace()
    • hashCode

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

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

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