public class BaseViewFormat extends java.lang.Object implements MergeableXML
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
a_currencySymbol |
protected static java.lang.String |
a_currencySymbolUsed |
static java.lang.String |
a_decimalDigit |
protected static java.lang.String |
a_decimalDigitUsed |
static java.lang.String |
a_decimalSeparator |
protected static java.lang.String |
a_decimalSeparatorUsed |
static java.lang.String |
a_ISOC |
static java.lang.String |
a_javaDateFormat |
protected static java.lang.String |
a_javaDateFormatUsed |
static java.lang.String |
a_leadingZero |
protected static java.lang.String |
a_leadingZeroUsed |
static java.lang.String |
a_negCurFmt |
protected static java.lang.String |
a_negCurFmtUsed |
static java.lang.String |
a_negNumFmt |
protected static java.lang.String |
a_negNumFmtUsed |
static java.lang.String |
a_negPctFmt |
protected static java.lang.String |
a_negPctFmtUsed |
static java.lang.String |
a_nfs |
static java.lang.String |
a_nft |
static java.lang.String |
a_numberType |
protected static java.lang.String |
a_numberTypeUsed |
static java.lang.String |
a_oracleDateFormat |
protected static java.lang.String |
a_oracleDateFormatUsed |
static java.lang.String |
a_posCurFmt |
protected static java.lang.String |
a_posCurFmtUsed |
static java.lang.String |
a_posNumFmt |
protected static java.lang.String |
a_posNumFmtUsed |
static java.lang.String |
a_scaleDownBillions |
protected static java.lang.String |
a_scaleDownBillionsUsed |
static java.lang.String |
a_scaleDownMillions |
protected static java.lang.String |
a_scaleDownMillionsUsed |
static java.lang.String |
a_scaleDownQuadrillions |
protected static java.lang.String |
a_scaleDownQuadrillionsUsed |
static java.lang.String |
a_scaleDownThousands |
protected static java.lang.String |
a_scaleDownThousandsUsed |
static java.lang.String |
a_scaleDownTrillions |
protected static java.lang.String |
a_scaleDownTrillionsUsed |
static java.lang.String |
a_scaleFactor |
protected static java.lang.String |
a_scaleFactorUsed |
static java.lang.String |
a_thousandSeparator |
protected static java.lang.String |
a_thousandSeparatorUsed |
static int |
BIBEANS_PATTERN_STR |
protected static java.lang.String |
currencySymbol |
static int |
CURRENCYSYMBOL |
protected static boolean |
currencySymbolUsed |
static int |
DATATYPE_BOOLEAN
Data type:
boolean. |
static int |
DATATYPE_DATE
Data type:
Date. |
static int |
DATATYPE_DOUBLE
Data type:
double. |
static int |
DATATYPE_FLOAT
Data type:
float. |
static int |
DATATYPE_INT
Data type: integer.
|
static int |
DATATYPE_LONG
Data type:
long. |
static int |
DATATYPE_SHORT
Data type:
short. |
static int |
DATATYPE_STRING
Data type:
String. |
static int |
DATATYPE_TIME
Data type:
Time. |
static int |
DATATYPE_TIMESTAMP
Data type:
Timestamp. |
protected static int |
DATE_FORMAT_BIT |
protected static java.lang.String |
dateFormat |
static int |
DATEFORMAT |
protected static boolean |
dateFormatUsed |
protected static boolean |
DEBUG |
protected static java.lang.String |
dec_sep_by_locale |
static char |
DEC_SEP_BY_LOCALE
Decimal separator, based on locale.
|
protected static int |
decimalDigit |
static int |
DECIMALDIGIT |
protected static boolean |
decimalDigitUsed |
protected static char |
decimalSeparator |
static int |
DECIMALSEPARATOR |
protected static boolean |
decimalSeparatorUsed |
static java.lang.String |
DEFAULT_CURRENCY_SYMBOL
Currency symbol default: "$".
|
static boolean |
DEFAULT_LEADING_ZERO
Leading zero default:
true. |
static int |
DEFAULT_NEG_CUR_FMT
Negative currency format default for US English: "($1)".
|
static int |
DEFAULT_NEG_NUM_FMT
Negative number format default for US English: -1.
|
static java.lang.String |
DEFAULT_NULL_STRING
Null string default: " ".
|
static int |
DEFAULT_NUM_TYPE
Number type default: a general number.
|
static int |
DEFAULT_POS_CUR_FMT
Positive currency format default for US English: "$1".
|
static int |
DEFAULT_POS_NUM_FMT
Positive number format default for US English: "1".
|
static java.lang.String |
DEFAULT_SCALE_DOWN_BILLIONS_STRING
Default string for numbers that are scaled to billions: based on locale.
|
static java.lang.String |
DEFAULT_SCALE_DOWN_MILLIONS_STRING
Default string for numbers that are scaled to millions: based on locale.
|
static java.lang.String |
DEFAULT_SCALE_DOWN_QUADRILLIONS_STRING
Default string for numbers that are scaled to quadrillions: based on locale.
|
static java.lang.String |
DEFAULT_SCALE_DOWN_THOUSANDS_STRING
Default string for numbers that are scaled to thousands: based on locale.
|
static java.lang.String |
DEFAULT_SCALE_DOWN_TRILLIONS_STRING
Default string for numbers that are scaled to trillions: based on locale.
|
static int |
DEFAULT_SCALE_FACTOR
Scale factor default: none.
|
static int |
DEFAULT_SCALE_FACTOR_EXPONENT |
protected static boolean |
ISOC |
protected static boolean |
leadingZero |
static int |
LEADINGZERO |
protected static boolean |
leadingZeroUsed |
protected boolean |
m_bUseCallback |
protected java.util.BitSet |
m_formatUsedFlags |
protected static java.lang.String |
m_version_2_4_0_16 |
protected static java.lang.String |
m_version_2_4_0_6 |
protected BaseViewFormatCallback |
m_vfCallback |
static int |
MAX_DATATYPE |
static int |
MAX_NEG_CURFMT |
static int |
MAX_NEG_NUMFMT |
static int |
MAX_NEG_PCTFMT |
static int |
MAX_NUMTYPE |
static int |
MAX_POS_CURFMT |
static int |
MAX_POS_NUMFMT |
static int |
MAX_SCALEFACTOR |
static int |
MIN_DATATYPE |
static int |
MIN_NEG_CURFMT |
static int |
MIN_NEG_NUMFMT |
static int |
MIN_NEG_PCTFMT |
static int |
MIN_NUMTYPE |
static int |
MIN_POS_CURFMT |
static int |
MIN_POS_NUMFMT |
static int |
MIN_SCALEFACTOR |
static int |
NEG_CURFMT_BY_LOCALE
Negative currency format, based on locale.
|
protected static java.lang.String |
neg_curfmt_cur_neg_num |
static int |
NEG_CURFMT_CUR_NEG_NUM
Negative currency format: "$-1".
|
protected static java.lang.String |
neg_curfmt_cur_num_neg |
static int |
NEG_CURFMT_CUR_NUM_NEG
Negative currency format: "$1-".
|
protected static java.lang.String |
neg_curfmt_cur_spac_neg_num |
static int |
NEG_CURFMT_CUR_SPAC_NEG_NUM |
protected static java.lang.String |
neg_curfmt_cur_spac_num_neg |
static int |
NEG_CURFMT_CUR_SPAC_NUM_NEG |
protected static java.lang.String |
neg_curfmt_loc |
protected static java.lang.String |
neg_curfmt_neg_cur_num |
static int |
NEG_CURFMT_NEG_CUR_NUM
Negative currency format: "-$1".
|
protected static java.lang.String |
neg_curfmt_neg_cur_spac_num |
static int |
NEG_CURFMT_NEG_CUR_SPAC_NUM
Negative currency format: "-$ 1".
|
protected static java.lang.String |
neg_curfmt_neg_num_cur |
static int |
NEG_CURFMT_NEG_NUM_CUR
Negative currency format: "(-1$)".
|
protected static java.lang.String |
neg_curfmt_neg_num_spac_cur |
static int |
NEG_CURFMT_NEG_NUM_SPAC_CUR
Negative currency format: "-1 $".
|
protected static java.lang.String |
neg_curfmt_num_cur_neg |
static int |
NEG_CURFMT_NUM_CUR_NEG
Negative currency format: "1$-".
|
protected static java.lang.String |
neg_curfmt_num_neg_cur |
static int |
NEG_CURFMT_NUM_NEG_CUR
Negative currency format: "1-$".
|
protected static java.lang.String |
neg_curfmt_num_spac_cur_neg |
static int |
NEG_CURFMT_NUM_SPAC_CUR_NEG
Negative currency format: "1 $-".
|
protected static java.lang.String |
neg_curfmt_op_cur_num_cp |
static int |
NEG_CURFMT_OP_CUR_NUM_CP
Negative currency format: "($1)".
|
protected static java.lang.String |
neg_curfmt_op_num_cur_cp |
static int |
NEG_CURFMT_OP_NUM_CUR_CP
Negative currency format: "(1$)".
|
static int |
NEG_NUMFMT_BY_LOCALE
Negative number format, based on locale.
|
protected static java.lang.String |
neg_numfmt_loc |
protected static java.lang.String |
neg_numfmt_neg_num |
static int |
NEG_NUMFMT_NEG_NUM
Negative number format: "-1".
|
protected static java.lang.String |
neg_numfmt_num |
static int |
NEG_NUMFMT_NUM
Negative number format: "1".
|
protected static java.lang.String |
neg_numfmt_num_neg |
static int |
NEG_NUMFMT_NUM_NEG
Negative number format: "1-".
|
protected static java.lang.String |
neg_numfmt_op_num_cp |
static int |
NEG_NUMFMT_OP_NUM_CP
Negative number format: "(1)".
|
protected static java.lang.String |
neg_pctfmt_neg_num_pct |
static int |
NEG_PCTFMT_NEG_NUM_PCT |
protected static java.lang.String |
neg_pctfmt_op_num_pct_cp |
static int |
NEG_PCTFMT_OP_NUM_PCT_CP |
protected static int |
negCurFmt |
static int |
NEGCURFMT |
protected static boolean |
negCurFmtUsed |
protected static int |
negNumFmt |
static int |
NEGNUMFMT |
protected static boolean |
negNumFmtUsed |
protected static int |
negPctFmt |
protected static boolean |
negPctFmtUsed |
protected static int |
numberType |
static int |
NUMBERTYPE |
protected static boolean |
numberTypeUsed |
protected static java.lang.String |
numtype_currency |
static int |
NUMTYPE_CURRENCY
Number type: currency.
|
protected static java.lang.String |
numtype_general |
static int |
NUMTYPE_GENERAL
Number type: general.
|
protected static java.lang.String |
numtype_percent |
static int |
NUMTYPE_PERCENT
Multiplies the given number by 100 and then adds % symbol to it.
|
protected static java.lang.String |
numtype_percent_s |
static int |
NUMTYPE_PERCENT_SYMBOL |
static int |
OEO_PATTERN_STR
Format String type: Oracle Express Objects (OEO) Number Format Mask
The number format string represents a traditional OLAP-formatted
String
in the following format: |
static java.lang.String |
off |
static java.lang.String |
on |
protected static java.lang.String |
oracle_neg_cur_const |
static int |
ORACLE_NEG_CUR_CONST |
protected static java.lang.String |
oracle_neg_num_const |
static int |
ORACLE_NEG_NUM_CONST |
static int |
ORACLE_PATTERN_STR
Format String type: Oracle RDBMS Number Format Mask
The number format string represents a standard Oracle RDBMS number format
mask.
|
static int |
ORACLE_POS_CUR_CONST |
protected static java.lang.String |
oracle_pos_num_const |
static int |
ORACLE_POS_NUM_CONST |
static int |
ORACLEDATEFORMAT |
static int |
POS_CURFMT_BY_LOCALE
Positive currency format, based on locale.
|
protected static java.lang.String |
pos_curfmt_cur_num |
static int |
POS_CURFMT_CUR_NUM
Positive currency format: "$1".
|
protected static java.lang.String |
pos_curfmt_cur_num_pos |
static int |
POS_CURFMT_CUR_NUM_POS
Positive currency format: "$1+".
|
protected static java.lang.String |
pos_curfmt_cur_spac_num |
static int |
POS_CURFMT_CUR_SPAC_NUM
Positive currency format: "$ 1".
|
protected static java.lang.String |
pos_curfmt_loc |
protected static java.lang.String |
pos_curfmt_num_cur |
static int |
POS_CURFMT_NUM_CUR
Positive currency format: "1$".
|
protected static java.lang.String |
pos_curfmt_num_cur_pos |
static int |
POS_CURFMT_NUM_CUR_POS
Positive currency format: "1$+".
|
protected static java.lang.String |
pos_curfmt_num_pos_cur |
static int |
POS_CURFMT_NUM_POS_CUR
Positive currency format: "1+$".
|
protected static java.lang.String |
pos_curfmt_num_spac_cur |
static int |
POS_CURFMT_NUM_SPAC_CUR
Positive currency format: "1 $".
|
protected static java.lang.String |
pos_curfmt_num_spac_cur_pos |
static int |
POS_CURFMT_NUM_SPAC_CUR_POS
Positive currency format: "1 $+".
|
protected static java.lang.String |
pos_curfmt_pos_cur_num |
static int |
POS_CURFMT_POS_CUR_NUM
Positive currency format: "+$1".
|
protected static java.lang.String |
pos_curfmt_pos_cur_spac_num |
static int |
POS_CURFMT_POS_CUR_SPAC_NUM
Positive currency format: "+$ 1".
|
protected static java.lang.String |
pos_curfmt_pos_num_cur |
static int |
POS_CURFMT_POS_NUM_CUR
Positive currency format: "+1$".
|
protected static java.lang.String |
pos_curfmt_pos_num_spac_cur |
static int |
POS_CURFMT_POS_NUM_SPAC_CUR
Positive currency format: "+1 $".
|
static int |
POS_NUMFMT_BY_LOCALE
Positive number format, based on locale.
|
protected static java.lang.String |
pos_numfmt_loc |
protected static java.lang.String |
pos_numfmt_num |
static int |
POS_NUMFMT_NUM
Positive number format: "1".
|
protected static java.lang.String |
pos_numfmt_num_pos |
static int |
POS_NUMFMT_NUM_POS
Positive number format: "1+".
|
protected static java.lang.String |
pos_numfmt_pos_num |
static int |
POS_NUMFMT_POS_NUM
Positive number format: "+1".
|
protected static int |
posCurFmt |
static int |
POSCURFMT |
protected static boolean |
posCurFmtUsed |
protected static int |
posNumFmt |
static int |
POSNUMFMT |
protected static boolean |
posNumFmtUsed |
protected static java.lang.String |
scale_down_sym_loc |
static java.lang.String |
SCALE_DOWN_SYMBOL_BY_LOCALE
Scale down symbol, based on locale.
|
protected static java.lang.String |
scaleDownBillions |
static int |
SCALEDOWNBILLIONS |
protected static boolean |
scaleDownBillionsUsed |
protected static java.lang.String |
scaleDownMillions |
static int |
SCALEDOWNMILLIONS |
protected static boolean |
scaleDownMillionsUsed |
protected static java.lang.String |
scaleDownQuadrillions |
static int |
SCALEDOWNQUADRILLIONS |
protected static boolean |
scaleDownQuadrillionsUsed |
protected static java.lang.String |
scaleDownThousands |
static int |
SCALEDOWNTHOUSANDS |
protected static boolean |
scaleDownThousandsUsed |
protected static java.lang.String |
scaleDownTrillions |
static int |
SCALEDOWNTRILLIONS |
protected static boolean |
scaleDownTrillionsUsed |
protected static int |
scaleFactor |
static int |
SCALEFACTOR |
static int |
SCALEFACTOR_BASE_10 |
protected static java.lang.String |
scalefactor_billions |
static int |
SCALEFACTOR_BILLIONS
Scale factor: billions.
|
static int |
SCALEFACTOR_EXPONENT |
protected static java.lang.String |
scalefactor_millions |
static int |
SCALEFACTOR_MILLIONS
Scale factor: millions.
|
protected static java.lang.String |
scalefactor_none |
static int |
SCALEFACTOR_NONE
Scale factor: none.
|
protected static java.lang.String |
scalefactor_quadrillions |
static int |
SCALEFACTOR_QUADRILLIONS
Scale factor: quadrillions.
|
protected static java.lang.String |
scalefactor_thousands |
static int |
SCALEFACTOR_THOUSANDS
Scale factor: thousands.
|
protected static java.lang.String |
scalefactor_trillions |
static int |
SCALEFACTOR_TRILLIONS
Scale factor: trillions.
|
protected static boolean |
scaleFactorUsed |
protected static java.lang.String |
thou_sep_by_locale |
static char |
THOU_SEP_BY_LOCALE
Thousands separator, based on locale.
|
protected static char |
thousandSeparator |
static int |
THOUSANDSEPARATOR |
protected static boolean |
thousandSeparatorUsed |
static int |
UNKNOWN_PATTERN_STR
Format String type: Unknown Number Format Mask.
|
static java.lang.String |
VIEW_FORMAT_NAME |
protected static int |
VIEWFORMAT_END |
| Constructor and Description |
|---|
BaseViewFormat()
Constructor that uses default
ViewFormat values. |
BaseViewFormat(int numberType,
char thousandSeparator,
char decimalSeparator,
java.lang.String currencySymbol,
boolean leadingZero,
int decimalDigit,
int posNumFmt,
int negNumFmt,
int posCurFmt,
int negCurFmt,
int scaleFactor,
java.lang.String scaleDownThousands,
java.lang.String scaleDownMillions,
java.lang.String scaleDownBillions,
java.lang.String scaleDownTrillions,
java.lang.String scaleDownQuadrillions,
java.lang.String dateFormat)
Constructor that sets individual
ViewFormat properties. |
BaseViewFormat(java.lang.String strNumberFormatString,
int nNumberFormatType)
Constructor that specifies how a number should be formatted, based on the
specified format mask and type.
|
| Modifier and Type | Method and Description |
|---|---|
protected ErrorHandler |
_getErrorHandler() |
java.lang.String |
booleanToLocString(java.lang.Boolean bValue) |
java.lang.String |
BooleanToString(boolean bValue)
Generates a
String representation of a Boolean
value. |
void |
clearUsedBits()
Sets all of the "used"
ViewFormat properties to false. |
java.lang.Object |
clone()
Clones this
ViewFormat object. |
static int |
convertNegCurFmtToInt(java.lang.String value) |
static int |
convertNegNumFmtToInt(java.lang.String value) |
static int |
convertNonAutoScalingToScaleFactor(java.lang.String scaling) |
static int |
convertNumberTypeToInt(java.lang.String value) |
static int |
convertPosCurFmtToInt(java.lang.String value) |
static int |
convertPosNumFmtToInt(java.lang.String value) |
static int |
convertScaleFactorToInt(java.lang.String value) |
java.lang.String |
convertScaleFactorToScaling(boolean isScaleFactorUsed,
int scaleFactor) |
int |
convertScalingToScaleFactor(java.lang.String scaling) |
java.lang.String |
DateToString(java.sql.Date dateValue)
Generates a
String representation of a java.sql.Date
value. |
java.lang.String |
DoubleToString(double dValue)
Generates a
String representation of a double
value. |
boolean |
equals(java.lang.Object o)
Indicates whether the specified object is equivalent to this
ViewFormat object. |
java.lang.String |
FloatToString(float fValue)
Generates a
String representation of a float
value. |
java.lang.String |
getCurrencySymbol()
Retrieves the character or
String that indicates a currency value. |
int |
getDecimalDigit()
Retrieves the number of digits that appear to the right of the decimal in
a number.
|
char |
getDecimalSeparator()
Retrieves the character or
String that separates the integer
and decimal parts of numbers. |
char |
getDecimalSeparatorSymbol() |
protected java.lang.Object |
getExternalDefault(java.lang.String attributeName) |
java.lang.String |
getJavaDateFormat()
Retrieves the Java date format for this
ViewFormat. |
java.util.Locale |
getLocale() |
int |
getNegCurFmt()
Retrieves the character or
String that indicates a negative
currency value. |
int |
getNegCurFmtValue() |
int |
getNegNumFmt()
Retrieves the character or
String that indicates a negative
number value. |
int |
getNegNumFmtValue() |
int |
getNegPctFmt() |
NumberConverter |
getNumberConverter() |
java.text.NumberFormat |
getNumberFormat()
This method is for internal use only and should only be called by
GraphExportXMLWriter.
|
java.lang.String |
getNumberFormatString() |
java.lang.String |
getNumberFormatString(int nNumberFormatType) |
int |
getNumberFormatType() |
int |
getNumberType()
Retrieves the type of the number, such as general, currency, or percent.
|
java.lang.String |
getOracleDateFormat()
Retrieves the Oracle date format for this
ViewFormat
such as MM/DD/YYYY or DD/MM/YYYY. |
int |
getPosCurFmt()
Retrieves the character or
String that indicates a positive
currency value. |
int |
getPosCurFmtValue() |
int |
getPosNumFmt()
Retrieves the character or
String that indicates a positive
number value. |
int |
getPosNumFmtValue() |
java.lang.String |
getScaleDownBillions()
Retrieves the character or
String that represents the
abbreviation for billions. |
java.lang.String |
getScaleDownBillionsSymbol() |
java.lang.String |
getScaleDownMillions()
Retrieves the character or
String that represents the
abbreviation for millions. |
java.lang.String |
getScaleDownMillionsSymbol() |
java.lang.String |
getScaleDownQuadrillions()
Retrieves the character or
String that represents the
abbreviation for quadrillions. |
java.lang.String |
getScaleDownQuadrillionsSymbol() |
java.lang.String |
getScaleDownThousands()
Retrieves the character or
String that represents the
abbreviation for thousands. |
java.lang.String |
getScaleDownThousandsSymbol() |
java.lang.String |
getScaleDownTrillions()
Retrieves the character or
String that represents the
abbreviation for trillions. |
java.lang.String |
getScaleDownTrillionsSymbol() |
int |
getScaleFactor()
Retrieves the amount that a number is abbreviated.
|
int |
getScaleFactorExponent() |
char |
getThousandSeparator()
Retrieves the character or
String that separates thousands
in number values. |
char |
getThousandSeparatorSymbol() |
boolean |
getThousandSeparatorUsed() |
java.util.TimeZone |
getTimeZone() |
oracle.dss.util.xml.ObjectNode |
getXML(boolean allProperties) |
oracle.dss.util.xml.ObjectNode |
getXML(boolean allProperties,
boolean emptyElement)
Retrieves XML that represents properties and their values in the form
of and
ObjectNode. |
void |
init()
Clears all properties from the ViewFormat.
|
void |
init(int numberType,
char thousandSeparator,
char decimalSeparator,
java.lang.String currencySymbol,
boolean leadingZero,
int decimalDigit,
int posNumFmt,
int negNumFmt,
int posCurFmt,
int negCurFmt,
int scaleFactor,
java.lang.String scaleDownThousands,
java.lang.String scaleDownMillions,
java.lang.String scaleDownBillions,
java.lang.String scaleDownTrillions,
java.lang.String scaleDownQuadrillions,
java.lang.String dateFormat)
Sets individual
ViewFormat properties. |
void |
initWithString(java.lang.String strNumberFormatString,
int nNumberFormatType)
Initializes this
BaseViewFormat from a format String. |
java.lang.String |
IntToString(int iValue)
Formats an integer value as a
String. |
boolean |
isAnythingOverridden()
Indicates whether any of the property of this
ViewFormat has
been explicitly set. |
boolean |
isCurrencySymbolUsed()
Indicates whether the
CurrencySymbol property has been
explicitly set. |
boolean |
isDecimalDigitUsed()
Indicates whether the
DecimalDigit property has been
explicitly set. |
boolean |
isDecimalSeparatorUsed()
Indicates whether the
DecimalSeparator property has been
explicitly set. |
boolean |
isISOCurrency() |
boolean |
isISOCurrencyUsed() |
boolean |
isJavaDateFormatUsed()
Indicates whether the
JavaDateFormat property has been
explicitly set. |
boolean |
isLeadingZero()
Indicates whether numbers that fall between 1.0 and -1.0 are displayed
with leading zeros.
|
boolean |
isLeadingZeroUsed()
Indicates whether the
LeadingZero property has been
explicitly set. |
boolean |
isNegativeAngleBracketsUsed() |
boolean |
isNegCurFmtUsed()
Indicates whether the
NegCurFmt property has been
explicitly set. |
boolean |
isNegNumFmtUsed()
Indicates whether the
NegNumFmt property has been explicitly
set. |
boolean |
isNegPctFmtUsed() |
boolean |
isNumberFormatStringUsed() |
boolean |
isNumberTypeUsed()
Indicates whether the
NumberType property has been
explicitly set. |
boolean |
isOracleDateFormatUsed()
Indicates whether the
OracleDateFormat property has been
explicitly set. |
boolean |
isPercentUsed()
Deprecated.
As of 3.2.0.22, replaced by
#getNumberType(int) |
boolean |
isPosCurFmtUsed()
Indicates whether the
PosCurFmt property has been explicitly
set. |
boolean |
isPosNumFmtUsed()
Indicates whether the
PosNumFmt property has been explicitly
set. |
boolean |
isScaleDownBillionsUsed()
Indicates whether the
ScaleDownBillions property has been
explicitly set. |
boolean |
isScaleDownMillionsUsed()
Indicates whether the
ScaleDownMillions property has been
explicitly set. |
boolean |
isScaleDownQuadrillionsUsed()
Indicates whether the
ScaleDownQuadrillions property has
been explicitly set. |
boolean |
isScaleDownThousandsUsed()
Indicates whether the
ScaleDownThousands property has been
explicitly set. |
boolean |
isScaleDownTrillionsUsed()
Indicates whether the
ScaleDownTrillions property has been
explicitly set. |
boolean |
isScaleFactorExponentUsed() |
boolean |
isScaleFactorUsed()
Indicates whether the
ScaleFactor property has been
explicitly set. |
boolean |
isThousandSeparatorUsed()
Indicates whether the
ThousandSeparator property has been
explicitly set. |
java.lang.Boolean |
locStringToBoolean(java.lang.String sValue) |
java.lang.String |
LongToString(long lValue)
Generates a
String representation of a long
value. |
void |
merge(Mergeable from)
Merges the specified
ViewFormat object with this object. |
java.lang.String |
ObjectToString(java.lang.Object objValue)
Generates a
String representation of an object. |
void |
setCurrencySymbol(java.lang.String sCurrencySymbol)
Specifies the character or
String that indicates a currency value. |
void |
setCurrencySymbolUsed(boolean bValue)
Specifies whether the
CurrencySymbol property has been
explicitly set. |
void |
setDecimalDigit(int iDecimalDigit)
Specifies the number of digits that appear to the right of the decimal in
a number.
|
void |
setDecimalDigitUsed(boolean bValue)
Specifies whether the
DecimalDigit property has been
explicitly set. |
void |
setDecimalSeparator(char cDecimalSeparator)
Specifies the character or
String that separates the integer
and decimal parts of numbers. |
void |
setDecimalSeparatorUsed(boolean bValue)
Specifies whether the
DecimalSeparator property has been
explicitly set. |
void |
setDefaultCurrencySymbol(java.lang.String currSym) |
void |
setDefaultDecimalSeparator(char decSep) |
void |
setDefaultThousandSeparator(char thouSep) |
void |
setErrorHandler(ErrorHandler eh)
Specifies the error handler for this
BaseViewFormat. |
void |
setISOCurrency(boolean bISOCurr) |
void |
setISOCurrencyUsed(boolean bISOCurrUsed) |
void |
setJavaDateFormat(java.lang.String sDateFormat)
Specifies the way in which the date is displayed, such as MM/dd/yyyy, or
dd/MM/yyyy.
|
void |
setJavaDateFormatUsed(boolean bValue)
Specifies whether the
JavaDateFormat property has been
explicitly set. |
void |
setLeadingZero(boolean bLeadingZero)
Specifies whether numbers that fall between 1.0 and -1.0 are displayed
with leading zeros.
|
void |
setLeadingZeroUsed(boolean bValue)
Specifies whether the
LeadingZero property has been
explicitly set. |
void |
setLocale(java.util.Locale loc) |
protected void |
setLocale(java.util.Locale loc,
boolean setAlways) |
void |
setNegativeAngleBracketsUsed(boolean bNegativeAngleBracketsUsed) |
void |
setNegCurFmt(int iNegCurFmt)
Specifies the character or
String that indicates a negative
currency value. |
void |
setNegCurFmtUsed(boolean bValue)
Specifies whether the
NegCurFmt property has been explicitly
set. |
void |
setNegNumFmt(int iNegNumFmt)
Specifies the character or
String that indicates a negative
number value. |
void |
setNegNumFmtUsed(boolean bValue)
Specifies whether the
NegNumFmt property has been explicitly
set. |
void |
setNegPctFmt(int format) |
void |
setNegPctFmtUsed(boolean bUsed) |
void |
setNumberConverter(NumberConverter converter) |
void |
setNumberFormatString(java.lang.String strNumberFormatString) |
void |
setNumberFormatStringUsed(boolean used) |
int |
setNumberFormatType(int nNumberFormatType) |
void |
setNumberType(int iNumberType)
Specifies the type of the number, such as general, currency, or percent.
|
void |
setNumberTypeUsed(boolean bValue)
Specifies whether the
NumberType property has been
explicitly set. |
void |
setOracleDateFormat(java.lang.String sDateFormat)
Specifies the way in which the oracle date is displayed, such as
MM/DD/YYYY, or DD/MM/YYYY.
|
void |
setOracleDateFormatUsed(boolean bValue)
Specifies whether the
OracleDateFormat property has been
explicitly set. |
void |
setPercentUsed(boolean bPercentUsed)
Deprecated.
As of 3.2.0.22, replaced by
setNumberType(int) |
void |
setPosCurFmt(int iPosCurFmt)
Specifies the character or
String that indicates a positive
currency value. |
void |
setPosCurFmtUsed(boolean bValue)
Specifies whether the
PosCurFmt property has been explicitly
set. |
void |
setPosNumFmt(int iPosNumFmt)
Specifies the character or
String that indicates a positive
number value. |
void |
setPosNumFmtUsed(boolean bValue)
Specifies whether the
PosNumFmt property has been explicitly
set. |
void |
setScaleDownBillions(java.lang.String sValue)
Specifies the character or
String that represents the
abbreviation for billions. |
void |
setScaleDownBillionsUsed(boolean bValue)
Specifies whether the
ScaleDownBillions property has been
explicitly set. |
void |
setScaleDownMillions(java.lang.String sValue)
Specifies the character or
String that represents the
abbreviation for million. |
void |
setScaleDownMillionsUsed(boolean bValue)
Specifies whether the
ScaleDownMillions property has been
explicitly set. |
void |
setScaleDownQuadrillions(java.lang.String sValue)
Specifies the character or
String that represents the
abbreviation for quadrillions. |
void |
setScaleDownQuadrillionsUsed(boolean bValue)
Specifies whether the
ScaleDownQuadrillions property has
been explicitly set. |
void |
setScaleDownThousands(java.lang.String sValue)
Specifies the character or
String that represents the
abbreviation for thousands. |
void |
setScaleDownThousandsUsed(boolean bValue)
Specifies whether the
ScaleDownThousands property has been
explicitly set. |
void |
setScaleDownTrillions(java.lang.String sValue)
Specifies the character or
String that represents the
abbreviation for trillions. |
void |
setScaleDownTrillionsUsed(boolean bValue)
Specifies whether the
ScaleDownTrillions property has been
explicitly set. |
void |
setScaleFactor(int iScaleFactor)
Specifies how much to abbreviate a number.
|
void |
setScaleFactorExponent(int nScaleFactorExponent) |
void |
setScaleFactorUsed(boolean bValue)
Specifies whether the
ScaleFactor property has been
explicitly set. |
void |
setThousandSeparator(char cThousandSeparator)
Specifies the character or
String that separates thousands
in number values. |
void |
setThousandSeparatorUsed(boolean bValue)
Specifies whether the
ThousandSeparator property has been
explicitly set. |
void |
setTimeZone(java.util.TimeZone tz) |
void |
setViewFormatCallback(BaseViewFormatCallback vfc) |
boolean |
setXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset)
Specifies XML that represents properties and values.
|
boolean |
setXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset,
java.util.HashMap map) |
java.lang.String |
ShortToString(short sValue)
Generates a
String representation of a short
value. |
java.lang.Boolean |
StringToBoolean(java.lang.String sValue)
Converts a
String into a Boolean object. |
java.sql.Date |
StringToDate(java.lang.String sValue)
Converts a
String into a java.sql.Date object. |
java.sql.Date |
StringToDate(java.lang.String sValue,
boolean dynamic) |
double |
StringToDouble(java.lang.String sValue)
Converts a
String into a double value. |
float |
StringToFloat(java.lang.String sValue)
Converts a
String into a float value. |
int |
StringToInt(java.lang.String sValue)
Converts a
String into an integer. |
long |
StringToLong(java.lang.String sValue)
Converts a
String into a long value. |
java.lang.Object |
StringToObject(java.lang.String sValue,
int iDataType)
Converts a
String into an object. |
short |
StringToShort(java.lang.String sValue)
Converts a
String into a short value. |
java.lang.String |
StringToString(java.lang.String sValue)
Converts a
String into a String object, through
the Date class. |
java.sql.Time |
StringToTime(java.lang.String sValue)
Converts a
String into a Time object. |
java.sql.Timestamp |
StringToTimestamp(java.lang.String sValue)
Converts a
String into a Timestamp object. |
java.util.Date |
StringToUtilDate(java.lang.String sValue)
Converts a
String into a Date object. |
java.lang.String |
TimestampToString(java.sql.Timestamp timeValue)
Generates a
String representation of a Timestamp
value. |
java.lang.String |
TimeToString(java.sql.Time timeValue)
Generates a
String representation of a Time
value. |
java.lang.String |
toString()
Generates a
String representation of this
ViewFormat. |
void |
updateDefaultCurrencySymbol() |
void |
updateDefaultSymbols() |
java.lang.String |
UtilDateToString(java.util.Date dateValue)
Generates a
String representation of a Date
value. |
boolean |
validateFormatString(java.lang.String strNumberFormatString,
int nNumberFormatType)
Validates a format
String before setting its values on this
BaseViewFormat. |
@Concealed protected static final boolean DEBUG
public static final int DEFAULT_NUM_TYPE
public static final java.lang.String DEFAULT_CURRENCY_SYMBOL
public static final boolean DEFAULT_LEADING_ZERO
true.public static final int DEFAULT_POS_NUM_FMT
BaseViewFormat
is based on locale.public static final int DEFAULT_NEG_NUM_FMT
BaseViewFormat
is based on locale.public static final int DEFAULT_POS_CUR_FMT
BaseViewFormat
is based on locale.public static final int DEFAULT_NEG_CUR_FMT
BaseViewFormat
is based on locale.public static final int DEFAULT_SCALE_FACTOR
@Concealed public static final int DEFAULT_SCALE_FACTOR_EXPONENT
public static final java.lang.String DEFAULT_SCALE_DOWN_THOUSANDS_STRING
public static final java.lang.String DEFAULT_SCALE_DOWN_MILLIONS_STRING
public static final java.lang.String DEFAULT_SCALE_DOWN_BILLIONS_STRING
public static final java.lang.String DEFAULT_SCALE_DOWN_TRILLIONS_STRING
public static final java.lang.String DEFAULT_SCALE_DOWN_QUADRILLIONS_STRING
public static final java.lang.String SCALE_DOWN_SYMBOL_BY_LOCALE
public static final char THOU_SEP_BY_LOCALE
public static final char DEC_SEP_BY_LOCALE
public static final java.lang.String DEFAULT_NULL_STRING
@Concealed public static final int MIN_DATATYPE
public static final int DATATYPE_BOOLEAN
boolean.public static final int DATATYPE_SHORT
short.public static final int DATATYPE_INT
public static final int DATATYPE_LONG
long.public static final int DATATYPE_DOUBLE
double.public static final int DATATYPE_FLOAT
float.public static final int DATATYPE_STRING
String.public static final int DATATYPE_DATE
Date.public static final int DATATYPE_TIME
Time.public static final int DATATYPE_TIMESTAMP
Timestamp.@Concealed public static final int MAX_DATATYPE
@Concealed public static final int MIN_NUMTYPE
public static final int NUMTYPE_GENERAL
public static final int NUMTYPE_CURRENCY
public static final int NUMTYPE_PERCENT
@Concealed public static final int NUMTYPE_PERCENT_SYMBOL
@Concealed public static final int MAX_NUMTYPE
@Concealed public static final int MIN_POS_NUMFMT
public static final int POS_NUMFMT_NUM
public static final int POS_NUMFMT_POS_NUM
public static final int POS_NUMFMT_NUM_POS
@Concealed public static final int ORACLE_POS_NUM_CONST
public static final int POS_NUMFMT_BY_LOCALE
@Concealed public static final int MAX_POS_NUMFMT
@Concealed public static final int MIN_NEG_NUMFMT
public static final int NEG_NUMFMT_OP_NUM_CP
public static final int NEG_NUMFMT_NEG_NUM
public static final int NEG_NUMFMT_NUM_NEG
public static final int NEG_NUMFMT_NUM
@Concealed public static final int ORACLE_NEG_NUM_CONST
public static final int NEG_NUMFMT_BY_LOCALE
@Concealed public static final int MAX_NEG_NUMFMT
@Concealed public static final int MIN_POS_CURFMT
public static final int POS_CURFMT_CUR_NUM
public static final int POS_CURFMT_NUM_CUR
public static final int POS_CURFMT_CUR_SPAC_NUM
public static final int POS_CURFMT_NUM_SPAC_CUR
public static final int POS_CURFMT_POS_CUR_NUM
public static final int POS_CURFMT_CUR_NUM_POS
public static final int POS_CURFMT_POS_NUM_CUR
public static final int POS_CURFMT_NUM_POS_CUR
public static final int POS_CURFMT_NUM_CUR_POS
public static final int POS_CURFMT_POS_NUM_SPAC_CUR
public static final int POS_CURFMT_POS_CUR_SPAC_NUM
public static final int POS_CURFMT_NUM_SPAC_CUR_POS
@Concealed public static final int ORACLE_POS_CUR_CONST
public static final int POS_CURFMT_BY_LOCALE
@Concealed public static final int MAX_POS_CURFMT
@Concealed public static final int MIN_NEG_CURFMT
public static final int NEG_CURFMT_OP_CUR_NUM_CP
public static final int NEG_CURFMT_NEG_CUR_NUM
public static final int NEG_CURFMT_CUR_NEG_NUM
public static final int NEG_CURFMT_CUR_NUM_NEG
public static final int NEG_CURFMT_OP_NUM_CUR_CP
public static final int NEG_CURFMT_NEG_NUM_CUR
public static final int NEG_CURFMT_NUM_NEG_CUR
public static final int NEG_CURFMT_NUM_CUR_NEG
public static final int NEG_CURFMT_NEG_NUM_SPAC_CUR
public static final int NEG_CURFMT_NEG_CUR_SPAC_NUM
public static final int NEG_CURFMT_NUM_SPAC_CUR_NEG
@Concealed public static final int ORACLE_NEG_CUR_CONST
@Concealed public static final int NEG_CURFMT_CUR_SPAC_NUM_NEG
@Concealed public static final int NEG_CURFMT_CUR_SPAC_NEG_NUM
public static final int NEG_CURFMT_BY_LOCALE
@Concealed public static final int MAX_NEG_CURFMT
@Concealed public static final int MIN_NEG_PCTFMT
@Concealed public static final int NEG_PCTFMT_NEG_NUM_PCT
@Concealed public static final int NEG_PCTFMT_OP_NUM_PCT_CP
@Concealed public static final int MAX_NEG_PCTFMT
@Concealed public static final int MIN_SCALEFACTOR
public static final int SCALEFACTOR_NONE
public static final int SCALEFACTOR_THOUSANDS
public static final int SCALEFACTOR_MILLIONS
public static final int SCALEFACTOR_BILLIONS
public static final int SCALEFACTOR_TRILLIONS
public static final int SCALEFACTOR_QUADRILLIONS
@Concealed public static final int SCALEFACTOR_BASE_10
@Concealed public static final int MAX_SCALEFACTOR
public static final int UNKNOWN_PATTERN_STR
public static final int OEO_PATTERN_STR
String
in the following format:
number format;positive format; negative format; scale; chars-to-use
The first three clauses must appear in the order that is specified.
The last two clauses do not need to appear and can appear in any order
after the first three clauses.
For example, the following String:
0; $1; -1; /3; $=$; .=.; ,=,"Would format the number $7,000,000.00 as $7,000M.
public static final int ORACLE_PATTERN_STR
For more information, see the "Oracle9i SQL Reference Release 1 (9.0.1) Part Number A90125-01"
at http://download-west.oracle.com/otndoc/oracle9i/901_doc/server.901/a90125/sql_elements4.htm.
@Concealed public static final int BIBEANS_PATTERN_STR
OEO_PATTERN_STR,
ORACLE_PATTERN_STR,
BaseViewFormat(String, int),
Constant Field Values@Concealed public static final java.lang.String VIEW_FORMAT_NAME
@Concealed public static final int CURRENCYSYMBOL
@Concealed public static final int DATEFORMAT
@Concealed public static final int DECIMALDIGIT
@Concealed public static final int DECIMALSEPARATOR
@Concealed public static final int LEADINGZERO
@Concealed public static final int NEGCURFMT
@Concealed public static final int NEGNUMFMT
@Concealed public static final int NUMBERTYPE
@Concealed public static final int POSCURFMT
@Concealed public static final int POSNUMFMT
@Concealed public static final int SCALEDOWNBILLIONS
@Concealed public static final int SCALEDOWNMILLIONS
@Concealed public static final int SCALEDOWNQUADRILLIONS
@Concealed public static final int SCALEDOWNTHOUSANDS
@Concealed public static final int SCALEDOWNTRILLIONS
@Concealed public static final int SCALEFACTOR
@Concealed public static final int THOUSANDSEPARATOR
@Concealed public static final int ORACLEDATEFORMAT
@Concealed public static final int SCALEFACTOR_EXPONENT
@Concealed protected static final int VIEWFORMAT_END
@Concealed protected static final java.lang.String numtype_general
@Concealed protected static final java.lang.String numtype_currency
@Concealed protected static final java.lang.String numtype_percent
@Concealed protected static final java.lang.String numtype_percent_s
@Concealed protected static final int DATE_FORMAT_BIT
@Concealed protected static final java.lang.String m_version_2_4_0_6
@Concealed protected static final java.lang.String m_version_2_4_0_16
@Concealed protected BaseViewFormatCallback m_vfCallback
@Concealed protected boolean m_bUseCallback
@Concealed protected static final java.lang.String pos_numfmt_num
@Concealed protected static final java.lang.String pos_numfmt_pos_num
@Concealed protected static final java.lang.String pos_numfmt_num_pos
@Concealed protected static final java.lang.String oracle_pos_num_const
@Concealed protected static final java.lang.String pos_numfmt_loc
@Concealed protected static final java.lang.String neg_numfmt_op_num_cp
@Concealed protected static final java.lang.String neg_numfmt_neg_num
@Concealed protected static final java.lang.String neg_numfmt_num_neg
@Concealed protected static final java.lang.String neg_numfmt_num
@Concealed protected static final java.lang.String oracle_neg_num_const
@Concealed protected static final java.lang.String neg_numfmt_loc
@Concealed protected static final java.lang.String pos_curfmt_cur_num
@Concealed protected static final java.lang.String pos_curfmt_num_cur
@Concealed protected static final java.lang.String pos_curfmt_cur_spac_num
@Concealed protected static final java.lang.String pos_curfmt_num_spac_cur
@Concealed protected static final java.lang.String pos_curfmt_cur_num_pos
@Concealed protected static final java.lang.String pos_curfmt_pos_num_cur
@Concealed protected static final java.lang.String pos_curfmt_num_pos_cur
@Concealed protected static final java.lang.String pos_curfmt_pos_cur_num
@Concealed protected static final java.lang.String pos_curfmt_num_cur_pos
@Concealed protected static final java.lang.String pos_curfmt_pos_num_spac_cur
@Concealed protected static final java.lang.String pos_curfmt_pos_cur_spac_num
@Concealed protected static final java.lang.String pos_curfmt_num_spac_cur_pos
@Concealed protected static final java.lang.String pos_curfmt_loc
@Concealed protected static final java.lang.String neg_curfmt_op_cur_num_cp
@Concealed protected static final java.lang.String neg_curfmt_neg_cur_num
@Concealed protected static final java.lang.String neg_curfmt_cur_neg_num
@Concealed protected static final java.lang.String neg_curfmt_cur_num_neg
@Concealed protected static final java.lang.String neg_curfmt_op_num_cur_cp
@Concealed protected static final java.lang.String neg_curfmt_neg_num_cur
@Concealed protected static final java.lang.String neg_curfmt_num_neg_cur
@Concealed protected static final java.lang.String neg_curfmt_num_cur_neg
@Concealed protected static final java.lang.String neg_curfmt_neg_num_spac_cur
@Concealed protected static final java.lang.String neg_curfmt_neg_cur_spac_num
@Concealed protected static final java.lang.String neg_curfmt_num_spac_cur_neg
@Concealed protected static final java.lang.String oracle_neg_cur_const
@Concealed protected static final java.lang.String neg_curfmt_cur_spac_num_neg
@Concealed protected static final java.lang.String neg_curfmt_cur_spac_neg_num
@Concealed protected static final java.lang.String neg_curfmt_loc
@Concealed protected static final java.lang.String neg_pctfmt_neg_num_pct
@Concealed protected static final java.lang.String neg_pctfmt_op_num_pct_cp
@Concealed protected static final java.lang.String thou_sep_by_locale
@Concealed protected static final java.lang.String dec_sep_by_locale
@Concealed protected static final java.lang.String scalefactor_none
@Concealed protected static final java.lang.String scalefactor_thousands
@Concealed protected static final java.lang.String scalefactor_millions
@Concealed protected static final java.lang.String scalefactor_billions
@Concealed protected static final java.lang.String scalefactor_trillions
@Concealed protected static final java.lang.String scalefactor_quadrillions
@Concealed protected static final java.lang.String scale_down_sym_loc
@Concealed public static final java.lang.String a_numberType
@Concealed public static final java.lang.String a_thousandSeparator
@Concealed public static final java.lang.String a_decimalSeparator
@Concealed public static final java.lang.String a_currencySymbol
@Concealed public static final java.lang.String a_leadingZero
@Concealed public static final java.lang.String a_decimalDigit
@Concealed public static final java.lang.String a_posNumFmt
@Concealed public static final java.lang.String a_negNumFmt
@Concealed public static final java.lang.String a_posCurFmt
@Concealed public static final java.lang.String a_negCurFmt
@Concealed public static final java.lang.String a_scaleFactor
@Concealed public static final java.lang.String a_nfs
@Concealed public static final java.lang.String a_nft
@Concealed public static final java.lang.String a_scaleDownThousands
@Concealed public static final java.lang.String a_scaleDownMillions
@Concealed public static final java.lang.String a_scaleDownBillions
@Concealed public static final java.lang.String a_scaleDownTrillions
@Concealed public static final java.lang.String a_scaleDownQuadrillions
@Concealed public static final java.lang.String a_javaDateFormat
@Concealed public static final java.lang.String a_oracleDateFormat
@Concealed public static final java.lang.String a_negPctFmt
@Concealed protected static final java.lang.String a_numberTypeUsed
@Concealed protected static final java.lang.String a_thousandSeparatorUsed
@Concealed protected static final java.lang.String a_decimalSeparatorUsed
@Concealed protected static final java.lang.String a_currencySymbolUsed
@Concealed protected static final java.lang.String a_leadingZeroUsed
@Concealed protected static final java.lang.String a_decimalDigitUsed
@Concealed protected static final java.lang.String a_posNumFmtUsed
@Concealed protected static final java.lang.String a_negNumFmtUsed
@Concealed protected static final java.lang.String a_posCurFmtUsed
@Concealed protected static final java.lang.String a_negCurFmtUsed
@Concealed protected static final java.lang.String a_scaleFactorUsed
@Concealed protected static final java.lang.String a_scaleDownThousandsUsed
@Concealed protected static final java.lang.String a_scaleDownMillionsUsed
@Concealed protected static final java.lang.String a_scaleDownBillionsUsed
@Concealed protected static final java.lang.String a_scaleDownTrillionsUsed
@Concealed protected static final java.lang.String a_scaleDownQuadrillionsUsed
@Concealed protected static final java.lang.String a_javaDateFormatUsed
@Concealed protected static final java.lang.String a_oracleDateFormatUsed
@Concealed protected static final java.lang.String a_negPctFmtUsed
@Concealed public static final java.lang.String a_ISOC
@Concealed protected static final int numberType
@Concealed protected static final char thousandSeparator
@Concealed protected static final char decimalSeparator
@Concealed protected static final boolean leadingZero
@Concealed protected static final java.lang.String currencySymbol
@Concealed protected static final int decimalDigit
@Concealed protected static final int posNumFmt
@Concealed protected static final int negNumFmt
@Concealed protected static final int posCurFmt
@Concealed protected static final int negCurFmt
@Concealed protected static final int scaleFactor
@Concealed protected static final java.lang.String scaleDownThousands
@Concealed protected static final java.lang.String scaleDownMillions
@Concealed protected static final java.lang.String scaleDownBillions
@Concealed protected static final java.lang.String scaleDownTrillions
@Concealed protected static final java.lang.String scaleDownQuadrillions
@Concealed protected static final java.lang.String dateFormat
@Concealed protected static final boolean ISOC
@Concealed protected static final int negPctFmt
@Concealed protected static final boolean numberTypeUsed
@Concealed protected static final boolean thousandSeparatorUsed
@Concealed protected static final boolean decimalSeparatorUsed
@Concealed protected static final boolean currencySymbolUsed
@Concealed protected static final boolean leadingZeroUsed
@Concealed protected static final boolean decimalDigitUsed
@Concealed protected static final boolean posNumFmtUsed
@Concealed protected static final boolean negNumFmtUsed
@Concealed protected static final boolean posCurFmtUsed
@Concealed protected static final boolean negCurFmtUsed
@Concealed protected static final boolean scaleFactorUsed
@Concealed protected static final boolean scaleDownThousandsUsed
@Concealed protected static final boolean scaleDownMillionsUsed
@Concealed protected static final boolean scaleDownBillionsUsed
@Concealed protected static final boolean scaleDownTrillionsUsed
@Concealed protected static final boolean scaleDownQuadrillionsUsed
@Concealed protected static final boolean dateFormatUsed
@Concealed protected static final boolean negPctFmtUsed
public static final java.lang.String on
public static final java.lang.String off
@Concealed protected java.util.BitSet m_formatUsedFlags
public BaseViewFormat()
ViewFormat values.
At this point, no properties have been explicitly set.public BaseViewFormat(int numberType,
char thousandSeparator,
char decimalSeparator,
java.lang.String currencySymbol,
boolean leadingZero,
int decimalDigit,
int posNumFmt,
int negNumFmt,
int posCurFmt,
int negCurFmt,
int scaleFactor,
java.lang.String scaleDownThousands,
java.lang.String scaleDownMillions,
java.lang.String scaleDownBillions,
java.lang.String scaleDownTrillions,
java.lang.String scaleDownQuadrillions,
java.lang.String dateFormat)
ViewFormat properties.
At this point, no property values have been set.numberType - A constant that represents the type of the number,
such as general, currency, date, or percent.thousandSeparator - A character that groups integral digits into
sets of three.decimalSeparator - A character that separates integral and decimal
digits.currencySymbol - A character or String that indicates
a currency value.leadingZero - true to display the number values that
fall between 1.0 and -1.0 with leading zeros,
false to display them without leading zeros.decimalDigit - The number of digits that appear to the right of
the decimal divider.posNumFmt - A constant that indicates a positive number.negNumFmt - A constant that indicates a negative number.posCurFmt - A constant that indicates a positive currency value.negCurFmt - A constant that indicates a negative currency value.scaleFactor - A constant that specifies the number of digits to
the left to move the decimal point.scaleDownThousands - A character or String that
represents the abbreviation for thousand.scaleDownMillions - A character or String that
represents the abbreviation for million.scaleDownBillions - A character or String that
represents the abbreviation for billion.scaleDownTrillions - A character or String that
represents the abbreviation for trillion.scaleDownQuadrillions - A character or String that
represents the abbreviation for quadrillion.dateFormat - The format that determines the way in which the date
is displayed, such as MM/DD/YY, or DD/MM/YY.public BaseViewFormat(java.lang.String strNumberFormatString,
int nNumberFormatType)
This constructor sets the properties of this ViewFormat object,
according to the format string that is specified in this method.
Any property that is initialized by the strNumberFormatString
is marked as being used.
strNumberFormatString - A number format mask of property values for
this ViewFormat object.nNumberFormatType - A constant that represents the type
of format String that
strNumberFormatString represents.
Valid constants are listed in the See Also section.OEO_PATTERN_STR,
ORACLE_PATTERN_STRpublic void init()
public void init(int numberType,
char thousandSeparator,
char decimalSeparator,
java.lang.String currencySymbol,
boolean leadingZero,
int decimalDigit,
int posNumFmt,
int negNumFmt,
int posCurFmt,
int negCurFmt,
int scaleFactor,
java.lang.String scaleDownThousands,
java.lang.String scaleDownMillions,
java.lang.String scaleDownBillions,
java.lang.String scaleDownTrillions,
java.lang.String scaleDownQuadrillions,
java.lang.String dateFormat)
ViewFormat properties.
At this point, no property values have been set.numberType - A constant that represents the type of the number,
such as general, currency, date, or percent.thousandSeparator - A character that groups integral digits into
sets of three.decimalSeparator - A character that separates integral and decimal
digits.currencySymbol - A character or String that indicates
a currency value.leadingZero - true to display the number values that
fall between 1.0 and -1.0 with leading zeros,
false to display them without leading zeros.decimalDigit - The number of digits that appear to the right of
the decimal divider.posNumFmt - A constant that indicates a positive number.negNumFmt - A constant that indicates a negative number.posCurFmt - A constant that indicates a positive currency value.negCurFmt - A constant that indicates a negative currency value.scaleFactor - A constant that specifies the number of digits to
the left to move the decimal point.scaleDownThousands - A character or String that
represents the abbreviation for thousand.scaleDownMillions - A character or String that
represents the abbreviation for million.scaleDownBillions - A character or String that
represents the abbreviation for billion.scaleDownTrillions - A character or String that
represents the abbreviation for trillion.scaleDownQuadrillions - A character or String that
represents the abbreviation for quadrillion.dateFormat - The format that determines the way in which the date
is displayed, such as MM/DD/YY, or DD/MM/YY.@Concealed public oracle.dss.util.xml.ObjectNode getXML(boolean allProperties)
allProperties - true to store all property values in XML,
false to store only values that are different
from default values.(boolean, boolean)ObjectNode.@Concealed
public oracle.dss.util.xml.ObjectNode getXML(boolean allProperties,
boolean emptyElement)
MergeableXMLObjectNode.getXML in interface MergeableXMLallProperties - true to store all property values in XML,
false to store only values that are different
from default values.emptyElement - true if an empty element needs to be returned
when none of the property values have changed from default.
false if null should should be returned when
none of the property values have changed from default.
This argument is considered only if
allProperties is false.ObjectNode.public boolean setXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset,
java.util.HashMap map)
@Concealed
public boolean setXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset)
MergeableXMLMergeableXML.setXML in interface MergeableXMLnode - ObjectNode that has the properties and their values.version - The XML version.reset - A constant that indicates how much to reset when XML
is applied. Valid values are listed in the See Also section.true if XML is properly applied,
false if the XML cannot be applied.Rule.RESET_NONE,
Rule.RESET_XML_PROPERTIES,
Rule.RESET_EVERYTHINGMergeableXML.@Concealed public static int convertNumberTypeToInt(java.lang.String value)
@Concealed public static int convertPosNumFmtToInt(java.lang.String value)
@Concealed public static int convertPosCurFmtToInt(java.lang.String value)
public static int convertNegCurFmtToInt(java.lang.String value)
@Concealed public static int convertNegNumFmtToInt(java.lang.String value)
@Concealed public static int convertScaleFactorToInt(java.lang.String value)
public boolean isAnythingOverridden()
ViewFormat has
been explicitly set.isAnythingOverridden in interface Mergeabletrue if any property has been explicitly set,
false if the properties have their original values.public java.lang.Object clone()
ViewFormat object.public void merge(Mergeable from)
ViewFormat object with this object.
This method is called by the Rule classes.
Applications should not call this method to set properties of the
ViewFormat, because the view is not refreshed when
this method is called.
Instead, call the normal access methods to set properties of the
ViewFormat.
For example, to set the currency symbol, call the
setCurrencySymbol method.
Alternately, set a new ViewFormat on the view.
public boolean equals(java.lang.Object o)
ViewFormat object.
Objects are equivalent if they have the same properties explicitly set
and those properties have the same values.equals in class java.lang.Objecto - The object that you want to compare with this
ViewFormat object.true if they are equal,
false if not,
or if o is not a ViewFormat object.public void initWithString(java.lang.String strNumberFormatString,
int nNumberFormatType)
BaseViewFormat from a format String.
This method updates the properties of this BaseViewFormat object
according to the specified format string.
Any property that is initialized by the strNumberFormatString
is marked as being used.strNumberFormatString - The number format mask that specifies property
values for this BaseViewFormat object.nNumberFormatType - A constant that represents the type
of format String that
strNumberFormatString represents.
Valid constants are listed in the See Also section.OEO_PATTERN_STR,
ORACLE_PATTERN_STRpublic boolean validateFormatString(java.lang.String strNumberFormatString,
int nNumberFormatType)
String before setting its values on this
BaseViewFormat.
This method updates the properties of this ViewFormat object according
to the format string that is specified in this method.
Any property that is initialized by the strNumberFormatString
is marked as being used.strNumberFormatString - The number format mask that specifies property
values for this BaseViewFormat object.nNumberFormatType - A constant that represents the type
of format String that
strNumberFormatString represents.
Valid constants are listed in the See Also section.true if the format string is valid,
false if it is not.OEO_PATTERN_STR,
ORACLE_PATTERN_STRpublic void clearUsedBits()
ViewFormat properties to false.
Immediately after you call this method, the IsAnythingOverridden
method returns false.public java.lang.String toString()
String representation of this
ViewFormat.toString in class java.lang.ObjectString representation of this object.public java.lang.String BooleanToString(boolean bValue)
String representation of a Boolean
value.bValue - The Boolean value that you want to format as
a String.String representation of bValue.public java.lang.String DateToString(java.sql.Date dateValue)
String representation of a java.sql.Date
value.dateValue - The date value that you want to format as a
String.String representation of dateValue.public java.lang.String UtilDateToString(java.util.Date dateValue)
String representation of a Date
value.dateValue - The date value that you want to format as a
String.String representation of dateValue.public java.lang.String DoubleToString(double dValue)
String representation of a double
value.dValue - The double value that you want to format as
a String.String representation of dValue.public java.lang.String FloatToString(float fValue)
String representation of a float
value.fValue - The float value that you want to format as a
String.String representation of fValue.public java.lang.String TimeToString(java.sql.Time timeValue)
String representation of a Time
value.timeValue - The time value that you want to format as a
String.String representation of timeValue.public java.lang.String TimestampToString(java.sql.Timestamp timeValue)
String representation of a Timestamp
value.timeValue - The time stamp value that you want to format as a
String.String representation of timeValue.public java.lang.String getCurrencySymbol()
String that indicates a currency value.
The default value is DEFAULT_CURRENCY_SYMBOL.
The default value is used when no value has been specified.String that indicates a currency
value for this ViewFormat object.DEFAULT_CURRENCY_SYMBOLpublic int getDecimalDigit()
public java.lang.String getJavaDateFormat()
ViewFormat.
MM/dd/yyyy or dd/MM/yyyy.
This method uses the Java date formatting mechanism.
For information about valid format strings, see the documentation
for the java.text.SimpleDateFormat class.SimpleDateFormatpublic java.lang.String getOracleDateFormat()
ViewFormat
such as MM/DD/YYYY or DD/MM/YYYY.
This method uses the Oracle date formatting mechanism.
For information about valid format strings, consult your core
Oracle documentation.
Internal Oracle developers can find this information at
http://www-st.us.oracle.com/webpages/dst/coredev/docs5/appc.html.ViewFormat uses.public char getDecimalSeparator()
String that separates the integer
and decimal parts of numbers.
The default is THOU_SEP_BY_LOCALE, which means the thousands
separator is based on the locale.String that separates the integer
and decimal parts of numbers.@Concealed public char getDecimalSeparatorSymbol()
public boolean isLeadingZero()
true.
The default value is used when no value has been explicitly set.true if the numbers that fall between 1.0 and -1.0
are displayed with leading zeros, false if they are not displayed with leading zeros.public int getNegCurFmt()
String that indicates a negative
currency value.
The default value is NEG_CURFMT_BY_LOCALE, which means that the
negative currency format is based on locale.NEG_CURFMT_BY_LOCALE,
NEG_CURFMT_CUR_NEG_NUM,
NEG_CURFMT_CUR_NUM_NEG,
NEG_CURFMT_NEG_CUR_NUM,
NEG_CURFMT_NEG_NUM_CUR,
NEG_CURFMT_NUM_CUR_NEG,
NEG_CURFMT_NUM_NEG_CUR,
NEG_CURFMT_OP_CUR_NUM_CP,
NEG_CURFMT_OP_NUM_CUR_CP,
NEG_CURFMT_NEG_CUR_SPAC_NUM,
NEG_CURFMT_NEG_NUM_SPAC_CUR,
NEG_CURFMT_NUM_SPAC_CUR_NEG@Concealed public int getNegCurFmtValue()
public int getNegNumFmt()
String that indicates a negative
number value.
The default value is NEG_NUMFMT_BY_LOCALE, which means
that the negative number format is based on locale.NEG_NUMFMT_BY_LOCALE,
NEG_NUMFMT_NEG_NUM,
NEG_NUMFMT_NUM_NEG,
NEG_NUMFMT_OP_NUM_CP@Concealed public int getNegNumFmtValue()
public int getNumberType()
DEFAULT_NUM_TYPE.
The default value is used when no value has been specified.DEFAULT_NUM_TYPE,
NUMTYPE_GENERAL,
NUMTYPE_CURRENCY,
NUMTYPE_PERCENTpublic int getPosCurFmt()
String that indicates a positive
currency value.
The default value is POS_CURFMT_BY_LOCALE, which means that
the positive currency format is based on locale.POS_CURFMT_BY_LOCALE,
POS_CURFMT_CUR_NUM,
POS_CURFMT_CUR_NUM_POS,
POS_CURFMT_CUR_SPAC_NUM,
POS_CURFMT_NUM_CUR,
POS_CURFMT_NUM_CUR_POS,
POS_CURFMT_NUM_POS_CUR,
POS_CURFMT_NUM_SPAC_CUR,
POS_CURFMT_NUM_SPAC_CUR_POS,
POS_CURFMT_POS_CUR_NUM,
POS_CURFMT_POS_CUR_SPAC_NUM,
POS_CURFMT_POS_NUM_CUR,
POS_CURFMT_POS_NUM_SPAC_CUR@Concealed public int getPosCurFmtValue()
public int getPosNumFmt()
String that indicates a positive
number value.
The default value is POS_NUMFMT_BY_LOCALE, which means that the
positive number format is based on locale.POS_NUMFMT_BY_LOCALE,
POS_NUMFMT_NUM,
POS_NUMFMT_NUM_POS,
POS_NUMFMT_POS_NUM@Concealed public int getPosNumFmtValue()
public java.lang.String getScaleDownBillions()
String that represents the
abbreviation for billions.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for billions is based on locale.String that represents the
abbreviation for billions.SCALE_DOWN_SYMBOL_BY_LOCALE@Concealed public java.lang.String getScaleDownBillionsSymbol()
public java.lang.String getScaleDownMillions()
String that represents the
abbreviation for millions.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for millions is based on locale.String that represents the
abbreviation for millions.SCALE_DOWN_SYMBOL_BY_LOCALE@Concealed public java.lang.String getScaleDownMillionsSymbol()
public java.lang.String getScaleDownQuadrillions()
String that represents the
abbreviation for quadrillions.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for quadrillions is based on locale.String that represents the
abbreviation for quadrillions.SCALE_DOWN_SYMBOL_BY_LOCALE@Concealed public java.lang.String getScaleDownQuadrillionsSymbol()
public java.lang.String getScaleDownThousands()
String that represents the
abbreviation for thousands.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for thousands is based on locale.String that represents the
abbreviation for thousands.SCALE_DOWN_SYMBOL_BY_LOCALE@Concealed public java.lang.String getScaleDownThousandsSymbol()
public java.lang.String getScaleDownTrillions()
String that represents the
abbreviation for trillions.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for trillions is based on locale.String that represents the
abbreviation for trillions.SCALE_DOWN_SYMBOL_BY_LOCALE@Concealed public java.lang.String getScaleDownTrillionsSymbol()
public int getScaleFactor()
ScaleFactor property is set to
SCALEFACTOR_THOUSANDS.
The default is DEFAULT_SCALE_FACTOR, which returns no scaling.
The decimal point is not moved.
The default value is used when no scale factor value has been specified.
DEFAULT_SCALE_FACTOR,
SCALEFACTOR_NONE,
SCALEFACTOR_THOUSANDS,
SCALEFACTOR_MILLIONS,
SCALEFACTOR_BILLIONS,
SCALEFACTOR_TRILLIONS,
SCALEFACTOR_QUADRILLIONSpublic int convertScalingToScaleFactor(java.lang.String scaling)
public static int convertNonAutoScalingToScaleFactor(java.lang.String scaling)
public java.lang.String convertScaleFactorToScaling(boolean isScaleFactorUsed,
int scaleFactor)
public char getThousandSeparator()
String that separates thousands
in number values.
The default is THOU_SEP_BY_LOCALE, which means that the thousands
separator is based on the locale.String that separates thousands in
number values.THOU_SEP_BY_LOCALEpublic boolean getThousandSeparatorUsed()
@Concealed public char getThousandSeparatorSymbol()
public java.lang.String IntToString(int iValue)
String.iValue - The integer value that you want to format as a
String.String.public boolean isCurrencySymbolUsed()
CurrencySymbol property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isDecimalDigitUsed()
DecimalDigit property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isOracleDateFormatUsed()
OracleDateFormat property has been
explicitly set.
When the return value of this method is true,
the property's value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isJavaDateFormatUsed()
JavaDateFormat property has been
explicitly set.
When the return value of this method is true,
the property's value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isDecimalSeparatorUsed()
DecimalSeparator property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isLeadingZeroUsed()
LeadingZero property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isNegCurFmtUsed()
NegCurFmt property has been
explicitly set.
When the return value of this method is true,
the property's value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isNegNumFmtUsed()
NegNumFmt property has been explicitly
set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isNumberTypeUsed()
NumberType property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isPosCurFmtUsed()
PosCurFmt property has been explicitly
set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isPosNumFmtUsed()
PosNumFmt property has been explicitly
set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isScaleDownBillionsUsed()
ScaleDownBillions property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isScaleDownMillionsUsed()
ScaleDownMillions property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isScaleDownQuadrillionsUsed()
ScaleDownQuadrillions property has
been explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isScaleDownThousandsUsed()
ScaleDownThousands property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isScaleDownTrillionsUsed()
ScaleDownTrillions property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isScaleFactorUsed()
ScaleFactor property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public boolean isThousandSeparatorUsed()
ThousandSeparator property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.true if the property has been explicitly set,
false if the property has not been explicitly set.public java.lang.String LongToString(long lValue)
String representation of a long
value.lValue - The long value that you want to format as
a String.String representation of lValue.public java.lang.String ObjectToString(java.lang.Object objValue)
String representation of an object.
If the object type is unknown, then the object's toString
method will be called.
If the parameter value of this method is null, then the return value of this
method will be an empty String.objValue - The object that you want to format as a String.String representation of objValue.public void setCurrencySymbol(java.lang.String sCurrencySymbol)
String that indicates a currency value.
The default value is DEFAULT_CURRENCY_SYMBOL.
The default value is used when no value has been specified.
This method also sets the CurrencySymbolUsed property to
true.String - The character or String that indicates a
currency value, for this ViewFormat object.DEFAULT_CURRENCY_SYMBOLpublic void setCurrencySymbolUsed(boolean bValue)
CurrencySymbol property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setCurrencySymbol method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setDecimalDigit(int iDecimalDigit)
DecimalDigitUsed property to
true.iDecimalDigit - The number of digits that appear to the right of
the decimal in a number.public void setDecimalDigitUsed(boolean bValue)
DecimalDigit property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setDecimalDigit method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setJavaDateFormat(java.lang.String sDateFormat)
java.text.SimpleDateFormat class.
This method also sets the DateFormatUsed property to
true.
sDateFormat - A Java date format pattern that specifies
the format for dates.public void setOracleDateFormat(java.lang.String sDateFormat)
This method also sets the OracleDateFormatUsed property to
true.
sDateFormat - A Oracle date format pattern that
specifies the format for dates.public void setJavaDateFormatUsed(boolean bValue)
JavaDateFormat property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setJavaDateFormat method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setOracleDateFormatUsed(boolean bValue)
OracleDateFormat property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setOracleDateFormat method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setDecimalSeparator(char cDecimalSeparator)
String that separates the integer
and decimal parts of numbers.
The default is DEC_SEP_BY_LOCALE, which means that the decimal
separator is based on the locale.
This method also sets the DecimalSeparatorUsed property to
true.cDecimalSeparator - The character or String that
separates the integer and decimal parts of numbers.public void setDecimalSeparatorUsed(boolean bValue)
DecimalSeparator property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setDecimalSeparator method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setLeadingZero(boolean bLeadingZero)
true.
The default value is used when no value has been explicitly set.
This method also sets the LeadingZeroUsed property to
true.bLeadingZero - true to display leading zeros in front
of the numbers that fall between 1.0 and -1.0,
false to display them without leading zeros.public void setLeadingZeroUsed(boolean bValue)
LeadingZero property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setLeadingZero method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setNegCurFmt(int iNegCurFmt)
String that indicates a negative
currency value.
The default value is NEG_CURFMT_BY_LOCALE, which means that the
negative currency format is based on locale.
This method also sets the NegCurFmtUsed property to
true.iNegCurFmt - The constant that represents a negative currency format.NEG_CURFMT_BY_LOCALE,
NEG_CURFMT_CUR_NEG_NUM,
NEG_CURFMT_CUR_NUM_NEG,
NEG_CURFMT_NEG_CUR_NUM,
NEG_CURFMT_NEG_NUM_CUR,
NEG_CURFMT_NUM_CUR_NEG,
NEG_CURFMT_NUM_NEG_CUR,
NEG_CURFMT_OP_CUR_NUM_CP,
NEG_CURFMT_OP_NUM_CUR_CP,
NEG_CURFMT_NEG_CUR_SPAC_NUM,
NEG_CURFMT_NEG_NUM_SPAC_CUR,
NEG_CURFMT_NUM_SPAC_CUR_NEGpublic void setNegCurFmtUsed(boolean bValue)
NegCurFmt property has been explicitly
set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setNegCurFmt method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setNegNumFmt(int iNegNumFmt)
String that indicates a negative
number value.
The default value is NEG_NUMFMT_BY_LOCALE, which means that the
positive number format is based on locale.
This method also sets the NegNumFmtUsed property to
true.iNegNumFmt - The constant that represents a negative number format.
Valid constants are listed in the See Also section.NEG_NUMFMT_BY_LOCALE,
NEG_NUMFMT_NEG_NUM,
NEG_NUMFMT_NUM_NEG,
NEG_NUMFMT_OP_NUM_CPpublic void setNegNumFmtUsed(boolean bValue)
NegNumFmt property has been explicitly
set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setNegNumFmt method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setNumberType(int iNumberType)
DEFAULT_NUM_TYPE.
The default value is used when no value has been specified.
This method also sets the NumberTypeUsed property to
true.iNumberType - The constant that represents the type of the number,
such as general, currency, or percent. Valid constants are listed in the
See Also section.DEFAULT_NUM_TYPE,
NUMTYPE_GENERAL,
NUMTYPE_CURRENCY,
NUMTYPE_PERCENTpublic void setNumberTypeUsed(boolean bValue)
NumberType property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setNumberType method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setPosCurFmt(int iPosCurFmt)
String that indicates a positive
currency value.
The default value is POS_CURFMT_BY_LOCALE, which means that the
positive currency format is based on locale.
This method also sets the PosCurFmtUsed property to
true.iPosCurFmt - The constant that represents a positive currency format.
Valid constants are listed in the See Also section.POS_CURFMT_BY_LOCALE,
POS_CURFMT_CUR_NUM,
POS_CURFMT_CUR_NUM_POS,
POS_CURFMT_CUR_SPAC_NUM,
POS_CURFMT_NUM_CUR,
POS_CURFMT_NUM_CUR_POS,
POS_CURFMT_NUM_POS_CUR,
POS_CURFMT_NUM_SPAC_CUR,
POS_CURFMT_NUM_SPAC_CUR_POS,
POS_CURFMT_POS_CUR_NUM,
POS_CURFMT_POS_CUR_SPAC_NUM,
POS_CURFMT_POS_NUM_CUR,
POS_CURFMT_POS_NUM_SPAC_CURpublic void setPosCurFmtUsed(boolean bValue)
PosCurFmt property has been explicitly
set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setPosCurFmt method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setPosNumFmt(int iPosNumFmt)
String that indicates a positive
number value.
The default value is POS_NUMFMT_BY_LOCALE, which means that the
positive number format is based on locale.
This method also sets the PosNumFmtUsed property to
true.iPosNumFmt - The constant that represents a positive number format.
Valid constants are listed in the See Also section.POS_NUMFMT_BY_LOCALE,
POS_NUMFMT_NUM,
POS_NUMFMT_NUM_POS,
POS_NUMFMT_POS_NUMpublic void setPosNumFmtUsed(boolean bValue)
PosNumFmt property has been explicitly
set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setPosNumFmt method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setScaleDownBillions(java.lang.String sValue)
String that represents the
abbreviation for billions.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for billions is based on locale.
This method also sets the ScaleDownBillionsUsed property to
true.sValue - The the character or String that represents
the abbreviation for billions.SCALE_DOWN_SYMBOL_BY_LOCALEpublic void setScaleDownBillionsUsed(boolean bValue)
ScaleDownBillions property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setScaleDownBillions method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setScaleDownMillions(java.lang.String sValue)
String that represents the
abbreviation for million.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for millions is based on locale.
This method also sets the ScaleDownMillionsUsed property to
true.sValue - The the character or String that represents
the abbreviation for millions.SCALE_DOWN_SYMBOL_BY_LOCALEpublic void setScaleDownMillionsUsed(boolean bValue)
ScaleDownMillions property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
The parameter value of this method is called by the
setScaleDownMillions method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setScaleDownQuadrillions(java.lang.String sValue)
String that represents the
abbreviation for quadrillions.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for quadrillion is based on locale.
This method also sets the ScaleDownQuadrillionsUsed property '
to true.sValue - The the character or String that represents
the abbreviation for quadrillions.SCALE_DOWN_SYMBOL_BY_LOCALEpublic void setScaleDownQuadrillionsUsed(boolean bValue)
ScaleDownQuadrillions property has
been explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
This method is called by the
setScaleDownQuadrillions method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setScaleDownThousands(java.lang.String sValue)
String that represents the
abbreviation for thousands.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for thousands is based on locale.
This method also sets the ScaleDownThousandsUsed property to
true.sValue - The the character or String that represents
the abbreviation for thousands.SCALE_DOWN_SYMBOL_BY_LOCALEpublic void setScaleDownThousandsUsed(boolean bValue)
ScaleDownThousands property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
This method is called by the setScaleDownThousands method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setScaleDownTrillions(java.lang.String sValue)
String that represents the
abbreviation for trillions.
The default value is SCALE_DOWN_SYMBOL_BY_LOCALE, which means
that the abbreviation for trillions is based on locale.
This method also sets the ScaleDownTrillionsUsed property to
true.sValue - The the character or String that represents
the abbreviation for trillions.SCALE_DOWN_SYMBOL_BY_LOCALEpublic void setScaleDownTrillionsUsed(boolean bValue)
ScaleDownTrillions property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
This method is called by the setScaleDownTrillions method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setScaleFactor(int iScaleFactor)
ScaleFactor to
SCALEFACTOR_THOUSANDS, the view displays the number
as thousands, and a number such as 153,000 appears as 153K
(assuming the default value of the ScaleDownThousands
property).
The default is DEFAULT_SCALE_FACTOR, which specifies no scaling.
The default value is used when no scale factor value has been specified.
This method also sets the ScaleFactorUsed property to
true.
iScaleFactor - A constant that represents the scale by
which to abbreviate a number. Valid constants are
listed in the See Also section.DEFAULT_SCALE_FACTOR,
SCALEFACTOR_NONE,
SCALEFACTOR_THOUSANDS,
SCALEFACTOR_MILLIONS,
SCALEFACTOR_BILLIONS,
SCALEFACTOR_TRILLIONS,
SCALEFACTOR_QUADRILLIONSpublic void setScaleFactorUsed(boolean bValue)
ScaleFactor property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
This method is called by the setScaleFactor method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public void setThousandSeparator(char cThousandSeparator)
String that separates thousands
in number values.
The default is THOU_SEP_BY_LOCALE, which means that the thousands
separator is based on the locale.
This method also sets the ThousandsSeparatorUsed property to
true.cThousandSeparator - The character or String that
separates thousands in number values.public void setThousandSeparatorUsed(boolean bValue)
ThousandSeparator property has been
explicitly set.
When the parameter value of this method is true, the
property's value will be used in the merging process.
This method is called by the setThousandSeparator method.bValue - true if the property has been explicitly set,
false if the property has not been explicitly set.public java.lang.String ShortToString(short sValue)
String representation of a short
value.sValue - The short value that you want to format as a
String.String representation of sValue.public java.lang.Boolean StringToBoolean(java.lang.String sValue)
String into a Boolean object.
The caller must ensure that the String is a valid
Boolean.sValue - The String that you want to convert into a
Boolean object.Boolean for sValue.public java.sql.Date StringToDate(java.lang.String sValue)
String into a java.sql.Date object.
The caller must ensure that the String is a valid
java.sql.Date.sValue - The String that you want to convert into a
java.sql.Date object.java.sql.Date for sValue.@Concealed
public java.sql.Date StringToDate(java.lang.String sValue,
boolean dynamic)
sValue - The String that you want to convert into a
java.sql.Date object.dynamic - Indicates whether any Date component not specified in the
String should be defaulted dynamically based on the current Date
or statically.java.sql.Date for sValue.String into a java.sql.Date object.
The caller must ensure that the String is a valid
java.sql.Date.public java.util.Date StringToUtilDate(java.lang.String sValue)
String into a Date object.
The caller must ensure that the String is a valid
Date.sValue - The String that you want to convert into a
Date object.dynamic - Indicates whether any Date component not specified in the
String should be defaulted dynamically based on the current Date
or statically.Date for sValue.public double StringToDouble(java.lang.String sValue)
throws java.text.ParseException
String into a double value.
The caller must ensure that the String is a valid
double.sValue - The String that you want to convert into a
double value.double for sValue.java.text.ParseException - If sValue does not represent a
double value.public float StringToFloat(java.lang.String sValue)
throws java.text.ParseException
String into a float value.
The caller must ensure that the String is a valid
float.sValue - The String that you want to convert into a
float value.float for sValue.java.text.ParseException - If sValue does not represent a
float value.public int StringToInt(java.lang.String sValue)
throws java.text.ParseException
String into an integer.
The caller must ensure that the String is a valid
integer.sValue - The String that you want to convert into
an integer.int for sValue.java.text.ParseException - If sValue does not represent an
integer.public long StringToLong(java.lang.String sValue)
throws java.text.ParseException
String into a long value.
The caller must ensure that the String is a valid
long.sValue - The String that you want to convert into a
long value.long for sValuejava.text.ParseException - If sValue does not represent a
long value.public java.lang.Object StringToObject(java.lang.String sValue,
int iDataType)
String into an object.
The caller must ensure that the String is valid
for the specified data type.sValue - The String that you want to convert into an
object.iDataType - A constant that identifies the data type that
you want the returned object to have.
Valid constants are listed in the See Also section.sValue, or null if
sValue cannot be converted into an object.DATATYPE_BOOLEAN,
DATATYPE_DATE,
DATATYPE_DOUBLE,
DATATYPE_FLOAT,
DATATYPE_INT,
DATATYPE_LONG,
DATATYPE_SHORT,
DATATYPE_STRING,
DATATYPE_TIME,
DATATYPE_TIMESTAMPpublic short StringToShort(java.lang.String sValue)
throws java.text.ParseException
String into a short value.
The caller must ensure that the String is a valid
short.sValue - The String that you want to convert into a
short value.short value for sValue.java.text.ParseException - If sValue does not represent a
short value.public java.lang.String StringToString(java.lang.String sValue)
String into a String object, through
the Date class.sValue - The String that you want to convert into a
String object through the Date class.String after it has been converted into
a String object through the Date class.public java.sql.Time StringToTime(java.lang.String sValue)
String into a Time object.
The caller must ensure that the String is a valid
Time.sValue - The String that you want to convert into a
Time object.Time object for sValue.public java.sql.Timestamp StringToTimestamp(java.lang.String sValue)
String into a Timestamp object.
The caller must ensure that the String is a valid
Timestamp.sValue - The String that you want to convert into a
Timestamp object.Timestamp object for sValue.@Concealed public void setViewFormatCallback(BaseViewFormatCallback vfc)
vfc - the ViewFormatCallback to notify when properties change@Concealed public void setLocale(java.util.Locale loc)
@Concealed
protected void setLocale(java.util.Locale loc,
boolean setAlways)
setAlways - boolean indicating whether to set even if the locale has
not changed.public void updateDefaultSymbols()
public void updateDefaultCurrencySymbol()
@Concealed protected java.lang.Object getExternalDefault(java.lang.String attributeName)
@Concealed public java.util.Locale getLocale()
@Concealed public void setTimeZone(java.util.TimeZone tz)
tz - the TimeZone object@Concealed public java.util.TimeZone getTimeZone()
public void setErrorHandler(ErrorHandler eh)
BaseViewFormat.
Call this method specify an error handler for this BaseViewFormat
if you want to be notified of errors before you set this
BaseViewFormat on a view or calculation.
When you use this BaseViewFormat in a view, the view
uses its own error handler instead of the error handler that is
specified for this BaseViewFormat.eh - The error handler to use.@Concealed public java.lang.String booleanToLocString(java.lang.Boolean bValue)
@Concealed public java.lang.Boolean locStringToBoolean(java.lang.String sValue)
@Concealed public java.lang.String getNumberFormatString(int nNumberFormatType)
nNumberFormatType - A int value that represents the type
of format String that
strNumberFormatString represents.String value which represents the format string, or null.BIBEANS_PATTERN_STR,
OEO_PATTERN_STR,
ORACLE_PATTERN_STRViewFormat
based on the specified format type.@Concealed public int setNumberFormatType(int nNumberFormatType)
nNumberFormatType - A int which contains the number
format type of the ViewFormat.int value which represents the number format type.BIBEANS_PATTERN_STR,
OEO_PATTERN_STR,
ORACLE_PATTERN_STRViewFormat.@Concealed public int getNumberFormatType()
int value which represents the number format type.BIBEANS_PATTERN_STR,
OEO_PATTERN_STR,
ORACLE_PATTERN_STRViewFormat.@Concealed public void setNumberFormatString(java.lang.String strNumberFormatString)
strNumberFormatString - A String which contains the number
format string associated with the ViewFormat.setNumberFormatType(int)ViewFormat.@Concealed public java.lang.String getNumberFormatString()
String value which represents the number format string.ViewFormat.@Concealed public void setScaleFactorExponent(int nScaleFactorExponent)
nScaleFactorExponent - A int which contains the scale
factor exponent.SCALEFACTOR_BASE_10 is used,
the scale value is calculated to be 10 raised to the power of N (10^N),
where N represents the scale factor exponent.
10^-2 = 0.01
10^-1 = 0.10
10^0 = 1
10*1 = 10
10*2 = 100@Concealed public int getScaleFactorExponent()
int which represents the scale factor exponent.SCALEFACTOR_BASE_10 is used,
the scale value is calculated to be 10 raised to the power of N (10^N),
where N represents the scale factor exponent.
10^-2 = 0.01
10^-1 = 0.10
10^0 = 0
10*1 = 10
10*2 = 100@Concealed protected ErrorHandler _getErrorHandler()
@Concealed public boolean isScaleFactorExponentUsed()
true if the property has been explicitly set,
false if the property has not been explicitly set.ScaleFactorExponent property has been
explicitly set.
When the return value of this method is true, the property's
value will be used in the merging process.@Concealed public void setNegativeAngleBracketsUsed(boolean bNegativeAngleBracketsUsed)
bNegativeAngleBracketsUsed - A boolean which is
true when there should be angle brackets should be placed
around negative numbers and false otherwise.@Concealed public boolean isNegativeAngleBracketsUsed()
boolean which is true when there should
be angle brackets should be placed around negative numbers and
false otherwise.@Concealed public void setPercentUsed(boolean bPercentUsed)
setNumberType(int)bPercentUsed - A boolean which is true
when there should be a percent placed after the number and
false otherwise.@Concealed public boolean isPercentUsed()
#getNumberType(int)boolean which is true when there should
be percent placed after the number and false otherwise.@Concealed public void setDefaultThousandSeparator(char thouSep)
thouSep - @Concealed public void setDefaultDecimalSeparator(char decSep)
decSep - @Concealed public void setDefaultCurrencySymbol(java.lang.String currSym)
currSym - @Concealed public void setNumberConverter(NumberConverter converter)
@Concealed public NumberConverter getNumberConverter()
@Concealed public void setISOCurrency(boolean bISOCurr)
bISOCurr - true if the currency symbol is the ISO currency symbol (e.g. "USD" for
US dollars); false if not (e.g. "$")@Concealed public boolean isISOCurrency()
@Concealed public void setISOCurrencyUsed(boolean bISOCurrUsed)
bISOCurrUsed - true if ISOCurrency property has been set, false if not@Concealed public boolean isISOCurrencyUsed()
@Concealed public void setNegPctFmt(int format)
format - format for negative percents@Concealed public int getNegPctFmt()
@Concealed public void setNegPctFmtUsed(boolean bUsed)
bUsed - true if NegPctFmt property has been set, false if not@Concealed public boolean isNegPctFmtUsed()
@Concealed public void setNumberFormatStringUsed(boolean used)
@Concealed public boolean isNumberFormatStringUsed()
@Concealed public java.text.NumberFormat getNumberFormat()