SmartFrog 3.10.000

org.smartfrog.sfcore.languages.sf.functions
Class Format

java.lang.Object
  extended by org.smartfrog.sfcore.languages.sf.functions.BaseFunction
      extended by org.smartfrog.sfcore.languages.sf.functions.Format
All Implemented Interfaces:
Function

public class Format
extends BaseFunction

Defines the Format function that takes a format string and a set of parameters and creates a resultant string which has the values of the parameters embedded. At most 10 format parameters are allowed. The format string is called "format" and the parameter locations are defined using "$i" to indicate the ith parameter. The ith parameter is the attribute "si".


Field Summary
 
Fields inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseFunction
context, name
 
Constructor Summary
Format()
           
 
Method Summary
protected  java.lang.Object doFunction()
          Does the formatting.
 
Methods inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseFunction
doit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Format

public Format()
Method Detail

doFunction

protected java.lang.Object doFunction()
Does the formatting.

Specified by:
doFunction in class BaseFunction
Returns:
the formatted string.

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP