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<java.lang.Object>,IXWPFElement
public class DOCXP extends AbstractBodyElement implements IDOCXRPrHolder
Internal Use Only.Paragraph Definition.
Represents
w:pin xml.- Author:
- Jamson Chan
-
-
Constructor Summary
Constructors Constructor Description DOCXP(org.apache.poi.xwpf.usermodel.XWPFParagraph xwpfParagraph, AbstractBody parent)Create a new Paragraph by given XWPFParagraph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IDOCXVisitor visitor)Accepts a visitor.DOCXRcreateRun()Create a new Run under this Paragraph.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTPgetCT()Returns the CT object of current element.AbstractBodygetParent()Returns the parent element of current element.DOCXPPrgetPPr()Returns the ParagraphProperties of this Paragraph.DOCXPPrgetPPr(boolean create)Returns the ParagraphProperties of this Paragraph.java.util.List<DOCXR>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.voidsetPPr(DOCXPPr pPr)Sets the ParagraphProperties of this Paragraph.-
Methods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
-
-
-
Constructor Detail
-
DOCXP
public DOCXP(org.apache.poi.xwpf.usermodel.XWPFParagraph xwpfParagraph, AbstractBody parent)Create a new Paragraph by given XWPFParagraph.- Parameters:
xwpfParagraph- the XWPFParagraph object.
-
-
Method Detail
-
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
public java.lang.Object accept(IDOCXVisitor visitor)
Description copied from interface:IDOCXVisitableAccepts a visitor.- Specified by:
acceptin interfaceIDOCXVisitable<java.lang.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
public AbstractBody getParent()
Description copied from interface:IXWPFElementReturns the parent element of current element.- Specified by:
getParentin interfaceIXWPFElement
-
getPPr
public DOCXPPr getPPr()
Returns the ParagraphProperties of this Paragraph.Represents the following element tag in the schema:
w:pPr.- Returns:
- the ParagraphProperties of this Paragraph.
-
getPPr
public DOCXPPr getPPr(boolean create)
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
public void setPPr(DOCXPPr pPr)
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
public java.util.List<DOCXR> getRuns()
Returns the Runs under this Paragraph.Represents the following element tag in the schema:
w:r.- Returns:
- the Runs under this Paragraph.
-
createRun
public DOCXR createRun()
Create a new Run under this Paragraph.- Returns:
- the new Run.
-
-