|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.conf.ConfigurationImpl
| Field Summary | |
protected org.apache.commons.logging.LogFactory |
logFactory
|
| Fields inherited from interface com.solarmetric.conf.Configuration |
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_TYPE |
| Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
ConfigurationImpl()
|
|
ConfigurationImpl(boolean)
|
|
| Method Summary | |
protected BooleanValue |
addBoolean(String)
|
protected DoubleValue |
addDouble(String)
|
protected IntValue |
addInt(String)
|
protected PluginValue |
addPlugin(String)
|
protected PluginListValue |
addPluginList(String)
|
protected StringValue |
addString(String)
|
protected StringListValue |
addStringList(String)
|
protected Value |
addValue(Value)
|
protected void |
assertNotFrozen()
|
void |
close()
Free the resources used by this object. |
boolean |
equals(Object)
|
void |
fromProperties(Properties)
Set this Configuration via the given Properties. |
void |
fromStream(InputStream)
|
BeanInfo[] |
getAdditionalBeanInfo()
|
BeanDescriptor |
getBeanDescriptor()
|
int |
getDefaultEventIndex()
|
int |
getDefaultPropertyIndex()
|
EventSetDescriptor[] |
getEventSetDescriptors()
|
Image |
getIcon(int)
|
org.apache.commons.logging.Log |
getLog(String)
Return the log for the given category. |
org.apache.commons.logging.LogFactory |
getLogFactory()
The log factory. |
MethodDescriptor[] |
getMethodDescriptors()
|
protected String |
getProductName()
|
PropertyDescriptor[] |
getPropertyDescriptors()
|
Value |
getValue(String)
Return a Value for a given property. |
Value[] |
getValues()
Return the set of all Values. |
int |
hashCode()
|
boolean |
isCaching()
Return whether Properties conversions are cached. |
boolean |
isFrozen()
Return true if this Configuration has been frozen. |
boolean |
loadDefaults()
|
void |
readExternal(ObjectInput)
|
void |
setCaching(boolean)
Set whether to optimize Properties conversion
by caching Value states. |
void |
setFrozen(boolean)
Lock down the configuration's state. |
void |
setLog(String,
org.apache.commons.logging.Log)
Set the log for the given category. |
void |
setLogFactory(org.apache.commons.logging.LogFactory)
log factory. |
void |
setProperties(String)
|
void |
setPropertiesFile(File)
|
Properties |
toProperties()
A Properties representation of this Configuration. |
void |
writeExternal(ObjectOutput)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.commons.logging.LogFactory logFactory
| Constructor Detail |
public ConfigurationImpl()
public ConfigurationImpl(boolean)
| Method Detail |
public void setLogFactory(org.apache.commons.logging.LogFactory)
ConfigurationsetLogFactory in interface Configurationpublic org.apache.commons.logging.LogFactory getLogFactory()
ConfigurationgetLogFactory in interface Configuration
public void setLog(String,
org.apache.commons.logging.Log)
ConfigurationsetLog in interface Configurationcom.solarmetric.conf.ConfigurationConfiguration.setLogFactory(org.apache.commons.logging.LogFactory)public org.apache.commons.logging.Log getLog(String)
ConfigurationgetLog in interface Configurationcom.solarmetric.conf.ConfigurationConfiguration.getLogFactory()public Value getValue(String)
ConfigurationValue for a given property.getValue in interface Configurationpublic Value[] getValues()
ConfigurationValues.getValues in interface Configurationpublic BeanInfo[] getAdditionalBeanInfo()
getAdditionalBeanInfo in interface BeanInfopublic BeanDescriptor getBeanDescriptor()
getBeanDescriptor in interface BeanInfopublic int getDefaultEventIndex()
getDefaultEventIndex in interface BeanInfopublic int getDefaultPropertyIndex()
getDefaultPropertyIndex in interface BeanInfopublic EventSetDescriptor[] getEventSetDescriptors()
getEventSetDescriptors in interface BeanInfopublic Image getIcon(int)
getIcon in interface BeanInfopublic MethodDescriptor[] getMethodDescriptors()
getMethodDescriptors in interface BeanInfopublic PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface BeanInfopublic void close()
Configurationclose in interface Configurationprotected String getProductName()
public boolean loadDefaults()
public void setCaching(boolean)
ConfigurationProperties conversion
by caching Value states.setCaching in interface Configurationpublic boolean isCaching()
ConfigurationProperties conversions are cached.isCaching in interface Configurationpublic void setFrozen(boolean)
ConfigurationIllegalStateException.setFrozen in interface Configurationpublic boolean isFrozen()
ConfigurationisFrozen in interface Configurationpublic Properties toProperties()
ConfigurationtoProperties in interface Configurationpublic void fromProperties(Properties)
ConfigurationfromProperties in interface Configuration
public void fromStream(InputStream)
throws IOException
public void setProperties(String)
throws IOException
public void setPropertiesFile(File)
throws IOException
protected void assertNotFrozen()
public boolean equals(Object)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void readExternal(ObjectInput)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizable
public void writeExternal(ObjectOutput)
throws IOException
writeExternal in interface Externalizableprotected Value addValue(Value)
protected StringValue addString(String)
protected IntValue addInt(String)
protected DoubleValue addDouble(String)
protected BooleanValue addBoolean(String)
protected StringListValue addStringList(String)
protected PluginValue addPlugin(String)
protected PluginListValue addPluginList(String)
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||