com.javageeks.gjas
Class ConfigProperty
java.lang.Object
|
+--com.javageeks.gjas.ConfigProperty
- All Implemented Interfaces:
- java.io.Serializable
- public class ConfigProperty
- extends java.lang.Object
- implements java.io.Serializable
Class to provide configuration information to interested parties
- See Also:
- Serialized Form
Constructor Summary |
ConfigProperty()
|
ConfigProperty(java.lang.String name,
java.lang.Class classType,
java.lang.String[] compatibleTypes,
java.io.Serializable value,
java.lang.String desc,
java.lang.reflect.Method parser)
|
ConfigProperty(java.lang.String name,
java.lang.Class classType,
java.lang.String[] compatibleTypes,
java.lang.String desc,
java.lang.reflect.Method parser)
|
ConfigProperty(java.lang.String name,
java.lang.Object value,
java.lang.String desc)
Simplified version: assumes no compatible types, and no
"stringified" parser is specified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConfigProperty
public ConfigProperty()
ConfigProperty
public ConfigProperty(java.lang.String name,
java.lang.Object value,
java.lang.String desc)
- Simplified version: assumes no compatible types, and no
"stringified" parser is specified
- Parameters:
name
- The name of the propertyvalue
- The initial value of the property; must not
be null! ConfigProperty uses the class type of this
parameter to determine the class type of the property.desc
- A human-readable description of the property
ConfigProperty
public ConfigProperty(java.lang.String name,
java.lang.Class classType,
java.lang.String[] compatibleTypes,
java.lang.String desc,
java.lang.reflect.Method parser)
ConfigProperty
public ConfigProperty(java.lang.String name,
java.lang.Class classType,
java.lang.String[] compatibleTypes,
java.io.Serializable value,
java.lang.String desc,
java.lang.reflect.Method parser)
setBaseInfo
public void setBaseInfo(java.lang.String name,
java.lang.Class classType,
java.lang.String[] compatibleTypes,
java.lang.String desc,
java.lang.reflect.Method parser)
getName
public java.lang.String getName()
getClassType
public java.lang.String getClassType()
getCompatibleTypes
public java.lang.String[] getCompatibleTypes()
getDescription
public java.lang.String getDescription()
getValue
public java.io.Serializable getValue()
getValueClass
public java.lang.String getValueClass()
setValue
public void setValue(java.io.Serializable value)
setValue
public void setValue(java.lang.String stringifiedValue)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object