|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 with a name of
Globals.CLAY_CATALOG_NAME in the
Globals.CLAY_RESOURCE_NAME configuration file. |
protected Catalog |
getCustomizationCatalog()
Returns the Catalog with a name identified by the
constant Globals.CLAY_CUSTOMIZATION_CATALOG_NAME . |
protected static org.apache.shale.util.Messages |
getMessages()
|
protected org.apache.shale.util.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 . |
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 org.apache.shale.util.Tags getTagUtils()
protected 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 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 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
- 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 expression
true
if the value is a binding expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |