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
 
Method Summary
 java.lang.String getClassType()
           
 java.lang.String[] getCompatibleTypes()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.io.Serializable getValue()
           
 java.lang.String getValueClass()
           
 void setBaseInfo(java.lang.String name, java.lang.Class classType, java.lang.String[] compatibleTypes, java.lang.String desc, java.lang.reflect.Method parser)
           
 void setValue(java.io.Serializable value)
           
 void setValue(java.lang.String stringifiedValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 property
value - 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)
Method Detail

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