com.uwyn.rife.site
Class AbstractValidationBuilder

java.lang.Object
  extended by com.uwyn.rife.site.AbstractValidationBuilder
All Implemented Interfaces:
ValidationBuilder, Cloneable
Direct Known Subclasses:
ValidationBuilderXhtml, ValidationBuilderXml

public abstract class AbstractValidationBuilder
extends Object
implements ValidationBuilder


Field Summary
 
Fields inherited from interface com.uwyn.rife.site.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
AbstractValidationBuilder()
           
 
Method Summary
 Object clone()
           
protected abstract  String formatLine(String content)
           
 Collection<String> generateErrorMarkings(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear, String prefix)
           
 Collection<String> generateValidationErrors(Template template, Collection<ValidationError> errors, Collection<String> onlySubjectsToClear, String prefix)
           
 void removeErrorMarkings(Template template, Collection<String> subjects, String prefix)
           
 void removeValidationErrors(Template template, Collection<String> subjects, String prefix)
           
 void setFallbackErrorArea(Template template, String message)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractValidationBuilder

public AbstractValidationBuilder()
Method Detail

setFallbackErrorArea

public void setFallbackErrorArea(Template template,
                                 String message)
Specified by:
setFallbackErrorArea in interface ValidationBuilder

generateValidationErrors

public Collection<String> generateValidationErrors(Template template,
                                                   Collection<ValidationError> errors,
                                                   Collection<String> onlySubjectsToClear,
                                                   String prefix)
Specified by:
generateValidationErrors in interface ValidationBuilder

formatLine

protected abstract String formatLine(String content)

generateErrorMarkings

public Collection<String> generateErrorMarkings(Template template,
                                                Collection<ValidationError> errors,
                                                Collection<String> onlySubjectsToClear,
                                                String prefix)
                                         throws ValidationBuilderException
Specified by:
generateErrorMarkings in interface ValidationBuilder
Throws:
ValidationBuilderException

removeValidationErrors

public void removeValidationErrors(Template template,
                                   Collection<String> subjects,
                                   String prefix)
Specified by:
removeValidationErrors in interface ValidationBuilder

removeErrorMarkings

public void removeErrorMarkings(Template template,
                                Collection<String> subjects,
                                String prefix)
Specified by:
removeErrorMarkings in interface ValidationBuilder

clone

public Object clone()
Specified by:
clone in interface ValidationBuilder
Overrides:
clone in class Object


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.