|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Context
Defines the context interface used by Components. Context implementations need to respect the ordering and copying requirements imposed by Components.
Copying| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a normal (shallow) clone of the context. |
boolean |
contains(java.lang.Object value)
Returns true if the context contains value. |
boolean |
containsKey(java.lang.Object key)
Returns true if the context contains the key. |
java.util.Enumeration |
elements()
Returns the values of the context. |
java.lang.Object |
get(java.lang.Object key)
Returns object stored under given key, null if not found. |
boolean |
isEmpty()
Returns true if the context is empty. |
java.lang.Object |
keyFor(java.lang.Object value)
Returns the first key which has a particular value in the table. |
java.util.Enumeration |
keys()
Returns an enumeration over the keys of the context. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds an object value under given key to context. |
java.lang.Object |
remove(java.lang.Object key)
Removes context entry under given key. |
java.lang.Object |
rename(java.lang.Object key1,
java.lang.Object key2)
Renames an entry in the otable, leaving its position in the table unchanged. |
java.lang.Object |
sfAddAttribute(java.lang.Object name,
java.lang.Object value)
Add an attribute to context. |
java.lang.Object |
sfAttributeFor(java.lang.Object value)
Returns the first attribute which has a particular value in the table. |
java.lang.Object |
sfAttributeKeyFor(java.lang.Object value)
Returns the attribute key for a given value. |
java.util.Iterator |
sfAttributes()
Returns an iterator over the attribute names of the context. |
boolean |
sfContainsAttribute(java.lang.Object attribute)
Returns true if the context contains attribute. |
boolean |
sfContainsValue(java.lang.Object value)
Returns true if the context contains value. |
java.lang.Object |
sfRemoveAttribute(java.lang.Object name)
Remove named attribute from component context. |
java.lang.Object |
sfReplaceAttribute(java.lang.Object name,
java.lang.Object value)
Replace named attribute in context. |
java.lang.Object |
sfResolveAttribute(java.lang.Object name)
Find an attribute in this context. |
java.util.Iterator |
sfValues()
Returns an iterator over the values of the context. |
int |
size()
Returns the number of context entries. |
java.lang.String |
toString()
Return string representation of context. |
| Methods inherited from interface org.smartfrog.sfcore.common.PrettyPrinting |
|---|
writeOn, writeOn |
| Methods inherited from interface org.smartfrog.sfcore.common.Copying |
|---|
copy |
| Method Detail |
|---|
boolean contains(java.lang.Object value)
value - object to check
boolean containsKey(java.lang.Object key)
key - to check
java.util.Enumeration elements()
Enumerationjava.lang.Object get(java.lang.Object key)
key - to look up
boolean isEmpty()
java.util.Enumeration keys()
java.lang.Object put(java.lang.Object key,
java.lang.Object value)
key - key of additionvalue - value of addition
java.lang.Object rename(java.lang.Object key1,
java.lang.Object key2)
key1 - the initial key to be renamedkey2 - the new key name
java.lang.Object remove(java.lang.Object key)
key - context entry to be removed
int size()
java.lang.Object keyFor(java.lang.Object value)
value - value to find in table
java.lang.String toString()
toString in class java.lang.Objectjava.lang.Object clone()
clone in interface Copyingjava.lang.Object sfAttributeFor(java.lang.Object value)
value - value to find in table
boolean sfContainsValue(java.lang.Object value)
value - object to check
boolean sfContainsAttribute(java.lang.Object attribute)
attribute - to check
java.util.Iterator sfAttributes()
java.util.Iterator sfValues()
java.lang.Object sfAddAttribute(java.lang.Object name,
java.lang.Object value)
throws SmartFrogContextException
name - name of attributevalue - object to be added in context
SmartFrogContextException - when name or value are null
java.lang.Object sfRemoveAttribute(java.lang.Object name)
throws SmartFrogContextException
name - name of attribute to be removed
SmartFrogContextException - when name is nulljava.lang.Object sfAttributeKeyFor(java.lang.Object value)
value - value to look up the key for
java.lang.Object sfReplaceAttribute(java.lang.Object name,
java.lang.Object value)
throws SmartFrogContextException
name - of attribute to replacevalue - attribute value to replace or add
SmartFrogContextException - when name or value are null
java.lang.Object sfResolveAttribute(java.lang.Object name)
throws SmartFrogContextException
name - attribute key to resolve
SmartFrogContextException - failed to find attribute
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||