public class WikiDocument extends org.jdom2.Document
The document is not stored as metadata in the WikiPage because otherwise it could not be cached separately.
| Constructor and Description |
|---|
WikiDocument(WikiPage page)
Creates a new WikiDocument for a specific page.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, toStringpublic WikiDocument(WikiPage page)
page - The page to which this document refers to.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.Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.