Class DefaultAnnotationValidatior.FieldContext<T>
java.lang.Object
name.matthewgreet.strutscommons.util.DefaultAnnotationValidatior.FieldContext<T>
- Enclosing class:
DefaultAnnotationValidatior
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
Property set 3
Property set 4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns name of field, which is the string field in a pair conversion.Returns configured policies to apply.Returns the policy being processed.Returns conversion mode, defining how form field is set from a request parameter.Returns result of a conversion, if any.Returns field and configured policies to apply except for pair conversion mode.Returns the request parameter value, which is adjusted by adjuster policies after the ADJUSTING step.static <T> DefaultAnnotationValidatior.FieldContext
<T> Returns field and configured policies to apply for pair conversion mode.org.apache.struts2.dispatcher.Parameter
Returns the request parameter applying to the form field, which can be anParameter.Empty
instance.Returns successfully converted value, for a collection field.Returns successfully converted value, for a single value field.getStep()
Returns current, field-level processing step.Returns result of a non-conversion or post-conversion validation, if any.void
reset()
void
setAnnotatedFieldName
(String annotatedFieldName) void
setAnnountationEntries
(InterceptorCommonLibrary.AnnotationEntries<T> annountationEntries) void
setConfiguredPolicy
(InterceptorCommonLibrary.ConfiguredPolicy<T> configuredPolicy) void
void
setConversionResult
(ConversionResult<T> conversionResult) void
setFieldUsage
(InterceptorCommonLibrary.FieldUsage<T> fieldUsage) void
setFormattedValue
(String formattedValue) static <T> void
void
setPairFieldUsage
(InterceptorCommonLibrary.PairFieldUsage<T> pairFieldUsage) void
setParameter
(org.apache.struts2.dispatcher.Parameter parameter) void
setParsedCollectionValue
(Collection<T> parsedCollectionValue) void
setParsedValue
(T parsedValue) void
void
setValidationResult
(ValidationResult validationResult)
-
Constructor Details
-
FieldContext
protected FieldContext()
-
-
Method Details
-
getInstance
-
setInstance
-
reset
public void reset() -
getStep
Returns current, field-level processing step. -
setStep
-
getConversionMode
Returns conversion mode, defining how form field is set from a request parameter. -
setConversionMode
public void setConversionMode(DefaultAnnotationValidatior.FieldContext.ConversionMode conversionMode) -
getParameter
public org.apache.struts2.dispatcher.Parameter getParameter()Returns the request parameter applying to the form field, which can be anParameter.Empty
instance. -
setParameter
public void setParameter(org.apache.struts2.dispatcher.Parameter parameter) -
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
-
getAnnountationEntries
Returns configured policies to apply. -
setAnnountationEntries
public void setAnnountationEntries(InterceptorCommonLibrary.AnnotationEntries<T> annountationEntries) -
getAnnotatedFieldName
Returns name of field, which is the string field in a pair conversion. -
setAnnotatedFieldName
-
getFormattedValue
Returns the request parameter value, which is adjusted by adjuster policies after the ADJUSTING step. -
setFormattedValue
-
getConfiguredPolicy
Returns the policy being processed. -
setConfiguredPolicy
-
getValidationResult
Returns result of a non-conversion or post-conversion validation, if any. -
setValidationResult
-
getConversionResult
Returns result of a conversion, if any. -
setConversionResult
-
getParsedValue
Returns successfully converted value, for a single value field. -
setParsedValue
-
getParsedCollectionValue
Returns successfully converted value, for a collection field. -
setParsedCollectionValue
-