public class DateFromJd extends AbstractParameter implements ParameterDepending
KEY_JD is set explicately.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static DateFormat |
DEFDATEFORMAT
The default date formatter.
|
private Value |
jd
The value of the jd.
|
static String |
KEY_DATEFORMAT
The key mapping to the date format to use.
|
static String |
KEY_JD
The name of the parameter that gives the julian date.
|
static String |
KEY_TIMEZONE
The key mapping to the time zone format to use.
|
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
DateFromJd(Map<String,String> prop)
Constructs a new date from jd object, that parses it's jd to
full Time.ISO on default.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Formats the jd to a date object.
|
String |
getFormatted()
Returns the time as a formatted date/time string.
|
void |
registerParameter(Parameter what)
Registers the parameters giving the ra, dec of two points.
|
double |
rescanned(String key,
String old,
String newval)
If offset or date format change, we act.
|
Object |
set(Object val)
Sets the sum.
|
createParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, init, overrideDefaultName, register, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiespublic static final String KEY_JD
public static final String KEY_DATEFORMAT
public static final String KEY_TIMEZONE
private static final DateFormat DEFDATEFORMAT
private Value jd
public double rescanned(String key, String old, String newval)
rescanned in class AbstractParameterpublic void registerParameter(Parameter what)
registerParameter in interface ParameterDependingpublic Object set(Object val) throws UnsupportedOperationException
set in interface ParameterUnsupportedOperationException - If this parameter is read-only.public String getFormatted()
getFormatted in interface ParametergetFormatted in class AbstractParameter