Package org.n52.svalbard.decode
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
AbstractDecoderKeyclass for namespace decoder.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description NamespaceDecoderKey(String namespace, T type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetNamespace()protected abstract intgetSimilarity(DecoderKey key, T type)Check for similarityabstract TgetType()Get the type.protected abstract StringgetTypeName()GetStringrepresentation of the type.inthashCode()protected abstract voidsetType(T type)Set the type.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.janmayen.similar.Similar
getSimilarity
-
-
-
-
Method Detail
-
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()
GetStringrepresentation of the type.- Returns:
Stringrepresentation of the type.
-
getSimilarity
protected abstract int getSimilarity(DecoderKey key, T type)
Check for similarity- Parameters:
key-DecoderKeyto checktype- Type to check- Returns:
- 0 for equality, -1 for non equality
-
getNamespace
public String getNamespace()
-
-