com.opensymphony.module.propertyset
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
static int |
BOOLEAN
Value-type boolean |
static int |
DATA
Value-type byte[] |
static int |
DATE
Value-type Date |
static int |
DOUBLE
Value-type double |
static int |
INT
Value-type int |
static int |
LONG
Value-type long |
static int |
OBJECT
Value-type serializable Object |
static int |
PROPERTIES
Value-type Properties |
static int |
STRING
Value-type String (max length 255) |
static int |
TEXT
Value-type text (unlimited length String) |
static int |
XML
Value-type XML Document |
| 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. |
| Field Detail |
public static final int BOOLEAN
public static final int DATA
public static final int DATE
Date
public static final int DOUBLE
public static final int INT
public static final int LONG
public static final int OBJECT
Object
public static final int PROPERTIES
Properties
public static final int STRING
String (max length 255)
public static final int TEXT
String)
public static final int XML
Document
| Method Detail |
public void setSchema(PropertySetSchema schema) throws PropertyException
PropertyExceptionpublic PropertySetSchema getSchema() throws PropertyException
PropertyException
public void setAsActualType(java.lang.String key,
java.lang.Object value)
throws PropertyException
PropertyException
public java.lang.Object getAsActualType(java.lang.String key)
throws PropertyException
PropertyException
public void setBoolean(java.lang.String key,
boolean value)
throws PropertyException
PropertyException
public boolean getBoolean(java.lang.String key)
throws PropertyException
PropertyException
public void setData(java.lang.String key,
byte[] value)
throws PropertyException
PropertyException
public byte[] getData(java.lang.String key)
throws PropertyException
PropertyException
public void setDate(java.lang.String key,
java.util.Date value)
throws PropertyException
PropertyException
public java.util.Date getDate(java.lang.String key)
throws PropertyException
PropertyException
public void setDouble(java.lang.String key,
double value)
throws PropertyException
PropertyException
public double getDouble(java.lang.String key)
throws PropertyException
PropertyException
public void setInt(java.lang.String key,
int value)
throws PropertyException
PropertyException
public int getInt(java.lang.String key)
throws PropertyException
PropertyException
public java.util.Collection getKeys()
throws PropertyException
Collection of
Strings.
PropertyException
public java.util.Collection getKeys(int type)
throws PropertyException
type - 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
prefix - 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
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.
PropertyException
public void setLong(java.lang.String key,
long value)
throws PropertyException
PropertyException
public long getLong(java.lang.String key)
throws PropertyException
PropertyException
public void setObject(java.lang.String key,
java.lang.Object value)
throws PropertyException
PropertyException
public java.lang.Object getObject(java.lang.String key)
throws PropertyException
PropertyException
public void setProperties(java.lang.String key,
java.util.Properties value)
throws PropertyException
PropertyException
public java.util.Properties getProperties(java.lang.String key)
throws PropertyException
PropertyExceptionpublic boolean isSettable(java.lang.String property)
public void setString(java.lang.String key,
java.lang.String value)
throws PropertyException
PropertyException
public java.lang.String getString(java.lang.String key)
throws PropertyException
String of maximum 255 chars.
PropertyException
public void setText(java.lang.String key,
java.lang.String value)
throws PropertyException
PropertyException
public java.lang.String getText(java.lang.String key)
throws PropertyException
String of unlimited length.
PropertyException
public int getType(java.lang.String key)
throws PropertyException
PropertyException
public void setXML(java.lang.String key,
org.w3c.dom.Document value)
throws PropertyException
PropertyException
public org.w3c.dom.Document getXML(java.lang.String key)
throws PropertyException
PropertyException
public boolean exists(java.lang.String key)
throws PropertyException
PropertyException
public void init(java.util.Map config,
java.util.Map args)
public void remove(java.lang.String key)
throws PropertyException
PropertyException
public void remove()
throws PropertyException
PropertyException - if there is an error removing the propertyset.public boolean supportsType(int type)
public boolean supportsTypes()
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||