public class ParagraphWrapper extends Object
| Constructor and Description |
|---|
ParagraphWrapper(org.docx4j.wml.P paragraph) |
| Modifier and Type | Method and Description |
|---|---|
org.docx4j.wml.P |
getParagraph() |
List<org.docx4j.wml.R> |
getRuns()
Returns the list of runs that are aggregated.
|
String |
getText()
Returns the aggregated text over all runs.
|
void |
recalculateRuns() |
void |
replace(String placeholder,
Object replacement)
Replaces the given placeholder String with the replacement object within the paragraph.
|
String |
toString() |
public void recalculateRuns()
public void replace(String placeholder, Object replacement)
placeholder - the placeholder to be replaced.replacement - the object to replace the placeholder String.public String getText()
public List<org.docx4j.wml.R> getRuns()
public org.docx4j.wml.P getParagraph()
Copyright © 2017. All rights reserved.