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,
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.WingExceptionpublic Meta setMeta() throws WingException
WingExceptionpublic Body setBody() throws WingException
WingExceptionpublic Options setOptions() throws WingException
WingExceptionpublic 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 attributesSAXExceptionWingExceptionpublic 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 attributesSAXExceptionWingExceptionpublic Attributes merge(Attributes attributes) throws SAXException, WingException
merge in interface WingMergeableElementSAXExceptionWingExceptionpublic void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, 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.SAXExceptionpublic void dispose()
dispose in interface WingElementdispose in class AbstractWingElementCopyright © 2014 DuraSpace. All Rights Reserved.