com.github.raphc.maven.plugins.selenese4j.functions
Class AbstractPreDefinedFunction

java.lang.Object
  extended by com.github.raphc.maven.plugins.selenese4j.functions.AbstractPreDefinedFunction
All Implemented Interfaces:
PreDefinedFunction

public abstract class AbstractPreDefinedFunction
extends Object
implements PreDefinedFunction

Author:
Raphael

Field Summary
static Pattern DEFINED_FUNCTION_PATTERN
           
protected  int functionArgsNumber
          The number of arguments expected
protected  String functionName
          The functionname expected
protected  Logger logger
           
 
Constructor Summary
AbstractPreDefinedFunction()
           
 
Method Summary
 String[] getFunctionArgs()
           
 String getFunctionName()
           
 boolean matches(String instruction)
           
 String process(String content)
           
 void setFunctionArgs(String[] functionArgs)
           
 void setFunctionName(String functionName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.github.raphc.maven.plugins.selenese4j.functions.PreDefinedFunction
replaceByValue
 

Field Detail

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

Constructor Detail

AbstractPreDefinedFunction

public AbstractPreDefinedFunction()
Method Detail

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.