org.wilmascope.global
Class AbstractConstants
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
org.wilmascope.global.AbstractConstants
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>
- Direct Known Subclasses:
- GlobalConstants, ViewConstants
public abstract class AbstractConstants
- extends java.util.Properties
- See Also:
- Serialized Form
Fields inherited from class java.util.Properties |
defaults |
Method Summary |
boolean |
getBooleanValue(java.lang.String constantName)
Gets the boolean value for the specified constant. |
javax.vecmath.Color3f |
getColor3f(java.lang.String constantName)
|
float |
getFloatValue(java.lang.String constantName)
Gets the float value for the specified constant. |
int |
getIntValue(java.lang.String constantName)
Gets the int value for the specified constant. |
javax.vecmath.Vector3f |
getVector3f(java.lang.String constantName)
|
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractConstants
public AbstractConstants(java.util.Properties defaultProperties)
AbstractConstants
public AbstractConstants(java.util.Properties defaultProperties,
java.util.ResourceBundle bundle)
getIntValue
public int getIntValue(java.lang.String constantName)
- Gets the int value for the specified constant.
If the specified constant does not exist or is not in a
valid integer number format in properties then it
attempts to get the value from the defaults.
- Parameters:
constantName
-
- Returns:
- int value of the constant
getBooleanValue
public boolean getBooleanValue(java.lang.String constantName)
- Gets the boolean value for the specified constant.
getFloatValue
public float getFloatValue(java.lang.String constantName)
- Gets the float value for the specified constant.
If the specified constant does not exist or is not in a
valid floating point number format in properties then it
attempts to get the value from the defaults.
- Parameters:
constantName
-
- Returns:
- float value of the constant
getVector3f
public javax.vecmath.Vector3f getVector3f(java.lang.String constantName)
- Parameters:
constantName
- name of constant to return
- Returns:
- Vector3f representation of the constant
getColor3f
public javax.vecmath.Color3f getColor3f(java.lang.String constantName)
- Parameters:
constantName
- name of constant to return
- Returns:
- Vector3f representation of the constant