|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.container.AbstractContainer
public abstract class AbstractContainer
Abstract class that implements all it.eng.spagobi.container.IContainer
methods apart from get/set/remove/getKeys methods.
All other methods are implemented starting from abstract set and get methods.
This class provides implementation for standard objects cast and conversion such as String, Boolean, Integer.
Constructor Summary | |
---|---|
AbstractContainer()
|
Method Summary | |
---|---|
BIObject |
getBIObject(java.lang.String key)
TO BE USED ONLY INSIDE SPAGOBI CORE, NOT INSIDE EXTERNAL ENGINES. |
java.lang.Boolean |
getBoolean(java.lang.String key)
If the key has no objects associated, null is returned. |
ExecutionInstance |
getExecutionInstance(java.lang.String key)
TO BE USED ONLY INSIDE SPAGOBI CORE, NOT INSIDE EXTERNAL ENGINES. |
java.lang.Integer |
getInteger(java.lang.String key)
If the key has no objects associated, null is returned. |
java.util.List |
getList(java.lang.String key)
Return the List associated with the input key. |
java.lang.String |
getString(java.lang.String key)
Returns the string representation of the object with the given key; if the key has no objects associated, null is returned |
boolean |
isBlankOrNull(java.lang.String key)
Returns true if no objects are stored into the container with the input key or if the relevant object exists and its string representation is blank, false otherwise |
boolean |
isNull(java.lang.String key)
Returns true if no objects are stored into the container with the input key, false otherwise |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.eng.spagobi.container.IContainer |
---|
get, getKeys, remove, set |
Constructor Detail |
---|
public AbstractContainer()
Method Detail |
---|
public boolean isNull(java.lang.String key)
isNull
in interface IContainer
key
- The input key
public boolean isBlankOrNull(java.lang.String key)
isBlankOrNull
in interface IContainer
key
- The input key
public java.lang.String getString(java.lang.String key)
getString
in interface IContainer
key
- The input key
public java.lang.Boolean getBoolean(java.lang.String key)
Boolean.parseBoolean(string); and the result is returned.
- Specified by:
getBoolean
in interface IContainer
- Parameters:
key
- The input key
- Returns:
- If the key has no objects associated, null is returned. If a Boolean object is associated to that key, this boolean is returned.
Otherwise the string representation of the object is parsed with
Boolean.parseBoolean(string); and the result is returned.
public java.lang.Integer getInteger(java.lang.String key)
Integer.parseInt(string); and the result is returned.
- Specified by:
getInteger
in interface IContainer
- Parameters:
key
- The input key
- Returns:
- If the key has no objects associated, null is returned. If a Integer object is associated to that key, this Integer is returned.
Otherwise the string representation of the object is parsed with
Integer.parseInt(string); and the result is returned.
public BIObject getBIObject(java.lang.String key)
key
- The input key
public ExecutionInstance getExecutionInstance(java.lang.String key)
key
- The input key
public java.util.List getList(java.lang.String key)
getList
in interface IContainer
key
- The input key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |