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
NamespaceDecoderKey implementation for XML namespace and
Class.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSimilarity(DecoderKey key) protected intgetSimilarity(DecoderKey key, Class<?> t) Check for similarityClass<?> getType()Get the type.protected StringGetStringrepresentation of the type.protected voidSet the type.Methods inherited from class org.n52.svalbard.decode.NamespaceDecoderKey
equals, getNamespace, hashCode, toString
-
Constructor Details
-
XmlNamespaceDecoderKey
-
-
Method Details
-
getType
Description copied from class:NamespaceDecoderKeyGet the type.- Specified by:
getTypein classNamespaceDecoderKey<Class<?>>- Returns:
- the type
-
setType
Description copied from class:NamespaceDecoderKeySet the type.- Specified by:
setTypein classNamespaceDecoderKey<Class<?>>- Parameters:
type- the type
-
getTypeName
Description copied from class:NamespaceDecoderKeyGetStringrepresentation of the type.- Specified by:
getTypeNamein classNamespaceDecoderKey<Class<?>>- Returns:
Stringrepresentation of the type.
-
getSimilarity
-
getSimilarity
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
-