public class Option extends TextContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
A_RETURN_VALUE
The name of the return value attribute
|
static String |
E_OPTION
The name of the value element
|
context| Modifier | Constructor and Description |
|---|---|
protected |
Option(WingContext context,
String returnValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events.
|
addContent, addContent, addContentendElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_OPTION
public static final String A_RETURN_VALUE
protected Option(WingContext context, String returnValue) throws WingException
context - (Required) The context this element is contained inreturnValue - (may be null) The options return value.WingException - passed through.public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, org.xml.sax.helpers.NamespaceSupport namespaces) throws SAXException
toSAX in interface WingElementtoSAX in class ContainercontentHandler - (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.