org.openl.commons.web.jsf.facelets.fn
Class JSFFunctions

java.lang.Object
  extended by org.openl.commons.web.jsf.facelets.fn.JSFFunctions

public class JSFFunctions
extends Object

JSF functions.

Author:
Andrey Naumenko

Constructor Summary
JSFFunctions()
           
 
Method Summary
static String concat(String str1, String str2)
          Concatenates the specified string str2 to the end of this string str1.
static boolean contains(Map<?,?> map, Object key)
          Returns true if this map contains a mapping for the specified key.
static Date currentDate()
           
static String currentHour()
           
static String currentMinute()
           
static String currentYear()
           
static String encodeURL(String url)
           
static String getSystemProp(String name)
           
static boolean isLocalRequest()
           
static boolean isSystemProp(String name)
           
static Set<?> mapEntrySet(Map<?,?> map)
          Get map entry set.
static Number toNumber(String string)
           
static String unescape(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSFFunctions

public JSFFunctions()
Method Detail

concat

public static String concat(String str1,
                            String str2)
Concatenates the specified string str2 to the end of this string str1.

Parameters:
str1 - the first string
str2 - the second string
Returns:
concatenation result

contains

public static boolean contains(Map<?,?> map,
                               Object key)
Returns true if this map contains a mapping for the specified key.

Parameters:
map - Map
key - key value
Returns:
true if this map contains a mapping for the specified key.

currentDate

public static Date currentDate()

currentHour

public static String currentHour()

currentMinute

public static String currentMinute()

currentYear

public static String currentYear()

isLocalRequest

public static boolean isLocalRequest()

mapEntrySet

public static Set<?> mapEntrySet(Map<?,?> map)
Get map entry set.

Parameters:
map - input map
Returns:
entry set

unescape

public static String unescape(String string)

toNumber

public static Number toNumber(String string)

encodeURL

public static String encodeURL(String url)

getSystemProp

public static String getSystemProp(String name)

isSystemProp

public static boolean isSystemProp(String name)


Copyright © 2012. All Rights Reserved.