Class DOCXP

    • 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.Object accept​(IDOCXVisitor visitor)
      Accepts a visitor.
      DOCXR createRun()
      Create a new Run under this Paragraph.
      org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP getCT()
      Returns the CT object of current element.
      AbstractBody getParent()
      Returns the parent element of current element.
      DOCXPPr getPPr()
      Returns the ParagraphProperties of this Paragraph.
      DOCXPPr getPPr​(boolean create)
      Returns the ParagraphProperties of this Paragraph.
      java.util.List<DOCXR> getRuns()
      Returns the Runs under this Paragraph.
      org.apache.poi.xwpf.usermodel.XWPFParagraph getXWPF()
      Returns the XWPF object of current element.
      boolean isSetPPr()
      Returns whether the ParagraphProperties of this Paragraph is set.
      void setPPr​(DOCXPPr pPr)
      Sets the ParagraphProperties of this Paragraph.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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: ICTElement
        Returns the CT object of current element.
        Specified by:
        getCT in interface ICTElement
      • getXWPF

        public org.apache.poi.xwpf.usermodel.XWPFParagraph getXWPF()
        Description copied from interface: IXWPFElement
        Returns the XWPF object of current element.
        Specified by:
        getXWPF in interface IXWPFElement
      • 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.