com.github.raphc.maven.plugins.selenese4j.functions
Class AbstractPreDefinedFunction
java.lang.Object
com.github.raphc.maven.plugins.selenese4j.functions.AbstractPreDefinedFunction
- All Implemented Interfaces:
- PreDefinedFunction
public abstract class AbstractPreDefinedFunction
- extends Object
- implements PreDefinedFunction
- Author:
- Raphael
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFINED_FUNCTION_PATTERN
public static final Pattern DEFINED_FUNCTION_PATTERN
logger
protected Logger logger
functionName
protected String functionName
- The functionname expected
functionArgsNumber
protected int functionArgsNumber
- The number of arguments expected
AbstractPreDefinedFunction
public AbstractPreDefinedFunction()
matches
public boolean matches(String instruction)
- Specified by:
matches in interface PreDefinedFunction
- Returns:
process
public final String process(String content)
throws NotMatchedException
- Parameters:
content -
- Returns:
-
- Throws:
NotMatchedException
getFunctionName
public String getFunctionName()
- Returns:
- the functionName
setFunctionName
public void setFunctionName(String functionName)
- Parameters:
functionName - the functionName to set
getFunctionArgs
public String[] getFunctionArgs()
- Returns:
- the functionArgs
setFunctionArgs
public void setFunctionArgs(String[] functionArgs)
- Parameters:
functionArgs - the functionArgs to set
Copyright © 2012. All Rights Reserved.