public class TAPCoosys
extends java.lang.Object
This object just annotates a TAPColumn
object (see TAPColumn.getCoosys()
and TAPColumn.setCoosys(TAPCoosys)
). Its only purpose is to enrich the VOTable
metadata so that VO clients (like Aladin and TOPCAT) can use the coordinates the most
precisely as possible.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
epoch
Epoch at which the coordinates were measured.
|
protected java.lang.String |
equinox
Equinox of this coordinate system.
|
protected java.lang.String |
id
ID of this coordinate system definition.
|
protected java.lang.String |
system
Name of the coordinate system.
|
Constructor and Description |
---|
TAPCoosys(java.lang.String id,
java.lang.String system)
Create a minimum coordinate system definition.
|
TAPCoosys(java.lang.String id,
java.lang.String system,
java.lang.String equinox,
java.lang.String epoch)
Create a coordinate system definition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEpoch()
Get the epoch at which the coordinates were measured.
|
java.lang.String |
getEquinox()
Get the equinox of this coordinate system.
|
java.lang.String |
getId()
Get the ID of this coordinate system definition.
|
java.lang.String |
getSystem()
Get the coordinate system of this definition.
|
int |
hashCode() |
void |
setEpoch(java.lang.String epoch)
Set the epoch at which the coordinates were measured.
|
void |
setEquinox(java.lang.String equinox)
Set the equinox of this coordinate system.
|
java.lang.String |
toString() |
protected final java.lang.String id
It is particularly used in the VOTable to associate columns with it.
Note: This attribute can NOT be NULL.protected final java.lang.String system
It should be a value among: "ICRS", "eq FK5", "eq FK4", "ecl FK4", "ecl FK5", "galactic", "supergalactic", "barycentric", "geo app" and a user-defined "xy" value.
protected java.lang.String equinox
This parameter required to fix the equatorial or ecliptic systems (as e.g. "J2000" as the default "eq FK5" or "B1950" as the default "eq FK4").
protected java.lang.String epoch
public TAPCoosys(java.lang.String id, java.lang.String system) throws java.lang.NullPointerException
id
- ID of the definition to create. (must NOT be NULL)system
- Coordinate system. (must NOT be NULL)java.lang.NullPointerException
- If any of the given parameters is NULL or an empty string.public TAPCoosys(java.lang.String id, java.lang.String system, java.lang.String equinox, java.lang.String epoch) throws java.lang.NullPointerException
Only the ID and the system are required. The equinox and especially the epoch are optional.
id
- ID of the definition to create. (must NOT be NULL)system
- Coordinate system. (must NOT be NULL)equinox
- Equinox of this coordinate system.epoch
- Epoch at which the coordinates were measured.java.lang.NullPointerException
- If the ID or the system is NULL or an empty string.public final java.lang.String getId()
public final java.lang.String getSystem()
public final java.lang.String getEquinox()
public void setEquinox(java.lang.String equinox)
equinox
- Its new equinox. (may be NULL)public final java.lang.String getEpoch()
public void setEpoch(java.lang.String epoch)
epoch
- Its new epoch. (may be NULL)public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object