|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.wing.element.AbstractWingElement
org.dspace.app.xmlui.wing.element.Data
public class Data
This class represents data, by data we mean the translated and untranslated characters in between XML elements. When data needs to be translated it is enclosed inside the cocoon i18n schema while untranslated data is enclosed inside nothing.
| Field Summary | |
|---|---|
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 |
| Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
context |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
Translate this element into SAX |
| Methods inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
dispose, endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
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 data
WingException
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| Method Detail |
|---|
public 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.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||