Class SimpleCommandLineParser
- java.lang.Object
-
- org.exoplatform.services.command.impl.SimpleCommandLineParser
-
- All Implemented Interfaces:
CommandLineParser
public class SimpleCommandLineParser extends Object implements CommandLineParser
Created by The eXo Platform SAS.- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringparametersPropertyName
-
Constructor Summary
Constructors Constructor Description SimpleCommandLineParser(String parametersPropertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParametersPropertyName()Stringparse(String commandLine, org.apache.commons.chain.Context context)parses command line and puts some parameters (if any) to the Context by some rules
-
-
-
Field Detail
-
parametersPropertyName
protected final String parametersPropertyName
-
-
Constructor Detail
-
SimpleCommandLineParser
public SimpleCommandLineParser(String parametersPropertyName)
-
-
Method Detail
-
parse
public String parse(String commandLine, org.apache.commons.chain.Context context)
Description copied from interface:CommandLineParserparses command line and puts some parameters (if any) to the Context by some rules- Specified by:
parsein interfaceCommandLineParser- Returns:
- command name
-
getParametersPropertyName
public String getParametersPropertyName()
- Returns:
- parameters Property Name
-
-