public class HeadingNameNamingCriterion extends Object implements NamingCriterion
NamingCriterion
based on the opening heading (if present) of the document.INDEX_SEPERATOR
Constructor and Description |
---|
HeadingNameNamingCriterion(String baseDocumentName,
DocumentAccessBridge docBridge,
org.xwiki.rendering.renderer.BlockRenderer plainSyntaxRenderer,
boolean prependBasePageName)
Constructs a new
HeadingNameNamingCriterion . |
Modifier and Type | Method and Description |
---|---|
String |
getDocumentName(org.xwiki.rendering.block.XDOM newDoc)
Generates a suitable name for the new document represented by 'newDoc' which is a result of the splitting
operation.
|
public HeadingNameNamingCriterion(String baseDocumentName, DocumentAccessBridge docBridge, org.xwiki.rendering.renderer.BlockRenderer plainSyntaxRenderer, boolean prependBasePageName)
HeadingNameNamingCriterion
.baseDocumentName
- name of the document that is being split.docBridge
- DocumentAccessBridge
used to lookup for documents.plainSyntaxRenderer
- the renderer to convert to plain textprependBasePageName
- a flag indicating if each generated page name should be prepended with base page name.public String getDocumentName(org.xwiki.rendering.block.XDOM newDoc)
NamingCriterion
getDocumentName
in interface NamingCriterion
newDoc
- the XDOM
representing the newly split document.Copyright © 2004–2021 XWiki. All rights reserved.