public class IlpFormatFunction extends IlpConvertionFunction
String based on the given Format.
The function should be defined as follows:
aString : '@|format(#formatBean, args)'
This definition converts the given value to a String based on the given format.
Arguments:
String according to the
given format.
If the function argument is not valid or cannot be converted, an
IllegalArgumentException exception will be thrown.
Format,
IlpDecimalFormat,
IlpMessageFormat,
IlpSimpleDateFormat,
Serialized FormANY, ANY_PROPERTIES, ANY_PSEUDOCLASSES| Constructor and Description |
|---|
IlpFormatFunction()
Default constructor.
|
IlpFormatFunction(IlpContext context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
call(Object[] args,
Class type,
ilog.views.util.css.IlvCSSModel model,
Object node,
Object target,
Object closure)
Method called to execute the function.
|
String |
getDelimiters()
Returns the delimiters of the function parameters.
|
String |
getName()
Retrieves the name of the function.
|
boolean |
returnDelimitersAsToken()
Returns
true whether the delimiters are returned also as token. |
convertColor, getContextgetDependencies, getImportance, getShortDescriptionpublic IlpFormatFunction()
It has no arguments and gets the default application context.
public IlpFormatFunction(IlpContext context)
context - A context to be used by the function.public String getName()
getName in class IlvCSSFunctionIlvCSSFunctionpublic String getDelimiters()
getDelimiters in class IlvCSSFunctionpublic boolean returnDelimitersAsToken()
true whether the delimiters are returned also as token.returnDelimitersAsToken in class IlvCSSFunctionfalse means the delimiters are discarded.public Object call(Object[] args, Class type, ilog.views.util.css.IlvCSSModel model, Object node, Object target, Object closure)
call in class IlvCSSFunctionargs - List of arguments passed to the function.type - Expected type of the object returned by the function.model - The CSS model being used.node - Current model object being called ontarget - The target object where the returned object will be applied.closure - An object set by
IlvCSSBeans.setFunctionClosure(java.lang.Object)String.IlvCSSFunction© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.