Package mil.nga.crs.temporal
Class TemporalDatum
- java.lang.Object
-
- mil.nga.crs.temporal.TemporalDatum
-
- All Implemented Interfaces:
Identifiable
public class TemporalDatum extends Object implements Identifiable
Temporal Datum- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description TemporalDatum()
ConstructorTemporalDatum(String name)
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)
String
getCalendar()
Get the calendar identifierIdentifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersString
getName()
Get the datum nameString
getOrigin()
Get the originDateTime
getOriginDateTime()
Get the origin date timeboolean
hasCalendar()
Has a calendar identifierint
hashCode()
boolean
hasIdentifiers()
Has identifiersboolean
hasOrigin()
Has an originboolean
hasOriginDateTime()
Has an origin date timeint
numIdentifiers()
Number of identifiersvoid
setCalendar(String calendar)
Set the calendar identifiervoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setName(String name)
Set the datum namevoid
setOrigin(String origin)
Set the originvoid
setOriginDateTime(String origin)
Set the origin date timevoid
setOriginDateTime(DateTime originDateTime)
Set the origin date timeString
toString()
-
-
-
Constructor Detail
-
TemporalDatum
public TemporalDatum()
Constructor
-
TemporalDatum
public TemporalDatum(String name)
Constructor- Parameters:
name
- name
-
-
Method Detail
-
getName
public String getName()
Get the datum name- Returns:
- datum name
-
setName
public void setName(String name)
Set the datum name- Parameters:
name
- datum name
-
getCalendar
public String getCalendar()
Get the calendar identifier- Returns:
- calendar identifier
-
hasCalendar
public boolean hasCalendar()
Has a calendar identifier- Returns:
- true if has calendar identifier
-
setCalendar
public void setCalendar(String calendar)
Set the calendar identifier- Parameters:
calendar
- calendar identifier
-
getOrigin
public String getOrigin()
Get the origin- Returns:
- origin
-
hasOrigin
public boolean hasOrigin()
Has an origin- Returns:
- true if has origin
-
setOrigin
public void setOrigin(String origin)
Set the origin- Parameters:
origin
- origin
-
getOriginDateTime
public DateTime getOriginDateTime()
Get the origin date time- Returns:
- origin date time
-
hasOriginDateTime
public boolean hasOriginDateTime()
Has an origin date time- Returns:
- true if has origin date time
-
setOriginDateTime
public void setOriginDateTime(DateTime originDateTime)
Set the origin date time- Parameters:
originDateTime
- origin date time- Since:
- 1.1.0
-
setOriginDateTime
public void setOriginDateTime(String origin)
Set the origin date time- Parameters:
origin
- origin date time
-
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
-
-