public class Data extends AbstractWingElement
| 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,
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
public 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 dataWingExceptionprotected 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.WingExceptionpublic void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, 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.SAXExceptionCopyright © 2014 DuraSpace. All Rights Reserved.