Package mil.nga.crs.common
Class ReferenceFrame
- java.lang.Object
-
- mil.nga.crs.common.ReferenceFrame
-
- All Implemented Interfaces:
Identifiable
- Direct Known Subclasses:
EngineeringDatum
,GeoReferenceFrame
,ParametricDatum
,VerticalReferenceFrame
public abstract class ReferenceFrame extends Object implements Identifiable
Reference Frame (datum)- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description ReferenceFrame(String name, CRSType type)
ConstructorReferenceFrame(CRSType type)
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
getAnchor()
Get the datum anchor descriptionIdentifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersString
getName()
Get the datum nameCRSType
getType()
Get the typeboolean
hasAnchor()
Has a datum anchor descriptionint
hashCode()
boolean
hasIdentifiers()
Has identifiersint
numIdentifiers()
Number of identifiersvoid
setAnchor(String anchor)
Set the datum anchor descriptionvoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setName(String name)
Set the datum namevoid
setType(CRSType type)
Set the typeString
toString()
-
-
-
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
-
getType
public CRSType getType()
Get the type- Returns:
- type
-
setType
public void setType(CRSType type)
Set the type- Parameters:
type
- type
-
getAnchor
public String getAnchor()
Get the datum anchor description- Returns:
- datum anchor description
-
hasAnchor
public boolean hasAnchor()
Has a datum anchor description- Returns:
- true if has datum anchor description
-
setAnchor
public void setAnchor(String anchor)
Set the datum anchor description- Parameters:
anchor
- datum anchor description
-
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
-
-