com.opensymphony.module.propertyset.cached
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary |
| Fields inherited from interface com.opensymphony.module.propertyset.PropertySet |
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML |
| Constructor Summary | |
CachingPropertySet()
|
|
| Method Summary | |
boolean |
exists(java.lang.String key)
Determine if property exists. |
java.lang.Object |
getAsActualType(java.lang.String key)
|
boolean |
getBoolean(java.lang.String key)
|
byte[] |
getData(java.lang.String key)
|
java.util.Date |
getDate(java.lang.String key)
|
double |
getDouble(java.lang.String key)
|
int |
getInt(java.lang.String key)
|
java.util.Collection |
getKeys()
List all keys. |
java.util.Collection |
getKeys(int type)
List all keys of certain type. |
java.util.Collection |
getKeys(java.lang.String prefix)
List all keys starting with supplied prefix. |
java.util.Collection |
getKeys(java.lang.String prefix,
int type)
List all keys starting with supplied prefix of certain type. |
long |
getLong(java.lang.String key)
|
java.lang.Object |
getObject(java.lang.String key)
|
java.util.Properties |
getProperties(java.lang.String key)
|
PropertySetSchema |
getSchema()
|
java.lang.String |
getString(java.lang.String key)
String of maximum 255 chars. |
java.lang.String |
getText(java.lang.String key)
String of unlimited length. |
int |
getType(java.lang.String key)
Returns type of value. |
org.w3c.dom.Document |
getXML(java.lang.String key)
|
void |
init(java.util.Map config,
java.util.Map args)
|
boolean |
isSettable(java.lang.String property)
Whether this PropertySet implementation allows values to be set (as opposed to read-only). |
void |
remove()
Remove the propertyset and all it associated keys. |
void |
remove(java.lang.String key)
Removes property. |
void |
setAsActualType(java.lang.String key,
java.lang.Object value)
|
void |
setBoolean(java.lang.String key,
boolean value)
|
void |
setData(java.lang.String key,
byte[] value)
|
void |
setDate(java.lang.String key,
java.util.Date value)
|
void |
setDouble(java.lang.String key,
double value)
|
void |
setInt(java.lang.String key,
int value)
|
void |
setLong(java.lang.String key,
long value)
|
void |
setObject(java.lang.String key,
java.lang.Object value)
|
void |
setProperties(java.lang.String key,
java.util.Properties value)
|
void |
setSchema(PropertySetSchema schema)
|
void |
setString(java.lang.String key,
java.lang.String value)
|
void |
setText(java.lang.String key,
java.lang.String value)
|
void |
setXML(java.lang.String key,
org.w3c.dom.Document value)
|
boolean |
supportsType(int type)
Whether this PropertySet implementation allows the type specified to be stored or retrieved. |
boolean |
supportsTypes()
Whether this PropertySet implementation supports types when storing values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CachingPropertySet()
| Method Detail |
public void setAsActualType(java.lang.String key,
java.lang.Object value)
throws PropertyException
setAsActualType in interface PropertySetPropertyException
public java.lang.Object getAsActualType(java.lang.String key)
throws PropertyException
getAsActualType in interface PropertySetPropertyException
public void setBoolean(java.lang.String key,
boolean value)
throws PropertyException
setBoolean in interface PropertySetPropertyException
public boolean getBoolean(java.lang.String key)
throws PropertyException
getBoolean in interface PropertySetPropertyException
public void setData(java.lang.String key,
byte[] value)
throws PropertyException
setData in interface PropertySetPropertyException
public byte[] getData(java.lang.String key)
throws PropertyException
getData in interface PropertySetPropertyException
public void setDate(java.lang.String key,
java.util.Date value)
throws PropertyException
setDate in interface PropertySetPropertyException
public java.util.Date getDate(java.lang.String key)
throws PropertyException
getDate in interface PropertySetPropertyException
public void setDouble(java.lang.String key,
double value)
throws PropertyException
setDouble in interface PropertySetPropertyException
public double getDouble(java.lang.String key)
throws PropertyException
getDouble in interface PropertySetPropertyException
public void setInt(java.lang.String key,
int value)
throws PropertyException
setInt in interface PropertySetPropertyException
public int getInt(java.lang.String key)
throws PropertyException
getInt in interface PropertySetPropertyException
public java.util.Collection getKeys()
throws PropertyException
PropertySet
getKeys in interface PropertySetCollection of
Strings.
PropertyException
public java.util.Collection getKeys(int type)
throws PropertyException
PropertySet
getKeys in interface PropertySettype - Type to list. See static class variables. If null, then
all types shall be returned.
Collection of
Strings.
PropertyException
public java.util.Collection getKeys(java.lang.String prefix)
throws PropertyException
PropertySet
getKeys in interface PropertySetprefix - String that keys must start with. If null, than all
keys shall be returned.
Collection of
Strings.
PropertyException
public java.util.Collection getKeys(java.lang.String prefix,
int type)
throws PropertyException
PropertySet
getKeys in interface PropertySetprefix - String that keys must start with. If null, than all
keys shall be returned.type - Type to list. See static class variables. If null, then
all types shall be returned.
Collection of
Strings.
PropertyException
public void setLong(java.lang.String key,
long value)
throws PropertyException
setLong in interface PropertySetPropertyException
public long getLong(java.lang.String key)
throws PropertyException
getLong in interface PropertySetPropertyException
public void setObject(java.lang.String key,
java.lang.Object value)
throws PropertyException
setObject in interface PropertySetPropertyException
public java.lang.Object getObject(java.lang.String key)
throws PropertyException
getObject in interface PropertySetPropertyException
public void setProperties(java.lang.String key,
java.util.Properties value)
throws PropertyException
setProperties in interface PropertySetPropertyException
public java.util.Properties getProperties(java.lang.String key)
throws PropertyException
getProperties in interface PropertySetPropertyExceptionpublic void setSchema(PropertySetSchema schema) throws PropertyException
setSchema in interface PropertySetPropertyExceptionpublic PropertySetSchema getSchema() throws PropertyException
getSchema in interface PropertySetPropertyExceptionpublic boolean isSettable(java.lang.String property)
PropertySet
isSettable in interface PropertySet
public void setString(java.lang.String key,
java.lang.String value)
throws PropertyException
setString in interface PropertySetPropertyException
public java.lang.String getString(java.lang.String key)
throws PropertyException
PropertySetString of maximum 255 chars.
getString in interface PropertySetPropertyException
public void setText(java.lang.String key,
java.lang.String value)
throws PropertyException
setText in interface PropertySetPropertyException
public java.lang.String getText(java.lang.String key)
throws PropertyException
PropertySetString of unlimited length.
getText in interface PropertySetPropertyException
public int getType(java.lang.String key)
throws PropertyException
PropertySet
getType in interface PropertySetPropertyException
public void setXML(java.lang.String key,
org.w3c.dom.Document value)
throws PropertyException
setXML in interface PropertySetPropertyException
public org.w3c.dom.Document getXML(java.lang.String key)
throws PropertyException
getXML in interface PropertySetPropertyException
public boolean exists(java.lang.String key)
throws PropertyException
PropertySet
exists in interface PropertySetPropertyException
public void init(java.util.Map config,
java.util.Map args)
init in interface PropertySet
public void remove()
throws PropertyException
PropertySet
remove in interface PropertySetPropertyException - if there is an error removing the propertyset.
public void remove(java.lang.String key)
throws PropertyException
PropertySet
remove in interface PropertySetPropertyExceptionpublic boolean supportsType(int type)
PropertySet
supportsType in interface PropertySetpublic boolean supportsTypes()
PropertySet
supportsTypes in interface PropertySet
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||