Package org.n52.shetland.inspire.base
Class Identifier
- java.lang.Object
-
- org.n52.shetland.ogc.gml.CodeWithAuthority
-
- org.n52.shetland.inspire.base.Identifier
-
- All Implemented Interfaces:
Comparable<CodeWithAuthority>
public class Identifier extends CodeWithAuthority
-
-
Constructor Summary
Constructors Constructor Description Identifier()Identifier(String localId, String namespace)Identifier(CodeWithAuthority codeWithAuthority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetLocalId()Get localIdStringgetNamespace()Get namespaceNillable<String>getVersionId()inthashCode()booleanisSetLocalId()Check whether localId is setbooleanisSetNamespace()Check whether namespace is setIdentifiersetLocalId(String localId)Set localId and return this Identifier objectIdentifiersetNamespace(String namespace)Set namespace and return this Identifier objectvoidsetVersionId(String versionId)IdentifiersetVersionId(Nillable<String> versionId)StringtoString()-
Methods inherited from class org.n52.shetland.ogc.gml.CodeWithAuthority
compareTo, getCodeSpace, getValue, isSetCodeSpace, isSetValue, setCodeSpace, setValue
-
-
-
-
Constructor Detail
-
Identifier
public Identifier(String localId, String namespace)
- Parameters:
localId- the localIDnamespace- the namespace
-
Identifier
public Identifier(CodeWithAuthority codeWithAuthority)
-
Identifier
public Identifier()
-
-
Method Detail
-
getLocalId
public String getLocalId()
Get localId- Returns:
- LocalId
-
getNamespace
public String getNamespace()
Get namespace- Returns:
- Code space
-
setLocalId
public Identifier setLocalId(String localId)
Set localId and return this Identifier object- Parameters:
localId- LocalId to set- Returns:
- This Identifier object
-
setNamespace
public Identifier setNamespace(String namespace)
Set namespace and return this Identifier object- Parameters:
namespace- Code space to set- Returns:
- This Identifier object
-
isSetLocalId
public boolean isSetLocalId()
Check whether localId is set- Returns:
trueif localId is set
-
isSetNamespace
public boolean isSetNamespace()
Check whether namespace is set- Returns:
trueif namespace is set
-
setVersionId
public void setVersionId(String versionId)
-
setVersionId
public Identifier setVersionId(Nillable<String> versionId)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCodeWithAuthority
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classCodeWithAuthority
-
toString
public String toString()
- Overrides:
toStringin classCodeWithAuthority
-
-