Package io.keikai.doc.io.schema.docx
Class DOCXR
- java.lang.Object
-
- io.keikai.doc.io.schema.docx.AbstractVisitable
-
- io.keikai.doc.io.schema.docx.DOCXR
-
- All Implemented Interfaces:
ICTElement,IDOCXRPrHolder,IDOCXVisitable<java.lang.Object>,IXWPFElement
public class DOCXR extends AbstractVisitable implements IDOCXRPrHolder
Internal Use Only.Run Definition.
Represents
w:rin xml.- Author:
- Jamson Chan
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(IDOCXVisitor visitor)Accepts a visitor.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRgetCT()Returns the CT object of current element.DOCXPgetParent()Returns the parent element of current element.DOCXRPrgetRPr()Returns the run properties.DOCXRPrgetRPr(boolean create)Returns the run properties.java.lang.StringgetText()Returns the text.java.lang.StringgetText(int index)Returns the text.org.apache.poi.xwpf.usermodel.XWPFRungetXWPF()Returns the XWPF object of current element.booleanisSetRPr()Returns whether the run properties is set.voidsetRPr(DOCXRPr rPr)Sets the run properties.voidsetText(java.lang.String text)Sets the text.-
Methods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
-
-
-
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: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.XWPFRun getXWPF()
Description copied from interface:IXWPFElementReturns the XWPF object of current element.- Specified by:
getXWPFin interfaceIXWPFElement
-
getParent
public DOCXP getParent()
Description copied from interface:IXWPFElementReturns the parent element of current element.- Specified by:
getParentin interfaceIXWPFElement
-
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.
-
-