|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCrystalValue
com.crystaldecisions.reports.common.value.FormulaValue
com.crystaldecisions.reports.common.value.BooleanValue
public final class BooleanValue
Provides methods for converting native Java types to a format understood by the Crystal Reports Formula Language.
All Java user defined functions must return a FormulaValue
object.
Field Summary | |
---|---|
static BooleanValue |
FALSE
A BooleanValue with a value of false . |
static BooleanValue |
TRUE
A BooleanValue with a value of true . |
Method Summary | |
---|---|
FormulaValue |
coerceToBoolean()
Internal use only. |
FormulaValue |
coerceToCurrency()
Internal use only. |
FormulaValue |
coerceToNumber()
Internal use only. |
int |
compareTo(java.lang.Object obj)
Internal use only. |
int |
compareTo(java.lang.Object obj,
java.util.Comparator stringComparator)
Internal use only. |
boolean |
equals(java.lang.Object obj,
boolean caseInsensitive)
Determines whether the parameter Object is a BooleanValue object with the same class and value
as this object. |
static BooleanValue |
fromBoolean(boolean booleanValue)
Returns the BooleanValue form of the given boolean . |
static boolean |
getAsBoolean(CrystalValue value,
boolean defaultValue)
|
boolean |
getBoolean()
Returns the boolean form of this BooleanValue object. |
int |
getEncodedSize(ValueType type)
|
int |
getEncodedSizeForArchive(ValueType type)
|
static int |
GetMaxEncodedSize()
|
ValueType |
getValueType()
Gets the ValueType of this BooleanValue object. |
int |
hashCode(boolean caseInsensitive)
Returns a hash code for this BooleanValue object. |
static BooleanValue |
Load(java.io.DataInput in)
|
static BooleanValue |
LoadFromArchive(IInputArchive ar)
|
void |
store(ValueType type,
ExtendedDataOutput out)
|
void |
storeToArchive(ValueType type,
IOutputArchive ar)
|
java.lang.String |
toString()
Returns this BooleanValue as a String. |
Methods inherited from class com.crystaldecisions.reports.common.value.FormulaValue |
---|
coerce, coerceToArray, coerceToArray, coerceToBoolean, coerceToCurrency, coerceToDate, coerceToDate, coerceToDateTime, coerceToDateTime, coerceToNumber, coerceToRange, coerceToRange, coerceToRangeArray, coerceToRangeArray, coerceToString, coerceToString, coerceToTime, coerceToTime, getFormulaValueType, Load, LoadFromArchive, makeZeroValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final BooleanValue FALSE
A BooleanValue
with a value of false
.
public static final BooleanValue TRUE
A BooleanValue
with a value of true
.
Method Detail |
---|
public static BooleanValue fromBoolean(boolean booleanValue)
Returns the BooleanValue
form of the given boolean
.
booleanValue
- the boolean to convert
BooleanValue
objectpublic boolean getBoolean()
Returns the boolean
form of this BooleanValue
object.
boolean
form of this BooleanValue
objectpublic void store(ValueType type, ExtendedDataOutput out) throws java.io.IOException
java.io.IOException
public void storeToArchive(ValueType type, IOutputArchive ar) throws ArchiveException
ArchiveException
public static BooleanValue Load(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static BooleanValue LoadFromArchive(IInputArchive ar) throws ArchiveException
ArchiveException
public static int GetMaxEncodedSize()
public int getEncodedSizeForArchive(ValueType type)
public int getEncodedSize(ValueType type)
public ValueType getValueType()
Gets the ValueType
of this BooleanValue
object.
public FormulaValue coerceToNumber()
Internal use only.
coerceToNumber
in class FormulaValue
public FormulaValue coerceToCurrency()
Internal use only.
coerceToCurrency
in class FormulaValue
public FormulaValue coerceToBoolean()
Internal use only.
coerceToBoolean
in class FormulaValue
public int hashCode(boolean caseInsensitive)
Returns a hash code for this BooleanValue
object.
BooleanValue
as an int
public boolean equals(java.lang.Object obj, boolean caseInsensitive)
Determines whether the parameter Object
is a BooleanValue
object with the same class and value
as this object.
obj
- the Object
to compare this BooleanValue
object to
true
if obj
is an instance of BooleanValue
with the same class and value
as this objectpublic int compareTo(java.lang.Object obj, java.util.Comparator stringComparator)
Internal use only.
public int compareTo(java.lang.Object obj)
Internal use only.
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
Returns this BooleanValue
as a String.
public static boolean getAsBoolean(CrystalValue value, boolean defaultValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |