public class Data extends AbstractWingElement
When data needs to be translated it is enclosed inside the cocoon i18n schema while untranslated data is enclosed inside nothing.
| Modifier and Type | Field and Description |
|---|---|
static String |
A_CATALOGUE
The name of the catalogue attribute (used inside text or i18n message)
|
static String |
A_TYPE
The name of the type attribute (used inside params)
|
static String |
A_VALUE
The name of the value attribute (used inside params)
|
static String |
E_PARAM
The name of the
param element |
static String |
E_TEXT
The name of the text element
|
static String |
E_TRANSLATE
The name of the translate element
|
context| Modifier | Constructor and Description |
|---|---|
protected |
Data(WingContext context,
Message message)
Construct a new data element using translated content.
|
protected |
Data(WingContext context,
String characters)
Construct a new data element with untranslated content.
|
| Modifier and Type | Method and Description |
|---|---|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this element into SAX
|
dispose, endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_TEXT
public static final String E_TRANSLATE
public static final String E_PARAM
param elementpublic static final String A_CATALOGUE
public static final String A_TYPE
public static final String A_VALUE
protected Data(WingContext context, Message message) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.message - (Required) translatable dataWingException - passed through.protected Data(WingContext context, String characters) throws WingException
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.characters - (Required) Untranslated character data.WingException - passed through.public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, org.xml.sax.helpers.NamespaceSupport namespaces) throws SAXException
contentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical
events (such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.SAXException - passed through.Copyright © 2016 DuraSpace. All rights reserved.