Microsoft SDK for Java

BooleanDataFormat Class Constructors

The BooleanDataFormat class contains the following constructors:

BooleanDataFormat(String falsevalue, String truevalue)
BooleanDataFormat(String falseValue, String trueValue, String nullValue)

BooleanDataFormat(String falsevalue, String truevalue)

Creates a BooleanDataFormat object for formatting false and true values.

Syntax

public BooleanDataFormat(String falsevalue, String truevalue);

Parameters

falsevalue The string to use for false values. The default string is "False".
truevalue The string to use for true values. The default string is "True".

BooleanDataFormat(String falseValue, String trueValue, String nullValue)

Creates a BooleanDataFormat object for formatting false, true, and null values.

Syntax

public BooleanDataFormat(String falseValue, String trueValue, String nullValue);

Parameters

falsevalue The string to use for false values. The default string is "False".
truevalue The string to use for true values. The default string is "True".
nullValue The string to use for null values. The default string is "(null)".

Remarks

If no value is passed for falseValue, trueValue, or nullValue, the corresponding default string is used. To explicitly use a default string, pass null for the parameter.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.