Package mil.nga.crs.common
Class Identifier
- java.lang.Object
-
- mil.nga.crs.common.Identifier
-
public class Identifier extends Object
Identifier (Authority)- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description Identifier()ConstructorIdentifier(String name, String uniqueIdentifier)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCitation()Get the authority citationStringgetName()Get the authority nameStringgetNameAndUniqueIdentifier()Get the name and unique identifier separated by a colonStringgetNameAndUniqueIdentifier(String delimiter)Get the name and unique identifier separated by the delimiterStringgetUniqueIdentifier()Get the authority unique identifierStringgetUri()Get the id uriStringgetVersion()Get the versionbooleanhasCitation()Has an authority citationinthashCode()booleanhasUri()Has an id uribooleanhasVersion()Has a versionvoidsetCitation(String citation)Set the authority citationvoidsetName(String name)Set the authority namevoidsetUniqueIdentifier(String uniqueIdentifier)Set the authority unique identifiervoidsetUri(String uri)Set the id urivoidsetVersion(String version)Set the versionStringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Get the authority name- Returns:
- authority name
-
setName
public void setName(String name)
Set the authority name- Parameters:
name- authority name
-
getUniqueIdentifier
public String getUniqueIdentifier()
Get the authority unique identifier- Returns:
- authority unique identifier
-
setUniqueIdentifier
public void setUniqueIdentifier(String uniqueIdentifier)
Set the authority unique identifier- Parameters:
uniqueIdentifier- authority unique identifier
-
getNameAndUniqueIdentifier
public String getNameAndUniqueIdentifier()
Get the name and unique identifier separated by a colon- Returns:
- name and unique identifier
-
getNameAndUniqueIdentifier
public String getNameAndUniqueIdentifier(String delimiter)
Get the name and unique identifier separated by the delimiter- Parameters:
delimiter- delimiter- Returns:
- name and unique identifier
-
getVersion
public String getVersion()
Get the version- Returns:
- version
-
hasVersion
public boolean hasVersion()
Has a version- Returns:
- true if has version
-
setVersion
public void setVersion(String version)
Set the version- Parameters:
version- version
-
getCitation
public String getCitation()
Get the authority citation- Returns:
- authority citation
-
hasCitation
public boolean hasCitation()
Has an authority citation- Returns:
- true if has authority citation
-
setCitation
public void setCitation(String citation)
Set the authority citation- Parameters:
citation- authority citation
-
getUri
public String getUri()
Get the id uri- Returns:
- id uri
-
hasUri
public boolean hasUri()
Has an id uri- Returns:
- true if has id uri
-
setUri
public void setUri(String uri)
Set the id uri- Parameters:
uri- id uri
-
-