Dashboard Builder Data Provider API 6.0.0.Beta1

org.jboss.dashboard.function
Class AbstractFunction

java.lang.Object
  extended by org.jboss.dashboard.function.AbstractFunction
All Implemented Interfaces:
ScalarFunction

public abstract class AbstractFunction
extends Object
implements ScalarFunction

Base class for the implementation of scalar functions.


Field Summary
protected  int precission
           
 
Constructor Summary
AbstractFunction()
           
 
Method Summary
 String getDescription(Locale l)
           
 String getName(Locale l)
           
 boolean isTypeSupported(Class type)
           
 double round(double value, int precission)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.dashboard.function.ScalarFunction
getCode, scalar
 

Field Detail

precission

protected int precission
Constructor Detail

AbstractFunction

public AbstractFunction()
Method Detail

getName

public String getName(Locale l)
Specified by:
getName in interface ScalarFunction

getDescription

public String getDescription(Locale l)
Specified by:
getDescription in interface ScalarFunction

isTypeSupported

public boolean isTypeSupported(Class type)
Specified by:
isTypeSupported in interface ScalarFunction

round

public double round(double value,
                    int precission)

Dashboard Builder Data Provider API 6.0.0.Beta1

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.