com.opensymphony.module.propertyset.map
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
protected java.util.Map |
map
Underlying Map storing properties. |
| Fields inherited from class com.opensymphony.module.propertyset.AbstractPropertySet |
schema |
| Fields inherited from interface com.opensymphony.module.propertyset.PropertySet |
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML |
| Constructor Summary | |
MapPropertySet()
|
|
| Method Summary | |
boolean |
exists(java.lang.String key)
Determine if property exists. |
protected java.lang.Object |
get(int type,
java.lang.String key)
The type parameter is ignored. |
java.util.Collection |
getKeys(java.lang.String prefix,
int type)
The type parameter is ignored. |
java.util.Map |
getMap()
Retrieve underlying map. |
int |
getType(java.lang.String key)
This is an untyped PropertySet implementation so this method will always throw UnsupportedOperationException . |
void |
init(java.util.Map config,
java.util.Map args)
|
void |
remove()
Remove the propertyset and all it associated keys. |
void |
remove(java.lang.String key)
Removes property. |
protected void |
setImpl(int type,
java.lang.String key,
java.lang.Object value)
The type parameter is ignored. |
void |
setMap(java.util.Map map)
Set underlying map. |
boolean |
supportsType(int type)
Returns false. |
boolean |
supportsTypes()
Returns false. |
| Methods inherited from class com.opensymphony.module.propertyset.AbstractPropertySet |
getAsActualType, getBoolean, getData, getDate, getDouble, getInt, getKeys, getKeys, getKeys, getLong, getObject, getProperties, getSchema, getString, getText, getXML, isSettable, setAsActualType, setBoolean, setData, setDate, setDouble, setInt, setLong, setObject, setProperties, setSchema, setString, setText, setXML, toString, type, type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Map map
| Constructor Detail |
public MapPropertySet()
| Method Detail |
public java.util.Collection getKeys(java.lang.String prefix,
int type)
prefix - 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.public void setMap(java.util.Map map)
public java.util.Map getMap()
public int getType(java.lang.String key)
throws java.lang.UnsupportedOperationException
UnsupportedOperationException .
java.lang.UnsupportedOperationExceptionpublic boolean exists(java.lang.String key)
PropertySet
public void init(java.util.Map config,
java.util.Map args)
init in interface PropertySetinit in class AbstractPropertySetpublic void remove(java.lang.String key)
PropertySet
public void remove()
throws PropertyException
PropertySet
PropertyException - if there is an error removing the propertyset.public boolean supportsType(int type)
supportsType in interface PropertySetsupportsType in class AbstractPropertySetpublic boolean supportsTypes()
supportsTypes in interface PropertySetsupportsTypes in class AbstractPropertySet
protected void setImpl(int type,
java.lang.String key,
java.lang.Object value)
setImpl in class AbstractPropertySet
protected java.lang.Object get(int type,
java.lang.String key)
get in class AbstractPropertySet
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||