Package org.apache.sis.internal.jaxb
Class SpecializedIdentifier<T>
java.lang.Object
org.apache.sis.internal.jaxb.SpecializedIdentifier<T>
- All Implemented Interfaces:
Serializable,Cloneable,org.opengis.metadata.Identifier,org.opengis.referencing.ReferenceIdentifier
public final class SpecializedIdentifier<T>
extends Object
implements org.opengis.referencing.ReferenceIdentifier, Cloneable, Serializable
Wraps a
XLink, URI or UUID as an identifier in the IdentifierMap.
The authority is typically an instance of NonMarshalledAuthority. The value
is an object of a type constrained by the authority.- Since:
- 0.3
- Version:
- 0.7
- Author:
- Martin Desruisseaux (Geomatys)
- See Also:
-
Field Summary
Fields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEYFields inherited from interface org.opengis.referencing.ReferenceIdentifier
CODESPACE_KEY, VERSION_KEY -
Constructor Summary
ConstructorsConstructorDescriptionSpecializedIdentifier(IdentifierSpace<T> authority, T value) Creates a new adapter for the given authority and identifier value. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of this identifier.booleanCompares this identifier with the given object for equality.org.opengis.metadata.citation.CitationReturns the authority specified at construction time.getCode()Returns a string representation of the identifier value, ornullif none.Infers a code space from the authority.getValue()Returns the identifier value.Returnsnullsince this class does not hold version information.inthashCode()Returns a hash code value for this identifier.toString()Returns a string representation of this identifier.
-
Constructor Details
-
SpecializedIdentifier
Creates a new adapter for the given authority and identifier value.- Parameters:
authority- the identifier authority.value- the identifier value, ornullif not yet defined.
-
-
Method Details
-
getAuthority
public org.opengis.metadata.citation.Citation getAuthority()Returns the authority specified at construction time.- Specified by:
getAuthorityin interfaceorg.opengis.metadata.Identifier- Returns:
- the identifier authority.
-
getValue
- Returns:
- the identifier value, or
nullif none.
-
getCode
Returns a string representation of the identifier value, ornullif none.- Specified by:
getCodein interfaceorg.opengis.metadata.Identifier- Returns:
- the identifier value.
-
getCodeSpace
Infers a code space from the authority.- Specified by:
getCodeSpacein interfaceorg.opengis.referencing.ReferenceIdentifier- Returns:
- the code space, or
nullif none. - Since:
- 0.5
-
getVersion
Returnsnullsince this class does not hold version information.- Specified by:
getVersionin interfaceorg.opengis.referencing.ReferenceIdentifier- Returns:
null.- Since:
- 0.5
-
hashCode
public int hashCode()Returns a hash code value for this identifier. -
equals
Compares this identifier with the given object for equality. -
clone
Returns a clone of this identifier. -
toString
Returns a string representation of this identifier. Example:Identifier[gco:uuid=“42924124-032a-4dfe-b06e-113e3cb81cf0”].
-