|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.astro.Astroformat
public class Astroformat
This class contains definitions used in Parsing and Editing of numbers, and the default representation of the NaN (null) value.
Field Summary | |
---|---|
static int |
DATE
The number represents a date; variants follow |
static int |
DATE_alpha
Format of date contains alphabetical month |
static int |
DATE_COMP
Number represents a date (returned as MJD) |
static int |
DATE_DIFF
Time expressed as days (elapsed time) |
static int |
DATE_DMY
Format of date is Day Month Year |
static int |
DATE_DY
Format of date is Day and Year, day in range [1..366] |
static int |
DATE_MDY
Format of date is Month Day Year |
static int |
DATE_MY
Format of date is Year and Month |
static int |
DATE_MYD
Format of date is Month Year Day |
static int |
DATE_YD
Format of date is Year and Day, day in range [1..366] |
static int |
DATE_YM
Format of date is Year and Month |
static int |
DATE_YMD
Format of date is Year Month Day |
static int |
DECIMAL
Format of number is decimal |
static int |
EFORMAT
Format of number contains the E notation |
static int |
FACTOR
Format of number is of the form mantissax10±exp |
static java.lang.String[] |
month_list
The standard edition of month names |
java.lang.String[] |
nulls
The default way of representing the NULL (unknown) numbers . |
static int |
SEXA1d
Format of number is sexagesimal 1 component (with : or d) |
static int |
SEXA1h
Format of number is sexagesimal 1 component (with h) |
static int |
SEXA1o
Format of number is sexagesimal 1 component (with °) |
static int |
SEXA2
Format of number is sexagesimal (2 components h m) |
static int |
SEXA2c
Format of number is sexagesimal (2 components h:m) |
static int |
SEXA2d
Format of number is sexagesimal angle (2 components dm) |
static int |
SEXA2h
Format of number is sexagesimal time (2 components hm) |
static int |
SEXA2o
Format of number is sexagesimal 2 component (with ° ') |
static int |
SEXA3
Format of number is sexagesimal (3 components h m s) |
static int |
SEXA3c
Format of number is sexagesimal (3 components h:m:s) |
static int |
SEXA3d
Format of number is sexagesimal angle (3 components dms) |
static int |
SEXA3h
Format of number is sexagesimal time (3 components hms) |
static int |
SEXA3o
Format of number is sexagesimal 3 component (with ° ' ") |
static int |
SIGN_EDIT
Number must be signed (contains a '+' sign if positive) |
static int |
TRUNCATE
Numbers are truncated in their edition |
static int |
ZERO_FILL
Number must be left-filled with zeroes |
Constructor Summary | |
---|---|
Astroformat()
Create an Astroformat with the defaut "---" edition for NULL values. |
|
Astroformat(java.lang.String default_null)
Create an Astroformat with the defaut "---" edition for NULL values. |
Method Summary | |
---|---|
void |
acceptAsNaN(java.lang.String representation)
Give alternative representation of nulls. |
static java.lang.String |
explain(int bin_form)
Explain the 'form' of the last parsed number |
static java.lang.String |
explainComplex(java.lang.String pic)
Explain the conventions of "complex" templates. |
static boolean |
isAngle(int bin_form)
Test whether a format indicates Angle (dms or °'"). |
static boolean |
isDate(int bin_form)
Test whether a format indicates a Date (YMD). |
static boolean |
isDays(int bin_form)
Test whether a format indicates a number of days. |
static boolean |
isSexa(int bin_form)
Test whether a format indicates a Sexagesimal coding. |
static boolean |
isTime(int bin_form)
Test whether a format indicates Time (hms). |
void |
setNaN(java.lang.String default_null)
Change the default edition of NULL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String[] nulls
public static final int DECIMAL
public static final int EFORMAT
public static final int FACTOR
public static final int SEXA2
public static final int SEXA3
public static final int SEXA2c
public static final int SEXA3c
public static final int SEXA2d
public static final int SEXA3d
public static final int SEXA2h
public static final int SEXA3h
public static final int SEXA1d
public static final int SEXA1h
public static final int SEXA1o
public static final int SEXA2o
public static final int SEXA3o
public static final int DATE
public static final int DATE_alpha
public static final int DATE_YM
public static final int DATE_MY
public static final int DATE_YD
public static final int DATE_DY
public static final int DATE_YMD
public static final int DATE_DMY
public static final int DATE_MDY
public static final int DATE_MYD
public static final int DATE_DIFF
public static final int SIGN_EDIT
public static final int ZERO_FILL
public static final int TRUNCATE
public static final int DATE_COMP
public static java.lang.String[] month_list
Constructor Detail |
---|
public Astroformat()
public Astroformat(java.lang.String default_null)
Method Detail |
---|
public static final java.lang.String explain(int bin_form)
public static final boolean isSexa(int bin_form)
public static final boolean isDate(int bin_form)
public static final boolean isDays(int bin_form)
public static final boolean isTime(int bin_form)
public static final boolean isAngle(int bin_form)
public static final java.lang.String explainComplex(java.lang.String pic)
pic
- "picture" which specifies the format
public void setNaN(java.lang.String default_null)
default_null
- The default null representationpublic void acceptAsNaN(java.lang.String representation)
representation
- An additional possible representation of
a null. The last character may be repeated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |