|
Oracle® WebCenter Content Java API Reference for Imaging 11g Release 1 (11.1.1) E12853-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.imaging.TypedValue
public class TypedValue
Field Summary | |
---|---|
static int |
FIELD_VALUE_LENGTH |
Constructor Summary | |
---|---|
protected |
TypedValue() Protected default constructor. |
|
TypedValue(FieldType type, java.lang.Object value) Constructor with FieldType and value Object. |
|
TypedValue(java.lang.Object value) Constructor with value Object. |
Method Summary | |
---|---|
int |
compareTo(TypedValue o) Compares this object with the specified object for order. |
static java.lang.Object |
convertToTypedValue(java.lang.String value, FieldType type) Parses the given string based on the FieldType |
boolean |
equals(java.lang.Object object) Indicates whether some other object is "equal to" this one. |
protected java.lang.Comparable |
getComparableValue() Returns the value Object, which is also Comparable. |
java.lang.String |
getStringValue() Returns a string representation of the underlying value object. |
FieldType |
getType() Returns the field type. |
java.lang.Object |
getValue() Returns the value Object, which will be one of: Integer, BigDecimal, Long, or String. |
int |
hashCode() Returns a hash code value for the object. |
void |
setValue(java.lang.Object object) Sets the type, string value (for serialization/persistence), and the transient value object itself. |
java.lang.String |
toString() Returns the toString() result of the underlying value object. |
static FieldType |
typeOfValue(java.lang.Object value) Returns the field type corresponding to value Object's class. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FIELD_VALUE_LENGTH
Constructor Detail |
---|
protected TypedValue()
public TypedValue(java.lang.Object value)
value
-public TypedValue(FieldType type, java.lang.Object value)
Method Detail |
---|
public static FieldType typeOfValue(java.lang.Object value)
value
-public java.lang.String getStringValue()
public FieldType getType()
public java.lang.Object getValue()
protected java.lang.Comparable getComparableValue()
java.lang.IllegalStateException
- If the type has been changed to differ than the value's inherant type. This theoretically can only happen via reflection and/or a bad serialization state.public void setValue(java.lang.Object object)
object
- The new value object.java.lang.IllegalArgumentException
- If the object cannot be used.public static java.lang.Object convertToTypedValue(java.lang.String value, FieldType type)
value
- String to parsetype
- FieldType to convert the stringpublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(TypedValue o)
compareTo
in interface java.lang.Comparable<TypedValue>
o
- the object to be compared.java.lang.ClassCastException
- if the specified object's type prevents it from being compared to this object.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.hashCode()
, Hashtable
public int hashCode()
java.util.Hashtable
.hashCode
in class java.lang.Object
Object.equals(java.lang.Object)
, Hashtable
|
Oracle® WebCenter Content Java API Reference for Imaging 11g Release 1 (11.1.1) E12853-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |