|
||||||||||
| 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.WingDocument
public class WingDocument
A class representing a WingDocument. Documents contain three elements and they are all mandatory: meta, body, and options. Because they are all mandatory they are created at construction time. Note: We called the class "WingDocument" instead of just plain old "Document" so that it won't conflict with all the other documents out there like DOM's document.
| Field Summary | |
|---|---|
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 |
| Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
context |
| Constructor Summary | |
|---|---|
WingDocument(WingContext context)
Generate a new wing document element. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
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_DOCUMENT
public static final String A_VERSION
public static final String DOCUMENT_VERSION
| Constructor Detail |
|---|
public WingDocument(WingContext context)
throws WingException
context - (Required) The context this element is contained in.
WingException| Method Detail |
|---|
public Meta setMeta()
throws WingException
WingException
public Body setBody()
throws WingException
WingException
public Options setOptions()
throws WingException
WingException
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 attributes
SAXException
WingException
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 attributes
SAXException
WingException
public Attributes merge(Attributes attributes)
throws SAXException,
WingException
merge in interface WingMergeableElementSAXException
WingException
public 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 AbstractWingElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||