public class DynaBeanACRParameter extends Object implements PolicyParameters
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.beanutils.LazyDynaMap |
policyProperties |
Constructor and Description |
---|
DynaBeanACRParameter() |
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Follows the contract for java.util.Map;
|
BigDecimal |
getBigDecimal(String key)
Convenience method to avoid common casts.
|
BigInteger |
getBigInteger(String key)
Convenience method to avoid common casts.
|
boolean |
getBoolean(String key)
Convenience method to avoid common casts.
|
byte |
getByte(String key)
Convenience method to avoid common casts.
|
char |
getChar(String key)
Convenience method to avoid common casts.
|
Date |
getDate(String key)
Convenience method to avoid common casts.
|
double |
getDouble(String key)
Convenience method to avoid common casts.
|
float |
getFloat(String key)
Convenience method to avoid common casts.
|
int |
getInt(String key)
Convenience method to avoid common casts.
|
long |
getLong(String key)
Convenience method to avoid common casts.
|
Object |
getObject(String key)
Convenience method to avoid common casts.
|
String |
getString(String key)
Convenience method to avoid common casts.
|
String |
getString(String key,
String defaultValue)
Convenience method to avoid common casts.
|
String[] |
getStringArray(String key)
Convenience method to avoid common casts.
|
Date |
getTime(String key)
Convenience method to avoid common casts.
|
void |
lock()
This makes the map itself read only, but the mutability of objects
that this map contains is not affected.
|
void |
put(String key,
Object value)
This is a convenience method for developers that prefer to think of this
as a map instead of being bean-like.
|
void |
set(String key,
Object value)
This works just like a Map, except it will throw an exception if lock()
has been called.
|
String |
toString() |
public Object get(String key)
PolicyParameters
get
in interface PolicyParameters
Map
public boolean getBoolean(String key)
key
- public byte getByte(String key)
key
- public char getChar(String key)
key
- public int getInt(String key)
key
- public long getLong(String key)
key
- public float getFloat(String key)
key
- public double getDouble(String key)
key
- public BigDecimal getBigDecimal(String key)
key
- public BigInteger getBigInteger(String key)
key
- public Date getDate(String key)
key
- public Date getTime(String key)
key
- public String getString(String key)
key
- public String getString(String key, String defaultValue)
key
- public String[] getStringArray(String key)
key
- public Object getObject(String key)
key
- public void set(String key, Object value) throws IllegalArgumentException
PolicyParameters
set
in interface PolicyParameters
IllegalArgumentException
- if this DynaBeanACRParameter instance
has already been locked.public void put(String key, Object value) throws IllegalArgumentException
PolicyParameters
put
in interface PolicyParameters
IllegalArgumentException
PolicyParameters.set(String, Object)
public void lock()
lock
in interface PolicyParameters
Copyright © 2019 The Open Web Application Security Project (OWASP). All rights reserved.