|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.ConfigUtilities
public class ConfigUtilities
Provides convenience methods for processing configuration properties.
Method Summary | |
---|---|
protected static void |
checkInputs(Properties properties,
String propertyName)
Check the validity of the input arguments. |
static ConfigUtilities |
getInstance()
Return the singleton instance of this class. |
IntegerPosition |
getIntegerPositionProperty(Properties properties,
String propertyName)
Return the required value specified by the given property name from the given properties. |
IntegerPosition |
getIntegerPositionProperty(Properties properties,
String propertyName,
boolean isRequired)
Return the value specified by the given property name from the given properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ConfigUtilities getInstance()
public IntegerPosition getIntegerPositionProperty(Properties properties, String propertyName)
properties
- Source of data.propertyName
- Property name.public IntegerPosition getIntegerPositionProperty(Properties properties, String propertyName, boolean isRequired)
properties
- Source of data.propertyName
- Property name.isRequired
- Flag indicating if the property is required.protected static void checkInputs(Properties properties, String propertyName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |