public class MessagePropertiesContext extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Set |
keySet |
protected Map |
scopedMap |
Constructor and Description |
---|
MessagePropertiesContext() |
MessagePropertiesContext(PropertyScope defaultScope) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkScopeForWriteAccess(PropertyScope scope) |
void |
clearProperties() |
void |
clearProperties(PropertyScope scope) |
boolean |
getBooleanProperty(String name,
boolean defaultValue) |
byte |
getByteProperty(String name,
byte defaultValue) |
PropertyScope |
getDefaultScope() |
double |
getDoubleProperty(String name,
double defaultValue) |
float |
getFloatProperty(String name,
float defaultValue) |
int |
getIntProperty(String name,
int defaultValue) |
long |
getLongProperty(String name,
long defaultValue) |
Object |
getProperty(String key) |
Object |
getProperty(String key,
Object defaultValue) |
Object |
getProperty(String key,
PropertyScope scope) |
Set |
getPropertyNames() |
Set |
getPropertyNames(PropertyScope scope) |
protected Map |
getScopedProperties(PropertyScope scope) |
short |
getShortProperty(String name,
short defaultValue) |
String |
getStringProperty(String name,
String defaultValue) |
Object |
removeProperty(String key)
Removes a property on this message
|
void |
setProperty(String key,
Object value)
Set a property on the message
|
void |
setProperty(String key,
Object value,
PropertyScope scope)
Set a property on the message
|
String |
toString() |
public MessagePropertiesContext()
public MessagePropertiesContext(PropertyScope defaultScope)
protected Map getScopedProperties(PropertyScope scope)
public PropertyScope getDefaultScope()
public Object getProperty(String key, PropertyScope scope)
public void clearProperties()
public void clearProperties(PropertyScope scope)
public Object removeProperty(String key)
key
- the property key to removepublic void setProperty(String key, Object value)
key
- the key on which to associate the valuevalue
- the property valuepublic void setProperty(String key, Object value, PropertyScope scope)
key
- the key on which to associate the valuevalue
- the property valuescope
- the scope to se the property onPropertyScope
public Set getPropertyNames()
public Set getPropertyNames(PropertyScope scope)
protected void checkScopeForWriteAccess(PropertyScope scope)
public byte getByteProperty(String name, byte defaultValue)
public short getShortProperty(String name, short defaultValue)
public int getIntProperty(String name, int defaultValue)
public long getLongProperty(String name, long defaultValue)
public float getFloatProperty(String name, float defaultValue)
public double getDoubleProperty(String name, double defaultValue)
public boolean getBooleanProperty(String name, boolean defaultValue)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.