|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.shale.clay.component.chain.AbstractCommand
public abstract class AbstractCommand
The base class for the commands that create the component tree.
Field Summary |
---|
Fields inherited from interface org.apache.commons.chain.Command |
---|
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Constructor Summary | |
---|---|
AbstractCommand()
|
Method Summary | |
---|---|
abstract boolean |
execute(Context context)
This method comes from the Command interfaces. |
protected Catalog |
getCatalog()
Returns the Catalog from the
Globals.CLAY_CATALOG_NAME in the
Globals.CLAY_RESOURCE_NAME configuration file. |
protected static org.apache.shale.util.Messages |
getMessages()
|
static void |
realizeSymbols(ClayContext context)
Evaluates nested symbols. |
static String |
replaceMnemonic(ClayContext context)
This call is used to substitue an attribute binding expression containing the symbols with the target property value in the ClayContext . |
static String |
replaceMnemonic(ClayContext context,
String symbolToken)
This call is used to substitue an attribute binding expression containing the symbols within the sybmolToken . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCommand()
Method Detail |
---|
protected static org.apache.shale.util.Messages getMessages()
protected Catalog getCatalog() throws Exception
Returns the Catalog
from the
Globals.CLAY_CATALOG_NAME
in the
Globals.CLAY_RESOURCE_NAME
configuration file.
Exception
- finding catalogpublic static String replaceMnemonic(ClayContext context)
This call is used to substitue an attribute binding expression containing
the symbols
with the target property value in the ClayContext
.
The current attribute within the context is assumed.
context
- holding the symbols and the target attribute
public static void realizeSymbols(ClayContext context)
Evaluates nested symbols. These are symbols that have references to other
symbols as their values. The nested symbols evaluation is sensitive to dependencies.
The current scoped symbol table is found in the ClayContext
.
context
- holding the symbolspublic static String replaceMnemonic(ClayContext context, String symbolToken)
This call is used to substitue an attribute binding expression containing
the symbols
within the sybmolToken
.
context
- commons chains holding the substitution symbolssymbolToken
- target token having nested symbols
public abstract boolean execute(Context context) throws Exception
This method comes from the Command
interfaces. This method is
invoked while executing the Chain
.
execute
in interface Command
context
- commons chains
true
if the chain is done
Exception
- checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |