|
Docmosis API 4.9.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.docmosis.template.population.format.BooleanDataFormatter
public class BooleanDataFormatter
A Convenience DataFormatter that will render String values for booleans. If applied to the Boolean class and a null value is encountered, null is returned.
| Field Summary | |
|---|---|
static BooleanDataFormatter |
BOOLEAN_DINGBATS_TICK_CROSS_DATA_FORMATTER
A Convenience DataFormatter that will render Dingbats tick and cross values for booleans. |
static BooleanDataFormatter |
BOOLEAN_WINGDINGS_TICK_CROSS_BOX_DATA_FORMATTER
A Convenience DataFormatter that will render WingDings tick, cross and empty box values for Booleans. |
static BooleanDataFormatter |
BOOLEAN_WINGDINGS_TICK_CROSS_DATA_FORMATTER
A Convenience DataFormatter that will render WingDings tick and cross values for booleans. |
static BooleanDataFormatter |
BOOLEAN_Y_N_DATA_FORMATTER
A Convenience DataFormatter that will render Y, N values for booleans. |
static BooleanDataFormatter |
BOOLEAN_yes_no_DATA_FORMATTER
A Convenience DataFormatter that will render yes, no values for booleans. |
static BooleanDataFormatter |
BOOLEAN_Yes_No_DATA_FORMATTER
A Convenience DataFormatter that will render Yes, No values for booleans. |
static BooleanDataFormatter |
BOOLEAN_YES_NO_DATA_FORMATTER
A Convenience DataFormatter that will render YES, NO values for booleans. |
| Constructor Summary | |
|---|---|
BooleanDataFormatter(String yes,
String no)
|
|
BooleanDataFormatter(String yes,
String no,
String nullValue)
|
|
| Method Summary | |
|---|---|
String |
format(Class type,
Object value,
String fieldName,
Class delegateClass)
Format the given value and return a String to display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final BooleanDataFormatter BOOLEAN_Y_N_DATA_FORMATTER
public static final BooleanDataFormatter BOOLEAN_Yes_No_DATA_FORMATTER
public static final BooleanDataFormatter BOOLEAN_YES_NO_DATA_FORMATTER
public static final BooleanDataFormatter BOOLEAN_yes_no_DATA_FORMATTER
public static final BooleanDataFormatter BOOLEAN_WINGDINGS_TICK_CROSS_DATA_FORMATTER
public static final BooleanDataFormatter BOOLEAN_WINGDINGS_TICK_CROSS_BOX_DATA_FORMATTER
public static final BooleanDataFormatter BOOLEAN_DINGBATS_TICK_CROSS_DATA_FORMATTER
| Constructor Detail |
|---|
public BooleanDataFormatter(String yes,
String no)
public BooleanDataFormatter(String yes,
String no,
String nullValue)
| Method Detail |
|---|
public String format(Class type,
Object value,
String fieldName,
Class delegateClass)
DataFormatter
format in interface DataFormattertype - the Class of the object to be formattedvalue - the value being formattedfieldName - the name of the field in the template that the value is
destined to populate.delegateClass - the class of the delegate currently being interrogated. This
information may be useful when wanting to format the same types of information
differently in the context of different delegate objects.
|
Docmosis API 4.9.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||