public class Options extends AbstractWingElement implements WingMergeableElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
E_OPTIONS
The name of the options element
|
context| Modifier | Constructor and Description |
|---|---|
protected |
Options(WingContext context)
Generate a new Options framework element.
|
| Modifier and Type | Method and Description |
|---|---|
List |
addList(java.lang.String name)
Add a new sublist to this item.
|
List |
addList(java.lang.String name,
java.lang.String type,
java.lang.String rend)
Add a new sublist to this item.
|
void |
dispose()
dispose
|
org.xml.sax.Attributes |
merge(org.xml.sax.Attributes attributes)
Inform the options element that it is being merged with an existing
options element.
|
WingMergeableElement |
mergeChild(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Find the sublist that this SAX event represents.
|
boolean |
mergeEqual(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Return true if this SAX Event an options element?
|
void |
toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events.
|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final java.lang.String E_OPTIONS
protected Options(WingContext context) throws WingException
context - (Required) The context this element is contained in.WingExceptionpublic List addList(java.lang.String name, java.lang.String type, java.lang.String rend) throws WingException
name - (Required) a local identifier used to differentiate the
element from its siblings.type - (May be null) determines the list type. If this is blank the
list type is infered from the context and use.rend - (May be null) a rendering hint used to override the default
display of the element.WingExceptionpublic List addList(java.lang.String name) throws WingException
name - (Required) a local identifier used to differentiate the
element from its siblings.WingExceptionpublic boolean mergeEqual(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
mergeEqual in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this elementqName - The qualified name for this elementattributes - The element's attributespublic WingMergeableElement mergeChild(java.lang.String namespace, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException, WingException
mergeChild in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this element *qName - The qualified name for this elementattributes - The element's attributesorg.xml.sax.SAXExceptionWingExceptionpublic org.xml.sax.Attributes merge(org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException,
WingException
merge in interface WingMergeableElementorg.xml.sax.SAXExceptionWingExceptionpublic void toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
throws org.xml.sax.SAXException
toSAX in interface WingElementcontentHandler - (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.org.xml.sax.SAXExceptionpublic void dispose()
dispose in interface WingElementdispose in class AbstractWingElementCopyright © 2014 DuraSpace. All Rights Reserved.