public abstract class AbstractCommand extends Object implements org.apache.commons.chain.Command
The base class for the commands that create the component tree.
Constructor and Description |
---|
AbstractCommand() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
execute(org.apache.commons.chain.Context context)
This method comes from the
Command interfaces. |
protected org.apache.commons.chain.Catalog |
getCatalog()
Returns the
Catalog with a name of
Globals.CLAY_CATALOG_NAME in the
Globals.CLAY_RESOURCE_NAME configuration file. |
protected org.apache.commons.chain.Catalog |
getCustomizationCatalog()
Returns the
Catalog with a name identified by the
constant Globals.CLAY_CUSTOMIZATION_CATALOG_NAME . |
protected static Messages |
getMessages() |
protected Tags |
getTagUtils() |
protected boolean |
isValueReference(String value)
Return true if the specified string contains an EL expression.
|
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 . |
protected static Messages getMessages()
protected Tags getTagUtils()
protected org.apache.commons.chain.Catalog getCatalog() throws Exception
Returns the Catalog
with a name of
Globals.CLAY_CATALOG_NAME
in the
Globals.CLAY_RESOURCE_NAME
configuration file.
Exception
- finding catalogprotected org.apache.commons.chain.Catalog getCustomizationCatalog() throws Exception
Returns the Catalog
with a name identified by the
constant Globals.CLAY_CUSTOMIZATION_CATALOG_NAME
.
Exception
- finding customizations 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 attributepublic 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 symbolspublic abstract boolean execute(org.apache.commons.chain.Context context) throws Exception
This method comes from the Command
interfaces. This method is
invoked while executing the Chain
.
execute
in interface org.apache.commons.chain.Command
context
- commons chainstrue
if the chain is doneException
- checkedprotected boolean isValueReference(String value)
Return true if the specified string contains an EL expression.
This is taken almost verbatim from UIComponentTag
in order to remove JSP dependencies from the renderers.
value
- String to be checked for being an expressiontrue
if the value is a binding expressionCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.