org.apache.shale.clay.component.chain
Class PropertyConverterCommand

java.lang.Object
  extended by org.apache.shale.clay.component.chain.AbstractCommand
      extended by org.apache.shale.clay.component.chain.PropertyConverterCommand
All Implemented Interfaces:
Command

public class PropertyConverterCommand
extends AbstractCommand
implements Command

This Command will create an converter value binding and assign it to the UIComponent implementing the ValueHolder interface.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
PropertyConverterCommand()
           
 
Method Summary
 boolean execute(Context context)
           Looks to see if the AttributeBean on the ClayContext is a converter attribute.
 
Methods inherited from class org.apache.shale.clay.component.chain.AbstractCommand
getCatalog, getCustomizationCatalog, getMessages, getTagUtils, isValueReference, realizeSymbols, replaceMnemonic, replaceMnemonic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyConverterCommand

public PropertyConverterCommand()
Method Detail

execute

public boolean execute(Context context)
                throws Exception

Looks to see if the AttributeBean on the ClayContext is a converter attribute. If it is, create a ValueBinding or a Converter and assign it to the component returning a true value. Otherwise, return a false value. This Command is invoked from the AssignPropertiesCommand chain.

Specified by:
execute in interface Command
Specified by:
execute in class AbstractCommand
Parameters:
context - common chains
Returns:
true if the chain is complete
Throws:
Exception - propagated up to the top of the chain


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.