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
Context attribute specific to the parsed
Command |
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
Context with the attributes needed by the
Command |
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
Command
ctx
- the Context
public void depopulateContext(org.apache.commons.chain.Context ctx)
Context
attribute specific to the parsed
Command
ctx
- the Context
public org.apache.commons.chain.Command getCommand()
Command
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.