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(Page page)
Creates a new WikiDocument for a specific page.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
getContext()
Returns the wiki context for this document.
|
Page |
getPage()
Return the WikiPage for whom this WikiDocument exists.
|
java.lang.String |
getPageData()
Returns the wikimarkup used to render this document.
|
void |
setContext(Context ctx)
Set the WikiContext in which the WikiDocument is rendered.
|
void |
setPageData(java.lang.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(Page page)
page - The page to which this document refers to.public void setPageData(java.lang.String data)
data - The WikiMarkuppublic java.lang.String getPageData()
public Page getPage()
public void setContext(Context ctx)
ctx - A WikiContext.public Context getContext()
null if the associated wiki session
had previously been garbage-collected.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.