|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdom2.Document org.apache.wiki.parser.WikiDocument
public class WikiDocument
Stores the DOM tree of a rendered WikiPage. This class extends the org.jdom.Document to provide some extra metadata specific to JSPWiki.
The document is not stored as metadata in the WikiPage because otherwise it could not be cached separately.
Field Summary |
---|
Fields inherited from class org.jdom2.Document |
---|
baseURI |
Constructor Summary | |
---|---|
WikiDocument(WikiPage page)
Creates a new WikiDocument for a specific page. |
Method Summary | |
---|---|
WikiContext |
getContext()
Returns the wiki context for this document. |
WikiPage |
getPage()
Return the WikiPage for whom this WikiDocument exists. |
String |
getPageData()
Returns the wikimarkup used to render this document. |
void |
setContext(WikiContext ctx)
Set the WikiContext in which the WikiDocument is rendered. |
void |
setPageData(String data)
Set the WikiMarkup for this document. |
Methods inherited from class org.jdom2.Document |
---|
addContent, addContent, addContent, addContent, canContainContent, clone, cloneContent, detachRootElement, equals, getBaseURI, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getDocType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParent, getProperty, getRootElement, hashCode, hasRootElement, indexOf, removeContent, removeContent, removeContent, removeContent, setBaseURI, setContent, setContent, setContent, setContent, setDocType, setProperty, setRootElement, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WikiDocument(WikiPage page)
page
- The page to which this document refers to.Method Detail |
---|
public void setPageData(String data)
data
- The WikiMarkuppublic String getPageData()
public WikiPage getPage()
public void setContext(WikiContext ctx)
ctx
- A WikiContext.public WikiContext getContext()
null
if the associated wiki session
had previously been garbage-collected.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |