Package rife.validation
Class AbstractValidationBuilder
java.lang.Object
rife.validation.AbstractValidationBuilder
- All Implemented Interfaces:
Cloneable
,ValidationBuilder
- Direct Known Subclasses:
ValidationBuilderHtml
,ValidationBuilderXml
-
Field Summary
Fields inherited from interface rife.validation.ValidationBuilder
ID_ERROR_WILDCARD, ID_ERRORMESSAGE, ID_ERRORMESSAGE_WILDCARD, ID_ERRORS, ID_ERRORS_FALLBACK, ID_ERRORS_WILDCARD, PREFIX_ERROR, PREFIX_ERRORMESSAGE, PREFIX_ERRORS, PREFIX_MARK, PREFIX_MARK_ERROR, TAG_ERRORMESSAGE, TAG_ERRORS, TAG_MARK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
protected abstract String
formatLine
(String content) generateErrorMarkings
(Template template, Collection<ValidationError> errors) generateErrorMarkings
(Template template, Collection<ValidationError> errors, String prefix) generateErrorMarkings
(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear) generateErrorMarkings
(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear, String prefix) generateValidationErrors
(Template template, Collection<ValidationError> errors) generateValidationErrors
(Template template, Collection<ValidationError> errors, String prefix) generateValidationErrors
(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear) generateValidationErrors
(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear, String prefix) void
removeErrorMarkings
(Template template, Collection<String> subjects) void
removeErrorMarkings
(Template template, Collection<String> subjects, String prefix) void
removeValidationErrors
(Template template, Collection<String> subjects) void
removeValidationErrors
(Template template, Collection<String> subjects, String prefix) void
setFallbackErrorArea
(Template template, String message)
-
Constructor Details
-
AbstractValidationBuilder
public AbstractValidationBuilder()
-
-
Method Details
-
setFallbackErrorArea
- Specified by:
setFallbackErrorArea
in interfaceValidationBuilder
-
generateValidationErrors
public Collection<String> generateValidationErrors(Template template, Collection<ValidationError> errors) - Specified by:
generateValidationErrors
in interfaceValidationBuilder
-
generateValidationErrors
public Collection<String> generateValidationErrors(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear) - Specified by:
generateValidationErrors
in interfaceValidationBuilder
-
generateValidationErrors
public Collection<String> generateValidationErrors(Template template, Collection<ValidationError> errors, String prefix) - Specified by:
generateValidationErrors
in interfaceValidationBuilder
-
generateValidationErrors
public Collection<String> generateValidationErrors(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear, String prefix) - Specified by:
generateValidationErrors
in interfaceValidationBuilder
-
formatLine
-
generateErrorMarkings
public Collection<String> generateErrorMarkings(Template template, Collection<ValidationError> errors) throws ValidationBuilderException - Specified by:
generateErrorMarkings
in interfaceValidationBuilder
- Throws:
ValidationBuilderException
-
generateErrorMarkings
public Collection<String> generateErrorMarkings(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear) throws ValidationBuilderException - Specified by:
generateErrorMarkings
in interfaceValidationBuilder
- Throws:
ValidationBuilderException
-
generateErrorMarkings
public Collection<String> generateErrorMarkings(Template template, Collection<ValidationError> errors, String prefix) throws ValidationBuilderException - Specified by:
generateErrorMarkings
in interfaceValidationBuilder
- Throws:
ValidationBuilderException
-
generateErrorMarkings
public Collection<String> generateErrorMarkings(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear, String prefix) throws ValidationBuilderException - Specified by:
generateErrorMarkings
in interfaceValidationBuilder
- Throws:
ValidationBuilderException
-
removeValidationErrors
- Specified by:
removeValidationErrors
in interfaceValidationBuilder
-
removeValidationErrors
- Specified by:
removeValidationErrors
in interfaceValidationBuilder
-
removeErrorMarkings
- Specified by:
removeErrorMarkings
in interfaceValidationBuilder
-
removeErrorMarkings
- Specified by:
removeErrorMarkings
in interfaceValidationBuilder
-
clone
- Specified by:
clone
in interfaceValidationBuilder
- Overrides:
clone
in classObject
-