Class BooleanContext
- All Implemented Interfaces:
TypeContext<Boolean>
-
Field Summary
FieldsFields inherited from class FormatContext
NBSP -
Constructor Summary
ConstructorsModifierConstructorDescriptionBooleanContext(String trueValue, String falseValue) privateBooleanContext(Format format) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureFormat(Format format, Object object) Will force the object to conform to the context's specification.protected StringhandleFormatException(Format format, Object object) protected BooleanhandleParseException(Format format, String string) Methods inherited from class FormatContext
format, format, getFormat, isConfigured, parse, withFormat
-
Field Details
-
DEFAULT_FORMAT
-
-
Constructor Details
-
BooleanContext
public BooleanContext() -
BooleanContext
-
BooleanContext
-
-
Method Details
-
enforce
Description copied from interface:TypeContextWill force the object to conform to the context's specification. The default implementation formats aStringand then parses that back to an object (of the original type). -
configureFormat
- Specified by:
configureFormatin classFormatContext<Boolean>
-
handleFormatException
- Specified by:
handleFormatExceptionin classFormatContext<Boolean>
-
handleParseException
- Specified by:
handleParseExceptionin classFormatContext<Boolean>
-