|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the base interface for buisiness Configuration objects. This type of configuration should be used to define configurations that are not interfaced through a strongly-typed Java interface. This type of configuration is often used for generic data and information that is not connected to a specific business entity.
Copyright 2002 Sapient
Method Summary | |
boolean |
getBooleanProperty(String propertyName)
Retrieves a configured boolean values |
boolean |
getBooleanProperty(String propertyName,
boolean defaultValue)
Retrieves a configured boolean values |
byte |
getByteProperty(String propertyName)
Retrieves a configured byte property. |
byte |
getByteProperty(String propertyName,
byte defaultValue)
Retrieves a configured byte property. |
Class |
getClassProperty(String propertyName)
Retrieves a configured class object |
Class |
getClassProperty(String propertyName,
Class defaultValue)
Retrieves a configured Class values |
String[] |
getCSVProperty(String propertyName)
Retrieves an array of string values that are retrieved from the configuration document at the supplied key. |
Date |
getDateProperty(String propertyName)
Retrieves a configured class object |
Date |
getDateProperty(String propertyName,
Date defaultValue)
Retrieves a configured Class values |
double |
getDoubleProperty(String propertyName)
Retrieves a configured double value |
double |
getDoubleProperty(String propertyName,
double defaultValue)
Retrieves a configured double values |
float |
getFloatProperty(String propertyName)
Retrieves a configured float value. |
float |
getFloatProperty(String propertyName,
float defaultValue)
Retrieves a configured float values |
int |
getIntProperty(String propertyName)
Retrieves a configured int value |
int |
getIntProperty(String propertyName,
int defaultValue)
Retrieves a configured int values |
long |
getLongProperty(String propertyName)
Retrieves a configured long property. |
long |
getLongProperty(String propertyName,
long defaultValue)
Retrieves a configured long values |
String |
getProperty(String propertyName)
Retrieves a string property configuration |
String |
getProperty(String propertyName,
String defaultValue)
Retrieves a string property configuration or returns the supplied default if none is found. |
short |
getShortProperty(String propertyName)
Retrieves a configured short value |
short |
getShortProperty(String propertyName,
short defaultValue)
Retrieves a configured short values |
String[] |
getWSVProperty(String propertyName)
Retrieves an array of string values that are retrieved from the configuration document at the supplied key. |
void |
setBooleanProperty(String propertyName,
boolean value)
Sets the property named by propertyName to the value specified by value as a boolean |
void |
setByteProperty(String propertyName,
byte value)
Sets the property named by propertyName to the value specified by value as a byte |
void |
setClassProperty(String propertyName,
Class value)
Sets the property named by propertyName to the value specified by value as a Class |
void |
setCSVProperty(String propertyName,
String[] values)
Sets the property named by propertyName to the value specified by value as a comma separated list of strings |
void |
setDateProperty(String propertyName,
Date value)
Sets the property named by propertyName to the value specified by value as a Class |
void |
setDoubleProperty(String propertyName,
double value)
Sets the property named by propertyName to the value specified by value as a double |
void |
setFloatProperty(String propertyName,
float value)
Sets the property named by propertyName to the value specified by value as a float |
void |
setIntProperty(String propertyName,
int value)
Sets the property named by propertyName to the value specified by value as a int |
void |
setLongProperty(String propertyName,
long value)
Sets the property named by propertyName to the value specified by value as a long |
void |
setProperty(String propertyName,
String value)
Sets the property named by propertyName to the value specified by value as a String |
void |
setShortProperty(String propertyName,
short value)
Sets the property named by propertyName to the value specified by value as a short |
void |
setWSVProperty(String propertyName,
String[] values)
Sets the property named by propertyName to the value specified by value as a white-space separated list of strings |
Methods inherited from interface org.sape.carbon.core.config.Configuration |
clone, getConfigurationInterface, getConfigurationName, getDataStructure, getRootElement, isConfigurationWritable, setConfigurationName, setConfigurationReadOnly |
Method Detail |
public String getProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public String getProperty(String propertyName, String defaultValue)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuedefaultValue
- the value to be returned if not configured
public void setProperty(String propertyName, String value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic String[] getCSVProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setCSVProperty(String propertyName, String[] values)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalues
- array of the new values that will be serialized, separated
by commaspublic String[] getWSVProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setWSVProperty(String propertyName, String[] values)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalues
- array of the new values that will be serialized, separated
by spaces.public byte getByteProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public byte getByteProperty(String propertyName, byte defaultValue)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuedefaultValue
- the byte to be returned if none is configured
public void setByteProperty(String propertyName, byte value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic boolean getBooleanProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public boolean getBooleanProperty(String propertyName, boolean defaultValue)
defaultValue
- the default boolean to be returned if
none is configuredpropertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setBooleanProperty(String propertyName, boolean value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic short getShortProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public short getShortProperty(String propertyName, short defaultValue)
defaultValue
- the default short to be returned if
none is configuredpropertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setShortProperty(String propertyName, short value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic int getIntProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public int getIntProperty(String propertyName, int defaultValue)
defaultValue
- the default int to be returned if none is configuredpropertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setIntProperty(String propertyName, int value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic long getLongProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public long getLongProperty(String propertyName, long defaultValue)
defaultValue
- the default long to be returned if none is configuredpropertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setLongProperty(String propertyName, long value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic float getFloatProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public float getFloatProperty(String propertyName, float defaultValue)
defaultValue
- the default float to be returned if
none is configuredpropertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setFloatProperty(String propertyName, float value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic double getDoubleProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public double getDoubleProperty(String propertyName, double defaultValue)
defaultValue
- the default double to be returned if
none is configuredpropertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setDoubleProperty(String propertyName, double value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic Class getClassProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public Class getClassProperty(String propertyName, Class defaultValue)
defaultValue
- a fully qualified class name to be
returned if none is configuredpropertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setClassProperty(String propertyName, Class value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new valuepublic Date getDateProperty(String propertyName)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public Date getDateProperty(String propertyName, Date defaultValue)
defaultValue
- a fully qualified class name to be returned
if none is configuredpropertyName
- a dot ('.') delimeted path/key to the requested
configuration value
public void setDateProperty(String propertyName, Date value)
propertyName
- a dot ('.') delimeted path/key to the requested
configuration valuevalue
- the new value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |