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
Abstract
DecoderKey class for namespace decoder.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract intgetSimilarity(DecoderKey key, T type) Check for similarityabstract TgetType()Get the type.protected abstract StringGetStringrepresentation of the type.inthashCode()protected abstract voidSet the type.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.janmayen.similar.Similar
getSimilarity
-
Constructor Details
-
NamespaceDecoderKey
-
-
Method Details
-
setType
Set the type.- Parameters:
type- the type
-
getType
Get the type.- Returns:
- the type
-
getTypeName
GetStringrepresentation of the type.- Returns:
Stringrepresentation of the type.
-
getSimilarity
Check for similarity- Parameters:
key-DecoderKeyto checktype- Type to check- Returns:
- 0 for equality, -1 for non equality
-
getNamespace
-
hashCode
public int hashCode() -
toString
-
equals
-