public class CacheAwarePropertySet extends Object implements com.opensymphony.module.propertyset.PropertySet, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_ARGUMENT |
static String |
DECORATED_PROPERTY_SET_ARGUMENT |
static String |
PROPERTY_SET_KEY_ARGUMENT |
Constructor and Description |
---|
CacheAwarePropertySet() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(String key) |
Object |
getAsActualType(String key) |
boolean |
getBoolean(String key) |
byte[] |
getData(String key) |
Date |
getDate(String key) |
double |
getDouble(String key) |
int |
getInt(String key) |
Collection |
getKeys() |
Collection |
getKeys(int type) |
Collection |
getKeys(String prefix) |
Collection |
getKeys(String prefix,
int type) |
long |
getLong(String key) |
Object |
getObject(String key) |
Properties |
getProperties(String key) |
com.opensymphony.module.propertyset.PropertySetSchema |
getSchema() |
String |
getString(String key) |
String |
getText(String key) |
int |
getType(String key) |
Document |
getXML(String key) |
void |
init(Map config,
Map args) |
boolean |
isSettable(String property) |
void |
remove(String key) |
void |
setAsActualType(String key,
Object value) |
void |
setBoolean(String key,
boolean value) |
void |
setData(String key,
byte[] value) |
void |
setDate(String key,
Date value) |
void |
setDouble(String key,
double value) |
void |
setInt(String key,
int value) |
void |
setLong(String key,
long value) |
void |
setObject(String key,
Object value) |
void |
setProperties(String key,
Properties value) |
void |
setSchema(com.opensymphony.module.propertyset.PropertySetSchema schema) |
void |
setString(String key,
String value) |
void |
setText(String key,
String value) |
void |
setXML(String key,
Document value) |
boolean |
supportsType(int type) |
boolean |
supportsTypes() |
public static final String CACHE_ARGUMENT
public static final String PROPERTY_SET_KEY_ARGUMENT
public static final String DECORATED_PROPERTY_SET_ARGUMENT
public void init(Map config, Map args)
init
in interface com.opensymphony.module.propertyset.PropertySet
public void setAsActualType(String key, Object value) throws com.opensymphony.module.propertyset.PropertyException
setAsActualType
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Object getAsActualType(String key) throws com.opensymphony.module.propertyset.PropertyException
getAsActualType
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setBoolean(String key, boolean value) throws com.opensymphony.module.propertyset.PropertyException
setBoolean
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public boolean getBoolean(String key) throws com.opensymphony.module.propertyset.PropertyException
getBoolean
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setData(String key, byte[] value) throws com.opensymphony.module.propertyset.PropertyException
setData
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public byte[] getData(String key) throws com.opensymphony.module.propertyset.PropertyException
getData
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setDate(String key, Date value) throws com.opensymphony.module.propertyset.PropertyException
setDate
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Date getDate(String key) throws com.opensymphony.module.propertyset.PropertyException
getDate
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setDouble(String key, double value) throws com.opensymphony.module.propertyset.PropertyException
setDouble
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public double getDouble(String key) throws com.opensymphony.module.propertyset.PropertyException
getDouble
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setInt(String key, int value) throws com.opensymphony.module.propertyset.PropertyException
setInt
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public int getInt(String key) throws com.opensymphony.module.propertyset.PropertyException
getInt
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Collection getKeys() throws com.opensymphony.module.propertyset.PropertyException
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Collection getKeys(int type) throws com.opensymphony.module.propertyset.PropertyException
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Collection getKeys(String prefix) throws com.opensymphony.module.propertyset.PropertyException
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Collection getKeys(String prefix, int type) throws com.opensymphony.module.propertyset.PropertyException
getKeys
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setLong(String key, long value) throws com.opensymphony.module.propertyset.PropertyException
setLong
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public long getLong(String key) throws com.opensymphony.module.propertyset.PropertyException
getLong
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setObject(String key, Object value) throws com.opensymphony.module.propertyset.PropertyException
setObject
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Object getObject(String key) throws com.opensymphony.module.propertyset.PropertyException
getObject
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setProperties(String key, Properties value) throws com.opensymphony.module.propertyset.PropertyException
setProperties
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Properties getProperties(String key) throws com.opensymphony.module.propertyset.PropertyException
getProperties
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setSchema(com.opensymphony.module.propertyset.PropertySetSchema schema) throws com.opensymphony.module.propertyset.PropertyException
setSchema
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public com.opensymphony.module.propertyset.PropertySetSchema getSchema() throws com.opensymphony.module.propertyset.PropertyException
getSchema
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public boolean isSettable(String property)
isSettable
in interface com.opensymphony.module.propertyset.PropertySet
public void setString(String key, String value) throws com.opensymphony.module.propertyset.PropertyException
setString
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public String getString(String key) throws com.opensymphony.module.propertyset.PropertyException
getString
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setText(String key, String value) throws com.opensymphony.module.propertyset.PropertyException
setText
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public String getText(String key) throws com.opensymphony.module.propertyset.PropertyException
getText
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public int getType(String key) throws com.opensymphony.module.propertyset.PropertyException
getType
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void setXML(String key, Document value) throws com.opensymphony.module.propertyset.PropertyException
setXML
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public Document getXML(String key) throws com.opensymphony.module.propertyset.PropertyException
getXML
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public boolean exists(String key) throws com.opensymphony.module.propertyset.PropertyException
exists
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public void remove(String key) throws com.opensymphony.module.propertyset.PropertyException
remove
in interface com.opensymphony.module.propertyset.PropertySet
com.opensymphony.module.propertyset.PropertyException
public boolean supportsType(int type)
supportsType
in interface com.opensymphony.module.propertyset.PropertySet
public boolean supportsTypes()
supportsTypes
in interface com.opensymphony.module.propertyset.PropertySet
Copyright © 2003–2017 Atlassian. All rights reserved.