org.apache.abdera.i18n.templates
Class Operation

java.lang.Object
  extended by org.apache.abdera.i18n.templates.Operation
All Implemented Interfaces:
Serializable

public abstract class Operation
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  boolean multivar
           
protected  String name
           
 
Constructor Summary
protected Operation(String name)
           
protected Operation(String name, boolean multivar)
           
 
Method Summary
protected static String eval(String token, Context context)
           
protected static String eval(String token, String arg, Context context)
           
abstract  String evaluate(String var, String arg, Context context)
           
abstract  void explain(String var, String arg, Appendable buf)
           
static Operation get(String name)
           
 String[] getVariables(String var)
           
protected static boolean isdefined(String token, Context context)
           
 String name()
           
static void register(Operation operation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected final String name

multivar

protected final boolean multivar
Constructor Detail

Operation

protected Operation(String name)

Operation

protected Operation(String name,
                    boolean multivar)
Method Detail

name

public final String name()

evaluate

public abstract String evaluate(String var,
                                String arg,
                                Context context)

explain

public abstract void explain(String var,
                             String arg,
                             Appendable buf)
                      throws IOException
Throws:
IOException

getVariables

public String[] getVariables(String var)

register

public static void register(Operation operation)

get

public static Operation get(String name)

eval

protected static String eval(String token,
                             Context context)

eval

protected static String eval(String token,
                             String arg,
                             Context context)

isdefined

protected static boolean isdefined(String token,
                                   Context context)


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.