Class DefaultFormFormatter.FieldContext<T>
java.lang.Object
name.matthewgreet.strutscommons.util.DefaultFormFormatter.FieldContext<T>
- Enclosing class:
DefaultFormFormatter
Thread local execution state of algorithm about a field. Use
getInstance()
to obtain the current state.
Properties are set as the algorithm progresses and these are divided into sets, shown below. Documentation of
each library function defines the sets in use as well as its purpose.
Property set 1
Property set 2
formatMode
fieldUsage
pairFieldUsage
unformattedField
annountationEntries
fieldName
unformattedValue
unformattedCollectionValue
Property set 3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns configured policies of form field.Returns name of field containing unformatted value.Returns field and configured policies to apply except for pair conversion mode.Returns format mode, defining the processing of a formatted form field value.Returns formatted value for collection fields.Returns formatted value for single value fields.static <T> DefaultFormFormatter.FieldContext
<T> Returns field and configured policies to apply for pair conversion mode.getStep()
Returns current, field-level processing step.Returns unformatted value for collection fields.Returns field containing value to be formatted.Returns unformatted value for single value fields.void
reset()
void
setAnnountationEntries
(InterceptorCommonLibrary.AnnotationEntries<T> annountationEntries) void
setFieldName
(String fieldName) void
setFieldUsage
(InterceptorCommonLibrary.FieldUsage<T> fieldUsage) void
setFormattedMultipleValues
(List<String> formattedMultipleValues) void
setFormattedValue
(String formattedValue) void
static <T> void
setInstance
(DefaultFormFormatter.FieldContext<T> value) void
setPairFieldUsage
(InterceptorCommonLibrary.PairFieldUsage<T> pairFieldUsage) void
void
setUnformattedCollectionValue
(Collection<T> unformattedCollectionValue) void
setUnformattedField
(Field unformattedField) void
setUnformattedValue
(T unformattedValue)
-
Constructor Details
-
FieldContext
protected FieldContext()
-
-
Method Details
-
getInstance
-
setInstance
-
reset
public void reset() -
getStep
Returns current, field-level processing step. -
setStep
-
getFormatMode
Returns format mode, defining the processing of a formatted form field value. -
setFormatType
-
getFieldUsage
Returns field and configured policies to apply except for pair conversion mode. -
setFieldUsage
-
getPairFieldUsage
Returns field and configured policies to apply for pair conversion mode. -
setPairFieldUsage
-
getUnformattedField
Returns field containing value to be formatted. -
setUnformattedField
-
getAnnountationEntries
Returns configured policies of form field. -
setAnnountationEntries
public void setAnnountationEntries(InterceptorCommonLibrary.AnnotationEntries<T> annountationEntries) -
getFieldName
Returns name of field containing unformatted value. -
setFieldName
-
getUnformattedValue
Returns unformatted value for single value fields. -
setUnformattedValue
-
getUnformattedCollectionValue
Returns unformatted value for collection fields. -
setUnformattedCollectionValue
-
getFormattedValue
Returns formatted value for single value fields. -
setFormattedValue
-
getFormattedMultipleValues
Returns formatted value for collection fields. -
setFormattedMultipleValues
-