Class Comments.Comment
- All Implemented Interfaces:
Child
- Enclosing class:
- Comments
public static class Comments.Comment extends CTTrackChange
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TrackChange">
<sequence>
<group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_BlockLevelElts" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="initials" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
</extension>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.Object>contentprotected java.lang.StringinitialsFields inherited from class org.docx4j.wml.CTTrackChange
author, date -
Constructor Summary
Constructors Constructor Description Comment() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.java.util.List<java.lang.Object>getContent()Gets the value of the content property.java.util.List<java.lang.Object>getEGBlockLevelElts()Deprecated.java.lang.StringgetInitials()Gets the value of the initials property.voidsetInitials(java.lang.String value)Sets the value of the initials property.Methods inherited from class org.docx4j.wml.CTTrackChange
getAuthor, getDate, setAuthor, setDateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
protected java.util.List<java.lang.Object> content
-
initials
protected java.lang.String initials
-
-
Constructor Details
-
Comment
public Comment()
-
-
Method Details
-
getContent
public java.util.List<java.lang.Object> 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<CTMarkupRange>JAXBElement<CTMarkup>JAXBElement<CTTrackChange>JAXBElement<CTTrackChange>RunInsPJAXBElement<CTPerm>JAXBElement<CTMoveBookmark>JAXBElement<RunTrackChange>ProofErrJAXBElement<CTTrackChange>JAXBElement<CTMoveFromRangeEnd>CommentRangeEndJAXBElement<CTTrackChange>JAXBElement<CTMarkup>RunDelJAXBElement<CTMoveToRangeEnd>SdtBlockJAXBElement<CTOMathPara>JAXBElement<CTMoveBookmark>JAXBElement<RangePermissionStart>CommentRangeStartJAXBElement<CTBookmark>JAXBElement<CTOMath>JAXBElement<CTCustomXmlBlock>JAXBElement<Tbl>JAXBElement<CTMarkup>JAXBElement<RunTrackChange>JAXBElement<CTMarkup>JAXBElement<CTAltChunk> -
getEGBlockLevelElts
public java.util.List<java.lang.Object> getEGBlockLevelElts()Deprecated. -
getInitials
public java.lang.String getInitials()Gets the value of the initials property.- Returns:
- possible object is
String
-
setInitials
public void setInitials(java.lang.String value)Sets the value of the initials property.- Parameters:
value- allowed object isString
-
afterUnmarshal
public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Overrides:
afterUnmarshalin classCTTrackChange- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-