This project has retired. For details please refer to its
Attic page .
I18nMessage (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.forms.util
Class I18nMessage
java.lang.Object
org.apache.cocoon.forms.util.I18nMessage
All Implemented Interfaces: XMLizable
public class I18nMessage extends Object implements XMLizable
A XMLizable implementation that will produce SAX events for the
I18nTransformer in its toSAX method, based on the information
given in the constructor.
This generates an autonomous SAX-blurb, i.e. all necessary namespace
declarations will be made, and no start/endDocument events will be generated.
Version:
$Id: I18nMessage.html 1304258 2012-03-23 10:09:27Z ilgrosso $
I18nMessage
public I18nMessage (String key)
Parameters: key
- a message key, to be translated by the I18nTransformer
I18nMessage
public I18nMessage (String key,
String catalogue)
Parameters: key
- a message key, to be translated by the I18nTransformercatalogue
- a named I18nTransformer catalogue to use
I18nMessage
public I18nMessage (String key,
String [] parameters)
Parameters: key
- a message key, to be translated by the I18nTransformerparameters
- parameters to be substituted in the errorMessage (will be
done by the I18nTransformer)
I18nMessage
public I18nMessage (String key,
String [] parameters,
String catalogue)
Parameters: key
- a message key, to be translated by the I18nTransformerparameters
- parameters to be substituted in the errorMessage (will be
done by the I18nTransformer)catalogue
- a named I18nTransformer catalogue to use
I18nMessage
public I18nMessage (String key,
String [] parameters,
boolean[] keys)
Parameters: key
- a message key, to be translated by the I18nTransformerparameters
- parameters to be substituted in the errorMessage (will be
done by the I18nTransformer)keys
- Each element in the keys array corresponds to a string in the parameters array
and indicates whether that parameter is in itself again a key.
I18nMessage
public I18nMessage (String key,
String [] parameters,
boolean[] keys,
String catalogue)
Parameters: key
- a message key, to be translated by the I18nTransformerparameters
- parameters to be substituted in the errorMessage (will be
done by the I18nTransformer)keys
- Each element in the keys array corresponds to a string in the parameters array
and indicates whether that parameter is in itself again a key.catalogue
- a named I18nTransformer catalogue to use
toSAX
public void toSAX (ContentHandler contentHandler)
throws SAXException
Specified by: toSAX
in interface XMLizable
Throws:
SAXException
equals
public boolean equals (Object obj)
Overrides: equals
in class Object
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.