public class SimpleValue extends AbstractValue implements Reloadable
set(java.lang.Object) method can be retrieved later with the AbstractValue.get() method.| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleValue.Exposure
Simple value that implements the
ExposureTimeMeasuring interface
to use it as an exposure time meter. |
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private Constructor<?> |
cval
The constructor used for setting with strings.
|
static String[] |
KEY_VALUE
If one of these keys is present, this value defaults to its mapping.
|
private Number |
val
The value of the paramter.
|
private static Class<?>[] |
VALUETYPE
The classes to use if a default value is given.
|
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 |
|---|
SimpleValue()
Constructs a simple parameter without any properteis.
|
SimpleValue(double val)
Constructs a simple parameter without any properties.
|
SimpleValue(Map<String,String> prop)
Constructs a simple parameter without any specific need for the
properties argument.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
getValue()
Gets the value of this parameter.
|
double |
rescanned(String key,
String old,
String newval)
Makes this method public, sets the new number if possible.
|
private Number |
scan()
We scan all known possible value pointers if they are present.
|
Object |
set(Object str)
Allows setting via a string.
|
Number |
setValue(Number newval)
Sets the value of this parameter.
|
getcreateParameter, delivers, exit, getFormatted, 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, 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, stringPropertiesinitpublic static final String[] KEY_VALUE
private static final Class<?>[] VALUETYPE
private Number val
private Constructor<?> cval
public SimpleValue()
public SimpleValue(double val)
private Number scan()
public Object set(Object str)
set in interface Parameterset in class AbstractValuepublic double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic Number getValue()