|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DCXData
Interface for the Dialog Controller Context. All setter methods will throw NullPointerException
, if the given
key is null.
Method Summary | ||
---|---|---|
boolean |
containsKey(javax.xml.namespace.QName key)
Check if the DCX contains a value associated with the given key. |
|
java.lang.Object |
get(javax.xml.namespace.QName key)
Returns the Object associated with the given key in the DCX. |
|
|
get(javax.xml.namespace.QName key,
java.lang.Class<T> targetClass)
Returns the Object associated with the given key in the DCX. |
|
|
get(javax.xml.namespace.QName key,
java.lang.Class<T> targetClass,
T defaultValue)
Returns the object associated with the given key in the DCX. |
|
void |
put(javax.xml.namespace.QName key,
java.lang.Object value)
Stores the given value under the given key in the DCX. |
|
void |
remove(javax.xml.namespace.QName key)
Removes a mapping from the DCX. |
|
|
remove(javax.xml.namespace.QName key,
java.lang.Class<T> targetClass)
Removes a mapping from the DCX. |
Methods inherited from interface com.ibm.portal.Disposable |
---|
dispose |
Method Detail |
---|
boolean containsKey(javax.xml.namespace.QName key)
key
- The key to be used. Must not be null
.
true
if a value is associated with key
, else false
void remove(javax.xml.namespace.QName key)
key
- The key to be used. Must not be null
.<T> T remove(javax.xml.namespace.QName key, java.lang.Class<T> targetClass)
key
- The key to be used. Must not be null
.targetClass
- The class of the requested object.
null
if no object was associated with this key.void put(javax.xml.namespace.QName key, java.lang.Object value)
value
under the given key
in the DCX.
key
- The key to be used. Must not be null
.value
- The value to be stored.java.lang.Object get(javax.xml.namespace.QName key) throws java.lang.IllegalStateException
key
in the DCX.
key
- The key to look up. Must not be null
.
null
.
java.lang.IllegalStateException
- In case the key is associated with a JAXB serialized value, since this method does
not provide any target class information. Use get(QName, Class)
instead to avoid such
issues.<T> T get(javax.xml.namespace.QName key, java.lang.Class<T> targetClass) throws java.lang.IllegalStateException
key
in the DCX.
key
- The key to look up. Must not be null
.targetClass
- The class of the requested object.
null
.
java.lang.IllegalStateException
- In case of an internal exception during JAXB processing.<T> T get(javax.xml.namespace.QName key, java.lang.Class<T> targetClass, T defaultValue) throws java.lang.IllegalStateException
key
in the DCX.
key
- The key to look up. Must not be null
.targetClass
- The class of the requested object.defaultValue
- The default value to return, if there is no value filed for the given key.
defaultValue
(which might be null
).
java.lang.IllegalStateException
- In case of an internal exception during JAXB processing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |