|
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.SearchValue
public class SearchValue
SearchValue is an abstract classs to allow the use of multiple value types defined by the concrete subclasses. This class provides default behavior that is overridden by the concrete classes to provide type-specific behavior.
Nested Class Summary | |
---|---|
static class |
SearchValue.Type Enum for the various search value types in the app. |
Field Summary | |
---|---|
protected SearchValue.Type |
searchValueType The Type designated for the instance. |
Constructor Summary | |
---|---|
SearchValue() Default Constructor required for JAXB serialization. |
|
SearchValue(SearchValue.Type type, java.lang.Object value) Set the Type and the value object. |
|
SearchValue(SearchValue value) Constructor with a SearchValue. |
|
SearchValue(TypedValue value) Constructor with a TypedValue. |
Method Summary | |
---|---|
int |
compareTo(SearchValue o) Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object object) Indicates whether some other object is "equal to" this one. |
SearchValue.Type |
getSearchValueType() Returns the search value type. |
java.lang.String |
getStringValue() Returns the typed value's string value. |
java.lang.String |
getTypedString() Returns "TYPE: VALUE", which is what toString() used to do. |
java.lang.Object |
getValue() Returns the underlying typedValue's core object. |
int |
hashCode() Returns a hash code value for the object. |
void |
setValue(java.lang.Object value) Sets the underlying value object. |
java.lang.String |
toString() Now returns the typed value's string value to make picklist usage simpler. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SearchValue.Type searchValueType
Constructor Detail |
---|
public SearchValue()
public SearchValue(SearchValue.Type type, java.lang.Object value)
type
- The new Typevalue
- The value objectjava.lang.IllegalArgumentException
- if the FieldType derived from the value object isn't compatible with the SearchValue.Type.public SearchValue(SearchValue value)
value
-public SearchValue(TypedValue value)
value
-Method Detail |
---|
public SearchValue.Type getSearchValueType()
public void setValue(java.lang.Object value)
value
-public java.lang.Object getValue()
public java.lang.String getStringValue()
getTypedString()
public java.lang.String toString()
toString
in class java.lang.Object
getTypedString()
public java.lang.String getTypedString()
public int compareTo(SearchValue o)
compareTo
in interface java.lang.Comparable<SearchValue>
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 |