Package org.n52.svalbard.decode
Class XmlNamespaceOperationDecoderKey
- java.lang.Object
-
- org.n52.svalbard.decode.NamespaceDecoderKey<String>
-
- org.n52.svalbard.decode.XmlNamespaceOperationDecoderKey
-
- All Implemented Interfaces:
Similar<DecoderKey>,DecoderKey
public class XmlNamespaceOperationDecoderKey extends NamespaceDecoderKey<String>
NamespaceDecoderKeyimplementation for XML namespace and operation nameString.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description XmlNamespaceOperationDecoderKey(String namespace, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSimilarity(DecoderKey key)protected intgetSimilarity(DecoderKey key, String operation)Check for similarityStringgetType()Get the type.protected StringgetTypeName()GetStringrepresentation of the type.protected voidsetType(String type)Set the type.-
Methods inherited from class org.n52.svalbard.decode.NamespaceDecoderKey
equals, getNamespace, hashCode, toString
-
-
-
-
Method Detail
-
setType
protected void setType(String type)
Description copied from class:NamespaceDecoderKeySet the type.- Specified by:
setTypein classNamespaceDecoderKey<String>- Parameters:
type- the type
-
getType
public String getType()
Description copied from class:NamespaceDecoderKeyGet the type.- Specified by:
getTypein classNamespaceDecoderKey<String>- Returns:
- the type
-
getTypeName
protected String getTypeName()
Description copied from class:NamespaceDecoderKeyGetStringrepresentation of the type.- Specified by:
getTypeNamein classNamespaceDecoderKey<String>- Returns:
Stringrepresentation of the type.
-
getSimilarity
public int getSimilarity(DecoderKey key)
-
getSimilarity
protected int getSimilarity(DecoderKey key, String operation)
Description copied from class:NamespaceDecoderKeyCheck for similarity- Specified by:
getSimilarityin classNamespaceDecoderKey<String>- Parameters:
key-DecoderKeyto checkoperation- Type to check- Returns:
- 0 for equality, -1 for non equality
-
-