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 voidaddIdentifier(Identifier identifier)Add the identifiervoidaddIdentifiers(List<Identifier> identifiers)Add the identifiersbooleanequals(Object obj)StringgetAbbreviation()Get the abbreviationDoublegetBearing()Get the bearingStringgetBearingText()Get the bearing textAxisDirectionTypegetDirection()Get the directionIdentifiergetIdentifier(int index)Get the identifier at the indexList<Identifier>getIdentifiers()Get the identifiersDoublegetMeridian()Get the meridianStringgetMeridianText()Get the meridian textUnitgetMeridianUnit()Get the meridian (angle) unitStringgetName()Get the nameIntegergetOrder()Get the orderUnitgetUnit()Get the unitbooleanhasAbbreviation()Has an abbreviationbooleanhasBearing()Has a bearinginthashCode()booleanhasIdentifiers()Has identifiersbooleanhasMeridian()Has a meridianbooleanhasName()Has a namebooleanhasOrder()Has an orderbooleanhasUnit()Has a unitintnumIdentifiers()Number of identifiersvoidsetAbbreviation(String abbreviation)Set the abbreviationvoidsetBearing(Double bearing)Set the bearingvoidsetBearing(String bearing)Set the bearingvoidsetDirection(AxisDirectionType direction)Set the directionvoidsetIdentifiers(List<Identifier> identifiers)Set the identifiersvoidsetMeridian(Double meridian)Set the meridianvoidsetMeridian(String meridian)Set the meridianvoidsetMeridianUnit(Unit meridianUnit)Set the meridian (angle) unitvoidsetName(String name)Set the namevoidsetOrder(Integer order)Set the ordervoidsetUnit(Unit unit)Set the unitStringtoString()
-
-
-
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:
getIdentifiersin interfaceIdentifiable- Returns:
- identifiers
-
hasIdentifiers
public boolean hasIdentifiers()
Has identifiers- Specified by:
hasIdentifiersin interfaceIdentifiable- Returns:
- true if has identifiers
-
numIdentifiers
public int numIdentifiers()
Number of identifiers- Specified by:
numIdentifiersin interfaceIdentifiable- Returns:
- identifiers count
-
getIdentifier
public Identifier getIdentifier(int index)
Get the identifier at the index- Specified by:
getIdentifierin interfaceIdentifiable- Parameters:
index- identifier index- Returns:
- identifier
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
Set the identifiers- Specified by:
setIdentifiersin interfaceIdentifiable- Parameters:
identifiers- identifiers
-
addIdentifier
public void addIdentifier(Identifier identifier)
Add the identifier- Specified by:
addIdentifierin interfaceIdentifiable- Parameters:
identifier- identifier
-
addIdentifiers
public void addIdentifiers(List<Identifier> identifiers)
Add the identifiers- Specified by:
addIdentifiersin interfaceIdentifiable- Parameters:
identifiers- identifiers
-
-