Package mil.nga.crs.common
Class Axis
- java.lang.Object
-
- mil.nga.crs.common.Axis
-
- All Implemented Interfaces:
Identifiable
public class Axis extends Object implements Identifiable
Axis- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description Axis()
ConstructorAxis(String name, AxisDirectionType direction)
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
getAbbreviation()
Get the abbreviationDouble
getBearing()
Get the bearingString
getBearingText()
Get the bearing textAxisDirectionType
getDirection()
Get the directionIdentifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersDouble
getMeridian()
Get the meridianString
getMeridianText()
Get the meridian textUnit
getMeridianUnit()
Get the meridian (angle) unitString
getName()
Get the nameInteger
getOrder()
Get the orderUnit
getUnit()
Get the unitboolean
hasAbbreviation()
Has an abbreviationboolean
hasBearing()
Has a bearingint
hashCode()
boolean
hasIdentifiers()
Has identifiersboolean
hasMeridian()
Has a meridianboolean
hasName()
Has a nameboolean
hasOrder()
Has an orderboolean
hasUnit()
Has a unitint
numIdentifiers()
Number of identifiersvoid
setAbbreviation(String abbreviation)
Set the abbreviationvoid
setBearing(Double bearing)
Set the bearingvoid
setBearing(String bearing)
Set the bearingvoid
setDirection(AxisDirectionType direction)
Set the directionvoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setMeridian(Double meridian)
Set the meridianvoid
setMeridian(String meridian)
Set the meridianvoid
setMeridianUnit(Unit meridianUnit)
Set the meridian (angle) unitvoid
setName(String name)
Set the namevoid
setOrder(Integer order)
Set the ordervoid
setUnit(Unit unit)
Set the unitString
toString()
-
-
-
Constructor Detail
-
Axis
public Axis()
Constructor
-
Axis
public Axis(String name, AxisDirectionType direction)
Constructor- Parameters:
name
- namedirection
- axis direction
-
-
Method Detail
-
getName
public String getName()
Get the name- Returns:
- name
-
hasName
public boolean hasName()
Has a name- Returns:
- true if has name
-
setName
public void setName(String name)
Set the name- Parameters:
name
- name
-
getAbbreviation
public String getAbbreviation()
Get the abbreviation- Returns:
- abbreviation
-
hasAbbreviation
public boolean hasAbbreviation()
Has an abbreviation- Returns:
- true if has abbreviation
-
setAbbreviation
public void setAbbreviation(String abbreviation)
Set the abbreviation- Parameters:
abbreviation
- abbreviation
-
getDirection
public AxisDirectionType getDirection()
Get the direction- Returns:
- direction type
-
setDirection
public void setDirection(AxisDirectionType direction)
Set the direction- Parameters:
direction
- direction type
-
getMeridian
public Double getMeridian()
Get the meridian- Returns:
- meridian
-
getMeridianText
public String getMeridianText()
Get the meridian text- Returns:
- meridian text
- Since:
- 1.1.0
-
hasMeridian
public boolean hasMeridian()
Has a meridian- Returns:
- true if has meridian
-
setMeridian
public void setMeridian(Double meridian)
Set the meridian- Parameters:
meridian
- meridian
-
setMeridian
public void setMeridian(String meridian)
Set the meridian- Parameters:
meridian
- meridian- Since:
- 1.1.0
-
getMeridianUnit
public Unit getMeridianUnit()
Get the meridian (angle) unit- Returns:
- meridian (angle) unit
-
setMeridianUnit
public void setMeridianUnit(Unit meridianUnit)
Set the meridian (angle) unit- Parameters:
meridianUnit
- meridian (angle) unit
-
getBearing
public Double getBearing()
Get the bearing- Returns:
- bearing
-
getBearingText
public String getBearingText()
Get the bearing text- Returns:
- bearing text
- Since:
- 1.1.0
-
hasBearing
public boolean hasBearing()
Has a bearing- Returns:
- true if has bearing
-
setBearing
public void setBearing(Double bearing)
Set the bearing- Parameters:
bearing
- bearing
-
setBearing
public void setBearing(String bearing)
Set the bearing- Parameters:
bearing
- bearing text- Since:
- 1.1.0
-
getOrder
public Integer getOrder()
Get the order- Returns:
- order
-
hasOrder
public boolean hasOrder()
Has an order- Returns:
- true if has order
-
setOrder
public void setOrder(Integer order)
Set the order- Parameters:
order
- order
-
getUnit
public Unit getUnit()
Get the unit- Returns:
- unit
-
hasUnit
public boolean hasUnit()
Has a unit- Returns:
- true if has unit
-
setUnit
public void setUnit(Unit unit)
Set the unit- Parameters:
unit
- unit
-
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
-
-