|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentDescription
Defines the context interface used by Components. Context implementations need to respect the ordering and copying requirements imposed by Components.
Copying| Method Summary | |
|---|---|
boolean |
getEager()
Gets the eager flag for description. |
Context |
setContext(Context cxt)
Sets the context for this description. |
boolean |
setEager(boolean eager)
Sets eager flag for description. |
ComponentDescription |
setParent(ComponentDescription parent)
Sets parent for this component. |
Prim |
setPrimParent(Prim parent)
When a component description is held as an attribute in a Prim, the parent is no longer a ComponentDescription, but the Prim itself. |
java.lang.Object |
sfAddAttribute(java.lang.Object name,
java.lang.Object value)
Add an attribute to the component description context. |
java.lang.Object |
sfAttributeKeyFor(java.lang.Object value)
Returns the attribute key for a given value. |
java.util.Iterator |
sfAttributes()
Returns an ordered iterator over the attribute names in the context. |
Reference |
sfCompleteName()
Get complete name for this description. |
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. |
Context |
sfContext()
Gets the context for this description. |
LogSF |
sfLog()
To log into sfCore logger. |
ComponentDescription |
sfParent()
Gets the parent for this description. |
Prim |
sfPrimParent()
When a component description is held as an attribute in a Prim, the parent is no longer a ComponentDescription, but the Prim itself. |
java.lang.Object |
sfRemoveAttribute(java.lang.Object name)
Remove named attribute from component description context. |
java.lang.Object |
sfReplaceAttribute(java.lang.Object name,
java.lang.Object value)
Replace named attribute in component description context. |
java.util.Iterator |
sfValues()
Returns an ordered iterator over the values in the context. |
java.lang.String |
toString()
Returns stringified version of description. |
void |
visit(CDVisitor action,
boolean topDown)
Visit every node in the tree using this as the root, applying an action to the nodes. |
void |
visit(CDVisitor action,
boolean topDown,
boolean includeLazy)
Visit every node in the tree using this as the root, applying an action to the nodes. |
void |
visit(CDVisitor action,
boolean topDown,
boolean includeLazy,
java.util.Stack path)
Visit every node in the tree from this node, applying an action to the nodes. |
void |
visit(CDVisitor action,
boolean topDown,
java.util.Stack path)
Visit every node in the tree from this node, applying an action to the nodes. |
void |
writeOn(java.io.Writer w)
Write the component description on a writer. |
| Methods inherited from interface org.smartfrog.sfcore.common.PrettyPrinting |
|---|
writeOn |
| Methods inherited from interface org.smartfrog.sfcore.common.Copying |
|---|
clone, copy |
| Methods inherited from interface org.smartfrog.sfcore.reference.ReferenceResolver |
|---|
sfResolve, sfResolve, sfResolveHere, sfResolveHere, sfResolveParent |
| Methods inherited from interface org.smartfrog.sfcore.reference.ReferenceResolverHelper |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveHere, sfResolveWithParser |
| Method Detail |
|---|
java.lang.Object sfAddAttribute(java.lang.Object name,
java.lang.Object value)
throws SmartFrogRuntimeException
name - name of attributevalue - object to be added in context
SmartFrogRuntimeException - when name or value are null
java.lang.Object sfRemoveAttribute(java.lang.Object name)
throws SmartFrogRuntimeException
name - name of attribute to be removed
SmartFrogRuntimeException - when name is nulljava.lang.Object sfAttributeKeyFor(java.lang.Object value)
value - value to look up the key for
boolean sfContainsValue(java.lang.Object value)
value - object to check
boolean sfContainsAttribute(java.lang.Object attribute)
attribute - to check
java.lang.Object sfReplaceAttribute(java.lang.Object name,
java.lang.Object value)
throws SmartFrogRuntimeException
name - of attribute to replacevalue - attribute value to replace or add
SmartFrogRuntimeException - when name or value are nulljava.util.Iterator sfAttributes()
java.util.Iterator sfValues()
Reference sfCompleteName()
Context sfContext()
setContext(org.smartfrog.sfcore.common.Context)Context setContext(Context cxt)
cxt - new context
sfContext()ComponentDescription sfParent()
setParent(org.smartfrog.sfcore.componentdescription.ComponentDescription)ComponentDescription setParent(ComponentDescription parent)
parent - new parent component
sfParent()Prim sfPrimParent()
setPrimParent(org.smartfrog.sfcore.prim.Prim)Prim setPrimParent(Prim parent)
parent - new parent component
sfPrimParent()boolean getEager()
setEager(boolean)boolean setEager(boolean eager)
eager - new eager flag
getEager()java.lang.String toString()
toString in class java.lang.Object
void writeOn(java.io.Writer w)
throws java.io.IOException
writeOn in interface PrettyPrintingw - writer to write on
java.io.IOException - failure while writing
void visit(CDVisitor action,
boolean topDown)
throws java.lang.Exception
action - the action to applytopDown - true if top-down, false if bottom-up
java.lang.Exception - error during applying an action
void visit(CDVisitor action,
boolean topDown,
boolean includeLazy)
throws java.lang.Exception
action - the action to applytopDown - true if top-down, false if bottom-upincludeLazy - whether to visit into sub-nodes tagged LAZY
java.lang.Exception - error during applying an action
void visit(CDVisitor action,
boolean topDown,
java.util.Stack path)
throws java.lang.Exception
action - the action to applytopDown - true if top-down, false if bottom-uppath - the path of nodes visited before this one, from the root
java.lang.Exception - error during applying an action
void visit(CDVisitor action,
boolean topDown,
boolean includeLazy,
java.util.Stack path)
throws java.lang.Exception
action - the action to applytopDown - true if top-down, false if bottom-upincludeLazy - whether to visit into sub-nodes tagged LAZYpath - the path of nodes visited before this one, from the root
java.lang.Exception - error during applying an actionLogSF sfLog()
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||