Package io.keikai.doc.io.schema.docx
Class DOCXP
java.lang.Object
io.keikai.doc.io.schema.docx.AbstractVisitable
io.keikai.doc.io.schema.docx.AbstractBodyElement
io.keikai.doc.io.schema.docx.DOCXP
- All Implemented Interfaces:
ICTElement,IDOCXRPrHolder,IDOCXVisitable<Object>,IXWPFElement
Internal Use Only.
Paragraph Definition.
Represents w:p in xml.
- Author:
- Jamson Chan
-
Constructor Summary
ConstructorsConstructorDescriptionDOCXP(org.apache.poi.xwpf.usermodel.XWPFParagraph xwpfParagraph, AbstractBody parent) Create a new Paragraph by given XWPFParagraph. -
Method Summary
Modifier and TypeMethodDescriptionaccept(IDOCXVisitor visitor) Accepts a visitor.Create a new Run under this Paragraph.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPgetCT()Returns the CT object of current element.Returns the parent element of current element.getPPr()Returns the ParagraphProperties of this Paragraph.getPPr(boolean create) Returns the ParagraphProperties of this Paragraph.getRuns()Returns the Runs under this Paragraph.org.apache.poi.xwpf.usermodel.XWPFParagraphgetXWPF()Returns the XWPF object of current element.booleanisSetPPr()Returns whether the ParagraphProperties of this Paragraph is set.voidSets the ParagraphProperties of this Paragraph.Methods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
Constructor Details
-
DOCXP
Create a new Paragraph by given XWPFParagraph.- Parameters:
xwpfParagraph- the XWPFParagraph object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP getCT()Description copied from interface:ICTElementReturns the CT object of current element.- Specified by:
getCTin interfaceICTElement
-
accept
Description copied from interface:IDOCXVisitableAccepts a visitor.- Specified by:
acceptin interfaceIDOCXVisitable<Object>
-
getXWPF
public org.apache.poi.xwpf.usermodel.XWPFParagraph getXWPF()Description copied from interface:IXWPFElementReturns the XWPF object of current element.- Specified by:
getXWPFin interfaceIXWPFElement
-
getParent
Description copied from interface:IXWPFElementReturns the parent element of current element.- Specified by:
getParentin interfaceIXWPFElement
-
getPPr
Returns the ParagraphProperties of this Paragraph.Represents the following element tag in the schema:
w:pPr.- Returns:
- the ParagraphProperties of this Paragraph.
-
getPPr
Returns the ParagraphProperties of this Paragraph.Represents the following element tag in the schema:
w:pPr.- Parameters:
create- whether to create a new ParagraphProperties if it doesn't exist.- Returns:
- the ParagraphProperties of this Paragraph.
-
setPPr
Sets the ParagraphProperties of this Paragraph.Represents the following element tag in the schema:
w:pPr.- Parameters:
pPr- the ParagraphProperties to set.
-
isSetPPr
public boolean isSetPPr()Returns whether the ParagraphProperties of this Paragraph is set.- Returns:
- whether the ParagraphProperties of this Paragraph is set.
-
getRuns
Returns the Runs under this Paragraph.Represents the following element tag in the schema:
w:r.- Returns:
- the Runs under this Paragraph.
-
createRun
Create a new Run under this Paragraph.- Returns:
- the new Run.
-