Class P
- All Implemented Interfaces:
ContentAccessor,Child
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="pPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PPr" minOccurs="0"/>
<group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_PContent" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attGroup ref="{http://schemas.microsoft.com/office/word/2010/wordml}AG_Parids"/>
<attribute name="rsidRPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" />
<attribute name="rsidR" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" />
<attribute name="rsidDel" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" />
<attribute name="rsidP" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" />
<attribute name="rsidRDefault" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" />
</restriction>
</complexContent>
</complexType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJava class for anonymous complex type.static classJava class for anonymous complex type.static classHyperlink -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.Gets the value of the content property.Deprecated.Gets the value of the paraId property.Gets the parent object in the object tree representing the unmarshalled xml document.getPPr()Gets the value of the pPr property.Gets the value of the rsidDel property.getRsidP()Gets the value of the rsidP property.getRsidR()Gets the value of the rsidR property.Gets the value of the rsidRDefault property.Gets the value of the rsidRPr property.Gets the value of the textId property.voidreplaceElement(Object current, List insertions) voidSets the value of the paraId property.voidvoidSets the value of the pPr property.voidsetRsidDel(String value) Sets the value of the rsidDel property.voidSets the value of the rsidP property.voidSets the value of the rsidR property.voidsetRsidRDefault(String value) Sets the value of the rsidRDefault property.voidsetRsidRPr(String value) Sets the value of the rsidRPr property.voidSets the value of the textId property.toString()Deprecated.
-
Field Details
-
pPr
-
-
rsidRPr
-
rsidR
-
rsidDel
-
rsidP
-
rsidRDefault
-
paraId
-
textId
-
-
Constructor Details
-
P
public P()
-
-
Method Details
-
getPPr
Gets the value of the pPr property.- Returns:
- possible object is
PPr
-
setPPr
Sets the value of the pPr property.- Parameters:
value- allowed object isPPr
-
getContent
Gets the value of the content property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the content property.For example, to add a new item, do as follows:
getContent().add(newItem);Objects of the following type(s) are allowed in the list
JAXBElement<CTMarkup>RunInsJAXBElement<CTMarkup>JAXBElement<CTRel>JAXBElement<CTMoveBookmark>JAXBElement<CTMarkup>JAXBElement<RunTrackChange>JAXBElement<CTTrackChange>JAXBElement<CTTrackChange>JAXBElement<CTSimpleField>JAXBElement<RangePermissionStart>JAXBElement<RunTrackChange>JAXBElement<CTMoveToRangeEnd>JAXBElement<CTTrackChange>ProofErrCommentRangeEndJAXBElement<CTMoveBookmark>RRunDelJAXBElement<CTMarkupRange>JAXBElement<CTSmartTagRun>JAXBElement<CTOMathPara>JAXBElement<CTPerm>CommentRangeStartJAXBElement<CTMoveFromRangeEnd>JAXBElement<CTOMath>JAXBElement<CTCustomXmlRun>JAXBElement<CTTrackChange>JAXBElement<CTMarkup>JAXBElement<SdtRun>JAXBElement<P.Hyperlink>JAXBElement<CTBookmark>JAXBElement<P.Bdo>JAXBElement<P.Dir>- Specified by:
getContentin interfaceContentAccessor
-
getParagraphContent
Deprecated. -
getRsidRPr
Gets the value of the rsidRPr property.- Returns:
- possible object is
String
-
setRsidRPr
Sets the value of the rsidRPr property.- Parameters:
value- allowed object isString
-
getRsidR
Gets the value of the rsidR property.- Returns:
- possible object is
String
-
setRsidR
Sets the value of the rsidR property.- Parameters:
value- allowed object isString
-
getRsidDel
Gets the value of the rsidDel property.- Returns:
- possible object is
String
-
setRsidDel
Sets the value of the rsidDel property.- Parameters:
value- allowed object isString
-
getRsidP
Gets the value of the rsidP property.- Returns:
- possible object is
String
-
setRsidP
Sets the value of the rsidP property.- Parameters:
value- allowed object isString
-
getRsidRDefault
Gets the value of the rsidRDefault property.- Returns:
- possible object is
String
-
setRsidRDefault
Sets the value of the rsidRDefault property.- Parameters:
value- allowed object isString
-
getParaId
Gets the value of the paraId property. From [MS-DOCX], "an identifier for a paragraph that is unique within the document part (as specified by [ISO/IEC29500-1:2011] section 11.3), with the exception that it need not be unique across the choices or fallback of an Alternate Content block (as specified by [ISO/IEC29500-1:2011] section 17.17.3). Values MUST be greater than 0 and less than 0x80000000. Any element having this attribute MUST also have the textId attribute"- Returns:
- possible object is
String
-
setParaId
Sets the value of the paraId property.- Parameters:
value- allowed object isString
-
getTextId
Gets the value of the textId property. From [MS-DOCX], "a version identifier for a paragraph. Values MUST be greater than 0 and less than 0x80000000. Any element having this attribute MUST also have the paraId attribute. If two documents have the same docId, then if two paragraphs within the same respective document part (as specified by [ISO/IEC29500-1:2011] section 11.3) that have the same paraId and textId SHOULD contain identical text, although formatting could differ."- Returns:
- possible object is
String
-
setTextId
Sets the value of the textId property.- Parameters:
value- allowed object isString
-
getParent
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-
toString
Deprecated.Get the text content of all runs in the P. WARNING: this only gets ./w:r/w:t. That is incomplete. Try org.docx4j.TextUtils.extractText instead. -
replaceElement
-