oracle.adf.view.faces.util
Class ComponentUtils

java.lang.Object
  |
  +--oracle.adf.view.faces.util.ComponentUtils

public class ComponentUtils
extends java.lang.Object

Utility functions used by the ADF Faces components.


Method Summary
static boolean resolveBoolean(java.lang.Object value)
          Utility method for component code that transforms Object->boolean.
static boolean resolveBoolean(java.lang.Object value, boolean defaultValue)
          Utility method for component code that transforms Object->boolean.
static char resolveCharacter(java.lang.Character value)
          Utility method for component code that transforms Character->character.
static char resolveCharacter(java.lang.Character value, char defaultValue)
          Utility method for component code that transforms Long->long.
static int resolveInteger(java.lang.Object value)
          Utility method for component code that transforms an Object (which must be a java.lang.Number) into an int.
static int resolveInteger(java.lang.Object value, int defaultValue)
          Utility method for component code that transforms an Object (which must be a java.lang.Number) into an int.
static long resolveLong(java.lang.Object value)
          Utility method for component code that transforms an Object (which must be a java.lang.Number) into a long.
static long resolveLong(java.lang.Object value, long defaultValue)
          Utility method for component code that transforms an Object (which must be a java.lang.Number) into a long.
static java.lang.Object resolveObject(java.lang.Object value, java.lang.Object defaultValue)
          Utility method for component code that resolves an Object, returning a default value if the value is null.
static java.lang.String resolveString(java.lang.Object value)
          Utility method for component code that transforms Object->String.
static java.lang.String resolveString(java.lang.Object value, java.lang.String defaultValue)
          Utility method for component code that transforms Object->String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolveObject

public static java.lang.Object resolveObject(java.lang.Object value,
                                             java.lang.Object defaultValue)
Utility method for component code that resolves an Object, returning a default value if the value is null.


resolveBoolean

public static boolean resolveBoolean(java.lang.Object value,
                                     boolean defaultValue)
Utility method for component code that transforms Object->boolean.


resolveBoolean

public static boolean resolveBoolean(java.lang.Object value)
Utility method for component code that transforms Object->boolean.


resolveInteger

public static int resolveInteger(java.lang.Object value)
Utility method for component code that transforms an Object (which must be a java.lang.Number) into an int.


resolveInteger

public static int resolveInteger(java.lang.Object value,
                                 int defaultValue)
Utility method for component code that transforms an Object (which must be a java.lang.Number) into an int.


resolveLong

public static long resolveLong(java.lang.Object value)
Utility method for component code that transforms an Object (which must be a java.lang.Number) into a long.


resolveLong

public static long resolveLong(java.lang.Object value,
                               long defaultValue)
Utility method for component code that transforms an Object (which must be a java.lang.Number) into a long.


resolveCharacter

public static char resolveCharacter(java.lang.Character value)
Utility method for component code that transforms Character->character.


resolveCharacter

public static char resolveCharacter(java.lang.Character value,
                                    char defaultValue)
Utility method for component code that transforms Long->long.


resolveString

public static java.lang.String resolveString(java.lang.Object value)
Utility method for component code that transforms Object->String.


resolveString

public static java.lang.String resolveString(java.lang.Object value,
                                             java.lang.String defaultValue)
Utility method for component code that transforms Object->String.



Copyright © 2003-2004 Oracle Corporation. All Rights Reserved.