org.rhq.bundle.filetemplate.recipe
Class ScriptRecipeCommand

java.lang.Object
  extended by org.rhq.bundle.filetemplate.recipe.ScriptRecipeCommand
All Implemented Interfaces:
RecipeCommand

public class ScriptRecipeCommand
extends Object
implements RecipeCommand


Constructor Summary
ScriptRecipeCommand()
           
 
Method Summary
 String getName()
          The name of the recipe command.
 void parse(RecipeParser parser, RecipeContext context, String[] args)
          Parses this recipe command and optionally puts information in the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptRecipeCommand

public ScriptRecipeCommand()
Method Detail

getName

public String getName()
Description copied from interface: RecipeCommand
The name of the recipe command. This must be the first word in the recipe line in order for this command to be triggered.

Specified by:
getName in interface RecipeCommand
Returns:
name of the recipe command

parse

public void parse(RecipeParser parser,
                  RecipeContext context,
                  String[] args)
Description copied from interface: RecipeCommand
Parses this recipe command and optionally puts information in the context.

Specified by:
parse in interface RecipeCommand
context - information where the parser can store information regarding the command that was processed
args - arguments passed to the command.


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.