public class TargetSetupParameter extends AbstractTargetParameter implements Settable, Reloadable
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private Object |
constant
The number of repetition for this target.
|
private static boolean |
DEFPERSIST
Default no persistance.
|
static String |
KEY_CONSTANT
The actual parameter name within the setup.
|
static String |
KEY_DEFAULT
If set, we assume this value if the setup is missing in a target.
|
static String |
KEY_PERSIST
If this is true, nothing is changed if the setup is missing in a target.
|
static String |
KEY_SETUP
The setup ID where the parameter is found.
|
KEY_INDEXKEY_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 |
|---|
TargetSetupParameter(Map<String,String> prop)
Constructs a new global representing the actual object's ra.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Returns the value of this parameter as an object.
|
Object |
getForTarget(TargetDefinition star)
Gets the declination of the target star.
|
void |
init()
Test if the setup and name is defined.
|
void |
registerTarget(TargetDefinition star)
Registers a star to this parameter.
|
double |
rescanned(String key,
String old,
String newval)
Makes this method public, no further changes.
|
Object |
set(Object str)
Allows setting via a string.
|
getAsStar, getConstant, getFormattedFor, getSetupcreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, 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, waitreloadgetFormatted, getName, getStringdefaultBoolean, 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_SETUP
public static final String KEY_CONSTANT
public static final String KEY_DEFAULT
public static final String KEY_PERSIST
private static final boolean DEFPERSIST
private Object constant
public void init()
throws InitException
init in interface Initializableinit in class AbstractParameterInitExceptionpublic double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic Object get()
Parameterpublic void registerTarget(TargetDefinition star)
registerTarget in interface TargetDependingpublic Object getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingParameter