com.sun.rave.web.ui.util
Class ValueType

java.lang.Object
  extended by com.sun.rave.web.ui.util.ValueType

public class ValueType
extends java.lang.Object

This class provides a typesafe enumeration of value types (see also ValueTypeEvaluator). The ValueTypeEvaluator and the ValueTypes are helper classes for UIComponents which accept value bindings that can be either single objects or a collection of objects (for example, an array). Typically, these components have to process input differently depending on the type of the value object.

See Also:
ValueTypeEvaluator

Field Summary
static ValueType ARRAY
          Indicates that the value binding is an array (of primitives or of objects).
static ValueType INVALID
          Indicates that the value binding is invalid.
static ValueType LIST
          Indicates that the value binding is assigneable to a java.util.List.
static ValueType NONE
          Indicates that no value was specified for the component.
static ValueType OBJECT
          Indicates that the value binding is neither an array, nor does it implement java.util.List.
 
Method Summary
 java.lang.String toString()
          Get a String representation of the action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ARRAY

public static final ValueType ARRAY
Indicates that the value binding is an array (of primitives or of objects).


LIST

public static final ValueType LIST
Indicates that the value binding is assigneable to a java.util.List.


OBJECT

public static final ValueType OBJECT
Indicates that the value binding is neither an array, nor does it implement java.util.List.


INVALID

public static final ValueType INVALID
Indicates that the value binding is invalid. This is a place holder, currently the ValueTypeEvaluator does not return this. It should be used to help page authors identify what the valid types are (e.g. java.util.List works, but java.util.Collection does not).


NONE

public static final ValueType NONE
Indicates that no value was specified for the component.

Method Detail

toString

public java.lang.String toString()
Get a String representation of the action

Overrides:
toString in class java.lang.Object
Returns:
A String representation of the value type.