|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.content.Value
public class Value
The value for a Property. The typed value can be null.
| Constructor Summary | |
|---|---|
Value()
Constructs an empty Value. |
|
Value(BinaryValue binaryValue)
Constructs a BinaryValue Value. |
|
Value(Boolean booleanValue)
Constructs a Boolean value. |
|
Value(Calendar calendarValue)
Constructs a Calendar value. |
|
Value(Double doubleValue)
Constructs a Double value. |
|
Value(ID linkedNodeIdValue)
Constructs a Link value, which refers to a node. |
|
Value(Long longValue)
Constructs a Long value. |
|
Value(Property[] nestedValue)
Constructs a nested value. |
|
Value(String stringValue)
Constructs a String value. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones a value. |
int |
compareTo(Object obj)
Compares this PropertyChoices to obj. |
BinaryValue |
getBinaryValue()
The value as a BinaryValue. |
Boolean |
getBooleanValue()
The value as a Boolean. |
Calendar |
getCalendarValue()
The value as a Calendar. |
Double |
getDoubleValue()
The value as a Double. |
ID |
getLinkValue()
The value as a Link node ID. |
Long |
getLongValue()
The value as a Long. |
Property[] |
getNestedValue()
The value as an array of Property objects, a nested type. |
int |
getOrderedPosition()
If multivalued properties, the position dictates the order |
String |
getStringValue()
The value as a String. |
Object |
getValue()
Gets the Value as an Object. |
Object |
getValueByType(int type)
Return the correct value based on the type. |
void |
setOrderedPosition(int position)
|
String |
toString()
Returns the Value as a String, except if the value is Binary, in which case mimeType, name and size is returned. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Value()
public Value(BinaryValue binaryValue)
binaryValue - The binary value.public Value(Boolean booleanValue)
booleanValue - The boolean value.public Value(Calendar calendarValue)
calendarValue - The calendar value.public Value(Double doubleValue)
doubleValue - The double value.public Value(ID linkedNodeIdValue)
linkedNodeIdValue - The linked node id value.public Value(Long longValue)
longValue - The long value.public Value(String stringValue)
stringValue - The string value.public Value(Property[] nestedValue)
nestedValue - The nested value.| Method Detail |
|---|
public BinaryValue getBinaryValue()
public int getOrderedPosition()
public void setOrderedPosition(int position)
public Boolean getBooleanValue()
public Calendar getCalendarValue()
public Double getDoubleValue()
public ID getLinkValue()
public Long getLongValue()
public String getStringValue()
public Property[] getNestedValue()
Property objects, a nested type.
public Object getValueByType(int type)
type - The type.
public Object getValue()
public int compareTo(Object obj)
obj - the Object to be compared.
0 if the Value being compared is equal to the argument
Object; a value less than 0 if the Value being compared is somehow
(this varies depending on the specific type of value) less than the argument Object; and a
value greater than 0 if the Value being compared is somehow greater than the
argument Object (signed comparison).public String toString()
toString in class Object
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - If the clone fails.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||