org.apache.cocoon.forms.validation
Class ValidationError
java.lang.Object
org.apache.cocoon.forms.validation.ValidationError
public class ValidationError
- extends Object
An object that holds a validation error message. The error message can
be a simple string or a piece of XML.
- Version:
- $Id: ValidationError.html 1304258 2012-03-23 10:09:27Z ilgrosso $
ValidationError
public ValidationError(String errorMessage,
boolean i18n)
- Parameters:
i18n
- should the errorMessage be interpreted as an i18n key?
ValidationError
public ValidationError(String errorMessageKey)
- See Also:
I18nMessage.I18nMessage(java.lang.String)
ValidationError
public ValidationError(String errorMessageKey,
String[] parameters)
- See Also:
I18nMessage.I18nMessage(java.lang.String, java.lang.String[])
ValidationError
public ValidationError(String errorMessageKey,
String[] parameters,
boolean[] keys)
- See Also:
I18nMessage.I18nMessage(java.lang.String, java.lang.String[], boolean[])
ValidationError
public ValidationError(XMLizable errorMessage)
- Parameters:
errorMessage
- the errormessages in the form of something that is "XMLizable",
i.e. can produce SAX events. It should however not produce start/endDocument calls,
only a piece of embeddable, stand-alone SAX events. Helpful implementations are
SaxBuffer
, I18nMessage
or StringMessage
.
generateSaxFragment
public void generateSaxFragment(ContentHandler contentHandler)
throws SAXException
- Generates SAX events for this ValidationError. In case of the constructors where
a String error message key was supplied, the necessary I18n tags will be generated.
- Throws:
SAXException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.