public static enum STCS.RefPos extends java.lang.Enum<STCS.RefPos>
List of all possible reference positions in an STC expression.
When no value is specified, the default one is UNKNOWNREFPOS
.
The default value is also accessible through the attribute DEFAULT
and it is possible to test whether a reference position is the default with the function isDefault()
.
Note: The possible values listed in this enumeration are limited to the subset of STC-S described by the section "6 Use of STC-S in TAP (informative)" of the TAP Recommendation 1.0 (27th March 2010).
Enum Constant and Description |
---|
BARYCENTER |
GEOCENTER |
HELIOCENTER |
LSR |
RELOCATABLE |
TOPOCENTER |
UNKNOWNREFPOS |
Modifier and Type | Field and Description |
---|---|
static STCS.RefPos |
DEFAULT
Default value for a reference position:
UNKNOWNREFPOS . |
static java.lang.String |
regexp
Regular expression to test whether a string is a valid reference position or not.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDefault()
Tell whether this reference position is the default one.
|
static STCS.RefPos |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static STCS.RefPos[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final STCS.RefPos BARYCENTER
public static final STCS.RefPos GEOCENTER
public static final STCS.RefPos HELIOCENTER
public static final STCS.RefPos LSR
public static final STCS.RefPos TOPOCENTER
public static final STCS.RefPos RELOCATABLE
public static final STCS.RefPos UNKNOWNREFPOS
public static final STCS.RefPos DEFAULT
UNKNOWNREFPOS
.public static final java.lang.String regexp
public static STCS.RefPos[] values()
for (STCS.RefPos c : STCS.RefPos.values()) System.out.println(c);
public static STCS.RefPos valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final boolean isDefault()