public class WingDocument extends AbstractWingElement implements WingMergeableElement
| Modifier and Type | Field and Description |
|---|---|
static String |
A_VERSION
The name of the version attribute
|
static String |
DOCUMENT_VERSION
The document version Wing prefer
|
static String |
E_DOCUMENT
The name of the document element
|
context| Constructor and Description |
|---|
WingDocument(WingContext context)
Generate a new wing document element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
dispose
|
Attributes |
merge(Attributes attributes)
Notify the element that this document is being merged.
|
WingMergeableElement |
mergeChild(String namespace,
String localName,
String qName,
Attributes attributes)
Merge the given event into this document.
|
boolean |
mergeEqual(String namespace,
String localName,
String qName,
Attributes attributes)
Is this document the same as the given SAX event.
|
Body |
setBody()
Set the body element containing the structural elements associated with
this document.
|
Meta |
setMeta()
Set the meta element of this Document containing all the metadata
associated with this document.
|
Options |
setOptions()
Set the Options element containing the structural navigational structure
associated with this document.
|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this document to SAX events.
|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_DOCUMENT
public static final String A_VERSION
public static final String DOCUMENT_VERSION
public WingDocument(WingContext context) throws WingException
context - (Required) The context this element is contained in.WingException - passed through.public Meta setMeta() throws WingException
WingException - never.public Body setBody() throws WingException
WingException - never.public Options setOptions() throws WingException
WingException - never.public boolean mergeEqual(String namespace, String localName, String qName, Attributes attributes) throws SAXException, WingException
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 attributesSAXException - whenever.WingException - whenever.public WingMergeableElement mergeChild(String namespace, String localName, String qName, Attributes attributes) throws 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 attributesSAXException - whenever.WingException - whenever.public Attributes merge(Attributes attributes) throws SAXException, WingException
merge in interface WingMergeableElementattributes - attributes.SAXException - whenever.WingException - whenever.public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, org.xml.sax.helpers.NamespaceSupport namespaces) throws 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.SAXException - on error.public void dispose()
dispose in interface WingElementdispose in class AbstractWingElementCopyright © 2016 DuraSpace. All rights reserved.