Class JcrParser
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.JcrParser
-
public class JcrParser extends Object
Input Parser
-
-
Constructor Summary
Constructors Constructor Description JcrParser()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddepopulateContext(org.apache.commons.chain.Context ctx)RemoveContextattribute specific to the parsedCommandorg.apache.commons.chain.CommandgetCommand()voidparse(String input)Parse the user's input.voidpopulateContext(org.apache.commons.chain.Context ctx)Populate theContextwith the attributes needed by theCommand
-
-
-
Method Detail
-
parse
public void parse(String input) throws JcrParserException, ConfigurationException
Parse the user's input.- Parameters:
input- user's input- Throws:
JcrParserException- if the input is illegalConfigurationException- if the mapped command can't be mapped to a Commons Chain Command
-
populateContext
public void populateContext(org.apache.commons.chain.Context ctx)
Populate theContextwith the attributes needed by theCommand- Parameters:
ctx- theContext
-
depopulateContext
public void depopulateContext(org.apache.commons.chain.Context ctx)
RemoveContextattribute specific to the parsedCommand- Parameters:
ctx- theContext
-
getCommand
public org.apache.commons.chain.Command getCommand()
- Returns:
- the
Command
-
-