This project has retired. For details please refer to its
Attic page .
ValidationError (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.woody.validation
Class ValidationError
java.lang.Object
org.apache.cocoon.woody.validation.ValidationError
Direct Known Subclasses: 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:
CVS $Id: ValidationError.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
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
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.