Package mil.nga.crs.geo
Class PrimeMeridian
- java.lang.Object
-
- mil.nga.crs.geo.PrimeMeridian
-
- All Implemented Interfaces:
Identifiable
public class PrimeMeridian extends Object implements Identifiable
Prime Meridian- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description PrimeMeridian()
ConstructorPrimeMeridian(String name, double longitude)
ConstructorPrimeMeridian(String name, String longitude)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIdentifier(Identifier identifier)
Add the identifiervoid
addIdentifiers(List<Identifier> identifiers)
Add the identifiersboolean
equals(Object obj)
Identifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersdouble
getLongitude()
Get the International Reference Meridian longitudeString
getLongitudeText()
Get the International Reference Meridian longitude textUnit
getLongitudeUnit()
Get the International Reference Meridian longitude unit (angle)String
getName()
Get the nameint
hashCode()
boolean
hasIdentifiers()
Has identifiersboolean
hasLongitudeUnit()
Has an International Reference Meridian longitude unit (angle)int
numIdentifiers()
Number of identifiersvoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setLongitude(double longitude)
Set the International Reference Meridian longitudevoid
setLongitude(String longitude)
Set the International Reference Meridian longitudevoid
setLongitudeUnit(Unit longitudeUnit)
Set the International Reference Meridian longitude unit (angle)void
setName(String name)
Set the nameString
toString()
-
-
-
Constructor Detail
-
PrimeMeridian
public PrimeMeridian()
Constructor
-
PrimeMeridian
public PrimeMeridian(String name, double longitude)
Constructor- Parameters:
name
- namelongitude
- International Reference Meridian longitude
-
-
Method Detail
-
getName
public String getName()
Get the name- Returns:
- name
-
setName
public void setName(String name)
Set the name- Parameters:
name
- name
-
getLongitude
public double getLongitude()
Get the International Reference Meridian longitude- Returns:
- International Reference Meridian longitude
-
getLongitudeText
public String getLongitudeText()
Get the International Reference Meridian longitude text- Returns:
- International Reference Meridian longitude text
- Since:
- 1.1.0
-
setLongitude
public void setLongitude(double longitude)
Set the International Reference Meridian longitude- Parameters:
longitude
- International Reference Meridian longitude
-
setLongitude
public void setLongitude(String longitude)
Set the International Reference Meridian longitude- Parameters:
longitude
- International Reference Meridian longitude- Since:
- 1.1.0
-
getLongitudeUnit
public Unit getLongitudeUnit()
Get the International Reference Meridian longitude unit (angle)- Returns:
- International Reference Meridian longitude unit (angle)
-
hasLongitudeUnit
public boolean hasLongitudeUnit()
Has an International Reference Meridian longitude unit (angle)- Returns:
- true if has International Reference Meridian longitude unit (angle)
-
setLongitudeUnit
public void setLongitudeUnit(Unit longitudeUnit)
Set the International Reference Meridian longitude unit (angle)- Parameters:
longitudeUnit
- International Reference Meridian longitude unit (angle)
-
getIdentifiers
public List<Identifier> getIdentifiers()
Get the identifiers- Specified by:
getIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers
-
hasIdentifiers
public boolean hasIdentifiers()
Has identifiers- Specified by:
hasIdentifiers
in interfaceIdentifiable
- Returns:
- true if has identifiers
-
numIdentifiers
public int numIdentifiers()
Number of identifiers- Specified by:
numIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers count
-
getIdentifier
public Identifier getIdentifier(int index)
Get the identifier at the index- Specified by:
getIdentifier
in interfaceIdentifiable
- Parameters:
index
- identifier index- Returns:
- identifier
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
Set the identifiers- Specified by:
setIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
addIdentifier
public void addIdentifier(Identifier identifier)
Add the identifier- Specified by:
addIdentifier
in interfaceIdentifiable
- Parameters:
identifier
- identifier
-
addIdentifiers
public void addIdentifiers(List<Identifier> identifiers)
Add the identifiers- Specified by:
addIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
-