Class DOCXR

    • Constructor Summary

      Constructors 
      Constructor Description
      DOCXR​(org.apache.poi.xwpf.usermodel.XWPFRun xwpfRun, DOCXP parent)
      Create a new Run by given XWPFRun.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object accept​(IDOCXVisitor visitor)
      Accepts a visitor.
      org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR getCT()
      Returns the CT object of current element.
      DOCXP getParent()
      Returns the parent element of current element.
      DOCXRPr getRPr()
      Returns the run properties.
      DOCXRPr getRPr​(boolean create)
      Returns the run properties.
      java.lang.String getText()
      Returns the text.
      java.lang.String getText​(int index)
      Returns the text.
      org.apache.poi.xwpf.usermodel.XWPFRun getXWPF()
      Returns the XWPF object of current element.
      boolean isSetRPr()
      Returns whether the run properties is set.
      void setRPr​(DOCXRPr rPr)
      Sets the run properties.
      void setText​(java.lang.String text)
      Sets the text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DOCXR

        public DOCXR​(org.apache.poi.xwpf.usermodel.XWPFRun xwpfRun,
                     DOCXP parent)
        Create a new Run by given XWPFRun.
        Parameters:
        xwpfRun - the XWPFRun object.
    • Method Detail

      • getCT

        public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR 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.XWPFRun getXWPF()
        Description copied from interface: IXWPFElement
        Returns the XWPF object of current element.
        Specified by:
        getXWPF in interface IXWPFElement
      • getRPr

        public DOCXRPr getRPr()
        Returns the run properties.

        Represents the following element tag in the schema: w:rPr.

        Returns:
        the run properties.
      • getRPr

        public DOCXRPr getRPr​(boolean create)
        Returns the run properties.

        Represents the following element tag in the schema: w:rPr.

        Parameters:
        create - whether to create it if it does not exist.
        Returns:
        the run properties.
      • setRPr

        public void setRPr​(DOCXRPr rPr)
        Sets the run properties.

        Represents the following element tag in the schema: w:rPr.

        Parameters:
        rPr - the run properties.
      • isSetRPr

        public boolean isSetRPr()
        Returns whether the run properties is set.

        Represents the following element tag in the schema: w:rPr.

        Returns:
        whether the run properties is set.
      • getText

        public java.lang.String getText()
        Returns the text.

        Represents the following element tag in the schema: w:t.

        Returns:
        the text.
      • getText

        public java.lang.String getText​(int index)
        Returns the text.

        Represents the following element tag in the schema: w:t.

        Parameters:
        index - the index of the text.
        Returns:
        the text.
      • setText

        public void setText​(java.lang.String text)
        Sets the text.

        Represents the following element tag in the schema: w:t.

        Parameters:
        text - the text.