public class JcrParser extends Object
| Constructor and Description | 
|---|
| JcrParser()Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | depopulateContext(org.apache.commons.chain.Context ctx)Remove  Contextattribute specific to the parsedCommand | 
| org.apache.commons.chain.Command | getCommand() | 
| void | parse(String input)Parse the user's input. | 
| void | populateContext(org.apache.commons.chain.Context ctx)Populate the  Contextwith the attributes needed by theCommand | 
public void parse(String input) throws JcrParserException, ConfigurationException
input - user's inputJcrParserException - if the input is illegalConfigurationException - if the mapped command can't be mapped to a Commons Chain Commandpublic void populateContext(org.apache.commons.chain.Context ctx)
Context with the attributes needed by the
 Commandctx - the Contextpublic void depopulateContext(org.apache.commons.chain.Context ctx)
Context attribute specific to the parsed
 Commandctx - the Contextpublic org.apache.commons.chain.Command getCommand()
CommandCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.