|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.reports.common.value.FormulaValueType
public class FormulaValueType
Provides methods for working with value types in user defined functions.
Field Summary | |
---|---|
static FormulaValueType |
bool
A FormulaValueType that represents a boolean. |
static FormulaValueType |
booleanArray
A FormulaValueType that represents a boolean array. |
static FormulaValueType |
currency
A FormulaValueType that represents currency. |
static FormulaValueType |
currencyArray
A FormulaValueType that represents a currency array. |
static FormulaValueType |
currencyRange
A FormulaValueType that represents a currency range. |
static FormulaValueType |
currencyRangeArray
A FormulaValueType that represents a currency range array. |
static FormulaValueType |
date
A FormulaValueType that represents a date. |
static FormulaValueType |
dateArray
A FormulaValueType that represents a date array. |
static FormulaValueType |
dateRange
A FormulaValueType that represents a date range. |
static FormulaValueType |
dateRangeArray
A FormulaValueType that represents a date range array. |
static FormulaValueType |
dateTime
A FormulaValueType that represents a date-time. |
static FormulaValueType |
dateTimeArray
A FormulaValueType that represents a date-time array. |
static FormulaValueType |
dateTimeRange
A FormulaValueType that represents a date-time range. |
static FormulaValueType |
dateTimeRangeArray
A FormulaValueType that represents a date-time range array. |
static FormulaValueType |
number
A FormulaValueType that represents a number. |
static FormulaValueType |
numberArray
A FormulaValueType that represents a number array. |
static FormulaValueType |
numberRange
A FormulaValueType that represents a number range. |
static FormulaValueType |
numberRangeArray
A FormulaValueType that represents a number range array. |
static FormulaValueType |
string
A FormulaValueType that represents a string. |
static FormulaValueType |
stringArray
A FormulaValueType that represents a string array. |
static FormulaValueType |
stringRange
A FormulaValueType that represents a string range. |
static FormulaValueType |
stringRangeArray
A FormulaValueType that represents a string range array. |
static FormulaValueType |
time
A FormulaValueType that represents a time. |
static FormulaValueType |
timeArray
A FormulaValueType that represents a time array. |
static FormulaValueType |
timeRange
A FormulaValueType that represents a time range. |
static FormulaValueType |
timeRangeArray
A FormulaValueType that represents a time range array. |
static FormulaValueType |
unknown
A FormulaValueType that represents an unknown. |
static FormulaValueType |
unknownArray
A FormulaValueType that represents an unknown array. |
static FormulaValueType |
unknownRange
A FormulaValueType that represents an unknown range. |
static FormulaValueType |
unknownRangeArray
A FormulaValueType that represents an unknown range array. |
Method Summary | |
---|---|
static FormulaValueType |
fromInt(int i)
Internal use only. |
static FormulaValueType |
fromValueType(ValueType valueType)
Internal use only. |
FormulaValueType |
getArrayFormulaValueType()
Returns the array formula value type representation of this FormulaValueType
as a FormulaValueType . |
FormulaValueType |
getBaseFormulaValueType()
Returns the base formula value type of this FormulaValueType as a
FormulaValueType . |
static FormulaValueType |
getMostAppropriateFormulaValueType(ValueType valueType)
Finds the most appropriate FormulaValueType for the given
ValueType . |
FormulaValueType |
getNonArrayFormulaValueType()
Returns the non-array formula value type representation of this FormulaValueType
as a FormulaValueType . |
FormulaValueType |
getNonRangeFormulaValueType()
Returns the non-range formula value type representation of this FormulaValueType
as a FormulaValueType . |
FormulaValueType |
getRangeArrayFormulaValueType()
Returns the range array formula value type representation of this FormulaValueType as a FormulaValueType . |
FormulaValueType |
getRangeFormulaValueType()
Returns the range formula value type representation of this FormulaValueType
as a FormulaValueType . |
boolean |
isArray()
Checks if this FormulaValueType is an array. |
boolean |
isNumeric()
Checks if this FormulaValueType is a numeric value. |
boolean |
isRange()
Checks if this FormulaValueType is a range value. |
boolean |
isRangeArray()
Checks if this FormulaValueType is a range array. |
boolean |
isScalar()
Checks if this FormulaValueType is a scalar value. |
static boolean |
isValidValue(int i)
Checks if the argument passed in is a valid value type. |
boolean |
isValidValueType()
|
java.lang.String |
toString()
|
ValueType |
toValueType()
Internal use only. |
int |
value()
Gets the integer value of this FormulaValueType object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final FormulaValueType number
A FormulaValueType
that represents a number.
public static final FormulaValueType currency
A FormulaValueType
that represents currency.
public static final FormulaValueType bool
A FormulaValueType
that represents a boolean.
public static final FormulaValueType date
A FormulaValueType
that represents a date.
public static final FormulaValueType time
A FormulaValueType
that represents a time.
public static final FormulaValueType dateTime
A FormulaValueType
that represents a date-time.
public static final FormulaValueType string
A FormulaValueType
that represents a string.
public static final FormulaValueType unknown
A FormulaValueType
that represents an unknown.
public static final FormulaValueType numberRange
A FormulaValueType
that represents a number range.
public static final FormulaValueType currencyRange
A FormulaValueType
that represents a currency range.
public static final FormulaValueType dateRange
A FormulaValueType
that represents a date range.
public static final FormulaValueType timeRange
A FormulaValueType
that represents a time range.
public static final FormulaValueType dateTimeRange
A FormulaValueType
that represents a date-time range.
public static final FormulaValueType stringRange
A FormulaValueType
that represents a string range.
public static final FormulaValueType unknownRange
A FormulaValueType
that represents an unknown range.
public static final FormulaValueType numberArray
A FormulaValueType
that represents a number array.
public static final FormulaValueType currencyArray
A FormulaValueType
that represents a currency array.
public static final FormulaValueType booleanArray
A FormulaValueType
that represents a boolean array.
public static final FormulaValueType dateArray
A FormulaValueType
that represents a date array.
public static final FormulaValueType timeArray
A FormulaValueType
that represents a time array.
public static final FormulaValueType dateTimeArray
A FormulaValueType
that represents a date-time array.
public static final FormulaValueType stringArray
A FormulaValueType
that represents a string array.
public static final FormulaValueType unknownArray
A FormulaValueType
that represents an unknown array.
public static final FormulaValueType numberRangeArray
A FormulaValueType
that represents a number range array.
public static final FormulaValueType currencyRangeArray
A FormulaValueType
that represents a currency range array.
public static final FormulaValueType dateRangeArray
A FormulaValueType
that represents a date range array.
public static final FormulaValueType timeRangeArray
A FormulaValueType
that represents a time range array.
public static final FormulaValueType dateTimeRangeArray
A FormulaValueType
that represents a date-time range array.
public static final FormulaValueType stringRangeArray
A FormulaValueType
that represents a string range array.
public static final FormulaValueType unknownRangeArray
A FormulaValueType
that represents an unknown range array.
Method Detail |
---|
public static boolean isValidValue(int i)
Checks if the argument passed in is a valid value type.
i
- an int
that represents a value type
true
if the argument is a valid value type, otherwise
false
public static FormulaValueType fromInt(int i)
Internal use only.
public static FormulaValueType getMostAppropriateFormulaValueType(ValueType valueType)
FormulaValueType
for the given
ValueType
.
valueType
- the given ValueType
FormulaValueType
public static FormulaValueType fromValueType(ValueType valueType)
Internal use only.
public int value()
Gets the integer value of this FormulaValueType
object.
FormulaValueType
public boolean isValidValueType()
public ValueType toValueType()
Internal use only.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isNumeric()
Checks if this FormulaValueType
is a numeric value.
true
if this FormulaValueType
is a numeric value,
otherwise false
public FormulaValueType getBaseFormulaValueType()
Returns the base formula value type of this FormulaValueType
as a
FormulaValueType
.
FormulaValueType
as a
FormulaValueType
public boolean isScalar()
Checks if this FormulaValueType
is a scalar value.
true
if this FormulaValueType
is a scalar value,
otherwise false
public boolean isRange()
Checks if this FormulaValueType
is a range value.
true
if this FormulaValueType
is a range value,
otherwise false
public boolean isArray()
Checks if this FormulaValueType
is an array.
true
if this FormulaValueType
is an array, otherwise
false
public boolean isRangeArray()
Checks if this FormulaValueType
is a range array.
true
if this FormulaValueType
is a range array,
otherwise false
public FormulaValueType getRangeFormulaValueType()
Returns the range formula value type representation of this FormulaValueType
as a FormulaValueType
.
FormulaValueType
as a FormulaValueType
public FormulaValueType getNonRangeFormulaValueType()
Returns the non-range formula value type representation of this FormulaValueType
as a FormulaValueType
.
FormulaValueType
as a FormulaValueType
public FormulaValueType getArrayFormulaValueType()
Returns the array formula value type representation of this FormulaValueType
as a FormulaValueType
.
FormulaValueType
as a FormulaValueType
public FormulaValueType getNonArrayFormulaValueType()
Returns the non-array formula value type representation of this FormulaValueType
as a FormulaValueType
.
FormulaValueType
as a FormulaValueType
public FormulaValueType getRangeArrayFormulaValueType()
Returns the range array formula value type representation of this
FormulaValueType
as a FormulaValueType
.
FormulaValueType
as a FormulaValueType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |