com.threerings.config
Class Parameter.Direct
java.lang.Object
com.threerings.util.DeepObject
com.threerings.config.Parameter
com.threerings.config.Parameter.Direct
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
- Direct Known Subclasses:
- Parameter.Translated
- Enclosing class:
- Parameter
public static class Parameter.Direct
- extends Parameter
A parameter that directly controls a number of fields identified by paths.
|
Field Summary |
String[] |
paths
The reference paths of the properties that this parameter adjusts. |
paths
@Editable(width=40,
editor="paths")
public String[] paths
- The reference paths of the properties that this parameter adjusts. The first valid
path determines the type and default value.
Parameter.Direct
public Parameter.Direct()
validatePaths
public boolean validatePaths(String where,
ParameterizedConfig reference,
PrintStream out)
- Description copied from class:
Parameter
- Validates the parameter's paths.
- Specified by:
validatePaths in class Parameter
- Returns:
- true if the paths are valid.
createProperty
protected Property createProperty(ParameterizedConfig reference)
- Description copied from class:
Parameter
- Creates the property used to apply this parameter.
- Specified by:
createProperty in class Parameter
createArgumentProperty
protected Property createArgumentProperty(ParameterizedConfig reference)
- Description copied from class:
Parameter
- Creates the property used to set and retrieve the argument corresponding to this
property.
- Specified by:
createArgumentProperty in class Parameter