|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jdeveloper.audit.service.ValueHandle
public class ValueHandle
A handle to a named serializable value (e.g., the value of a JavaBeans property). A value handle supplies both a value and an serializable representation of that value, and can be created from either a value or a representation. The representation does not describe the type of a value; the type must be explicitly supplied when the value is needed (see getValue(java.lang.Class>
)).
A representation is one of three things:
Converter; orThe implementations of the equals(java.lang.Object), hashCode(), and compareTo(oracle.jdeveloper.audit.service.ValueHandle) methods use only the name; they ignore both value and representation.
| Constructor Summary | |
|---|---|
ValueHandle(java.lang.String name, java.lang.Object representation, java.lang.Object value)Creates a value handle from a representation and/or a value. |
|
| Method Summary | |
|---|---|
int |
compareTo(ValueHandle that) |
boolean |
equals(java.lang.Object object) |
java.lang.String |
getName()Gets the name of the value. |
java.lang.Object |
getRepresentation()Gets the externalizable representation of the value. |
java.lang.Object |
getValue(java.lang.Class<?> type)Gets the value. |
java.lang.Object |
getValueForProperty(java.lang.Class<?> type)Gets the value. |
int |
hashCode() |
boolean |
isTrue()Gets whether the value is Boolean.TRUE. |
java.lang.String |
toString() |
static boolean |
valueEquals(ValueHandle left, ValueHandle right)Gets whether two handles represent the same value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValueHandle(java.lang.String name,
java.lang.Object representation,
java.lang.Object value)
name - The name of the value.representation - The possibly null representation.value - The possibly null value.| Method Detail |
|---|
public java.lang.String getName()
public java.lang.Object getRepresentation()
java.lang.Exception - if the representation has not been determined and the necessary reflection and/or conversion fails.public boolean isTrue()
public java.lang.Object getValueForProperty(java.lang.Class<?> type)
throws java.lang.Exception
type - the type from which to introspect the type of the value.java.lang.Exception - if reflection and/or conversion fails.
public java.lang.Object getValue(java.lang.Class<?> type)
throws java.lang.Exception
type - the expected type of the value.java.lang.Exception - if reflection and/or conversion fails.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(ValueHandle that)
compareTo in interface java.lang.Comparable<ValueHandle>
public static boolean valueEquals(ValueHandle left,
ValueHandle right)
public java.lang.String toString()
toString in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||