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 void
depopulateContext(org.apache.commons.chain.Context ctx)
RemoveContext
attribute 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 theContext
with 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 theContext
with the attributes needed by theCommand
- Parameters:
ctx
- theContext
-
depopulateContext
public void depopulateContext(org.apache.commons.chain.Context ctx)
RemoveContext
attribute specific to the parsedCommand
- Parameters:
ctx
- theContext
-
getCommand
public org.apache.commons.chain.Command getCommand()
- Returns:
- the
Command
-
-