org.apache.jackrabbit.standalone.cli
Class JcrParser

java.lang.Object
  extended by org.apache.jackrabbit.standalone.cli.JcrParser

public class JcrParser
extends Object

Input Parser


Constructor Summary
JcrParser()
          Constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrParser

public JcrParser()
Constructor

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 illegal
ConfigurationException - if the mapped command can't be mapped to a Commons Chain Command

populateContext

public void populateContext(org.apache.commons.chain.Context ctx)
Populate the Context with the attributes needed by the Command

Parameters:
ctx - the Context

depopulateContext

public void depopulateContext(org.apache.commons.chain.Context ctx)
Remove Context attribute specific to the parsed Command

Parameters:
ctx - the Context

getCommand

public org.apache.commons.chain.Command getCommand()
Returns:
the Command


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.