Value Class

com.bea.content
Value Class

public class Value

    extends Object
    implements Serializable

The value for a Property. The typed value can be null.


Hierarchy
Object
  Value
All Implemented Interfaces

Serializable

Constructor Summary

Value()

Constructs an empty Value.
Value(BinaryValue binaryValue)

Constructs a BinaryValue Value.
Value(Boolean booleanValue)

Constructs a Boolean value.
Value(Double doubleValue)

Constructs a Double value.
Value(Long longValue)

Constructs a Long value.
Value(String stringValue)

Constructs a String value.
Value(Calendar calendarValue)

Constructs a Calendar value.
 

Method Summary

public int
compareTo(Object obj)
Compares this PropertyChoices to obj.
public BinaryValue
getBinaryValue()
The value as a BinaryValue.
public Boolean
getBooleanValue()
The value as a Boolean.
public Calendar
getCalendarValue()
The value as a Calendar.
public Double
getDoubleValue()
The value as a Double.
public Long
getLongValue()
The value as a Long.
public String
getStringValue()
The value as a String.
public Object
getValue()
Gets the Value as an Object.
public Object
getValueByType(int type)
Return the correct value based on the type.
public String
toString()
Returns the Value as a String, except if the value is Binary, in which case mimeType, name and size is returned.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
   

Constructor Detail

Value

public Value()
Constructs an empty Value.

Value

public Value(BinaryValue binaryValue)
Constructs a BinaryValue Value.

Value

public Value(Boolean booleanValue)
Constructs a Boolean value.

Value

public Value(Double doubleValue)
Constructs a Double value.

Value

public Value(Long longValue)
Constructs a Long value.

Value

public Value(String stringValue)
Constructs a String value.

Value

public Value(Calendar calendarValue)
Constructs a Calendar value.
 

Method Detail

compareTo(Object) Method

public int compareTo(Object obj)
Compares this PropertyChoices to obj. This performs a native compare on all types, except Calendar is compared based on the time in milliseconds and BinaryValue is compared by name.


getBinaryValue() Method

public BinaryValue getBinaryValue()
The value as a BinaryValue.


getBooleanValue() Method

public Boolean getBooleanValue()
The value as a Boolean.


getCalendarValue() Method

public Calendar getCalendarValue()
The value as a Calendar.


getDoubleValue() Method

public Double getDoubleValue()
The value as a Double.


getLongValue() Method

public Long getLongValue()
The value as a Long.


getStringValue() Method

public String getStringValue()
The value as a String.


getValue() Method

public Object getValue()
Gets the Value as an Object.


getValueByType(int) Method

public Object getValueByType(int type)
Return the correct value based on the type. The user will then cast it to the appropriate object.


toString() Method

public String toString()
Returns the Value as a String, except if the value is Binary, in which case mimeType, name and size is returned.

Overrides
Object.toString()