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<Object>,IXWPFElement
Internal Use Only.
Run Definition.
Represents w:r in xml.
- Author:
- Jamson Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(IDOCXVisitor visitor) Accepts a visitor.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRgetCT()Returns the CT object of current element.Returns the parent element of current element.getRPr()Returns the run properties.getRPr(boolean create) Returns the run properties.getText()Returns the text.getText(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.voidSets the run properties.voidSets the text.Methods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
Constructor Details
-
DOCXR
Create a new Run by given XWPFRun.- Parameters:
xwpfRun- the XWPFRun object.
-
-
Method Details
-
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
Description copied from interface:IDOCXVisitableAccepts a visitor.- Specified by:
acceptin interfaceIDOCXVisitable<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
Description copied from interface:IXWPFElementReturns the parent element of current element.- Specified by:
getParentin interfaceIXWPFElement
-
getRPr
Returns the run properties.Represents the following element tag in the schema:
w:rPr.- Returns:
- the run properties.
-
getRPr
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
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
Returns the text.Represents the following element tag in the schema:
w:t.- Returns:
- the text.
-
getText
Returns the text.Represents the following element tag in the schema:
w:t.- Parameters:
index- the index of the text.- Returns:
- the text.
-
setText
Sets the text.Represents the following element tag in the schema:
w:t.- Parameters:
text- the text.
-