com.threerings.config
Class Parameter.Direct

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.Parameter
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.config.Parameter
Parameter.Choice, Parameter.Direct, Parameter.Translated
 
Field Summary
 String[] paths
          The reference paths of the properties that this parameter adjusts.
 
Fields inherited from class com.threerings.config.Parameter
name
 
Constructor Summary
Parameter.Direct()
           
 
Method Summary
 boolean validatePaths(String where, ParameterizedConfig reference, PrintStream out)
          Validates the parameter's paths.
 
Methods inherited from class com.threerings.config.Parameter
getArgumentProperty, getProperty, invalidateProperties, validateOuters
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

Parameter.Direct

public Parameter.Direct()
Method Detail

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.


Copyright © 2011. All Rights Reserved.