org.apache.myfaces.commons.util
Class TagUtils

java.lang.Object
  extended by org.apache.myfaces.commons.util.TagUtils

public final class TagUtils
extends Object

Utility class for Tag classes

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/taglib/util/TagUtils.java#1 $) $Date: 11-nov-2005.14:59:38 $

Method Summary
static void assertNotNull(Object object)
           
static boolean getBoolean(String value)
          String --> boolean
static Date getDate(String value)
          ISO Date String --> Date
static double getDouble(String value)
          String --> long
static float getFloat(String value)
          String --> long
static int getInteger(String value)
          String --> int
static Locale getLocale(String value)
          String --> Locale
static long getLong(String value)
          String --> long
static String getString(String value)
          Return the same string.
static javax.faces.el.ValueBinding getValueBinding(String valueBindingExpression)
           
static boolean isValueReference(String expression)
          String --> TimeZone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValueBinding

public static javax.faces.el.ValueBinding getValueBinding(String valueBindingExpression)

assertNotNull

public static void assertNotNull(Object object)

getString

public static String getString(String value)
Return the same string. It is there for convenience and makes life easy while auto generating tags.

Parameters:
value -
Returns:

getBoolean

public static boolean getBoolean(String value)
String --> boolean

Parameters:
value -
Returns:

getInteger

public static int getInteger(String value)
String --> int

Parameters:
value -
Returns:

getLong

public static long getLong(String value)
String --> long

Parameters:
value -
Returns:

getDouble

public static double getDouble(String value)
String --> long

Parameters:
value -
Returns:

getFloat

public static float getFloat(String value)
String --> long

Parameters:
value -
Returns:

getDate

public static Date getDate(String value)
ISO Date String --> Date

Parameters:
value -
Returns:

getLocale

public static Locale getLocale(String value)
String --> Locale

Parameters:
value -
Returns:

isValueReference

public static boolean isValueReference(String expression)
String --> TimeZone

Parameters:
value -
Returns:
public static TimeZone getTimeZone( String value) { return DateUtils.getSupportedTimeZone(value); }


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.