|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.editor.util.PropertyUtil
public class PropertyUtil
Some general utility methods relating to editable properties.
| Constructor Summary | |
|---|---|
PropertyUtil()
|
|
| Method Summary | |
|---|---|
static double |
getMaximum(Property[] lineage)
Finds the maximum value by walking up the lineage. |
static int |
getMaxSize(Property[] lineage)
Finds the maximum size by walking up the lineage. |
static double |
getMinimum(Property[] lineage)
Finds the minimum value by walking up the lineage. |
static int |
getMinSize(Property[] lineage)
Finds the minimum size by walking up the lineage. |
static String |
getMode(Property[] lineage)
Finds the mode string by walking up the lineage. |
static void |
getReferences(ConfigManager cfgmgr,
Object object,
Set<Tuple<Class<?>,String>> configs,
Set<String> resources)
Finds all configs and resources referenced in the supplied editable object and places them in the supplied sets. |
static void |
getResources(ConfigManager cfgmgr,
Object object,
Set<String> paths)
Finds all resources referenced by the specified editable object (and any configs referenced by that object, etc.) and places them in the supplied set. |
static double |
getScale(Property[] lineage)
Finds the scale value by walking up the lineage. |
static double |
getStep(Property[] lineage)
Finds the step value by walking up the lineage. |
static String |
getUnits(Property[] lineage)
Finds the units string by walking up the lineage. |
static Object |
strip(ConfigManager cfgmgr,
Object object)
Strips and returns a single object. |
static boolean |
validateReferences(String where,
ConfigManager cfgmgr,
Set<Tuple<Class<?>,String>> configs,
Set<String> resources,
PrintStream out)
Valides the supplied sets of configs and resources. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyUtil()
| Method Detail |
|---|
public static String getMode(Property[] lineage)
lineage - the property lineage, with the actual property at the end.public static String getUnits(Property[] lineage)
lineage - the property lineage, with the actual property at the end.public static double getMinimum(Property[] lineage)
lineage - the property lineage, with the actual property at the end.public static double getMaximum(Property[] lineage)
lineage - the property lineage, with the actual property at the end.public static double getStep(Property[] lineage)
lineage - the property lineage, with the actual property at the end.public static double getScale(Property[] lineage)
lineage - the property lineage, with the actual property at the end.public static int getMinSize(Property[] lineage)
lineage - the property lineage, with the actual property at the end.public static int getMaxSize(Property[] lineage)
lineage - the property lineage, with the actual property at the end.
public static void getReferences(ConfigManager cfgmgr,
Object object,
Set<Tuple<Class<?>,String>> configs,
Set<String> resources)
public static boolean validateReferences(String where,
ConfigManager cfgmgr,
Set<Tuple<Class<?>,String>> configs,
Set<String> resources,
PrintStream out)
public static void getResources(ConfigManager cfgmgr,
Object object,
Set<String> paths)
public static Object strip(ConfigManager cfgmgr,
Object object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||