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