Class Comments.Comment

java.lang.Object
org.docx4j.wml.CTMarkup
org.docx4j.wml.CTTrackChange
org.docx4j.wml.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> content  
    protected java.lang.String initials  

    Fields inherited from class org.docx4j.wml.CTTrackChange

    author, date

    Fields inherited from class org.docx4j.wml.CTMarkup

    id
  • Constructor Summary

    Constructors
    Constructor Description
    Comment()  
  • Method Summary

    Modifier and Type Method Description
    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.
    java.util.List<java.lang.Object> getContent()
    Gets the value of the content property.
    java.util.List<java.lang.Object> getEGBlockLevelElts()
    Deprecated. 
    java.lang.String getInitials()
    Gets the value of the initials property.
    void setInitials​(java.lang.String value)
    Sets the value of the initials property.

    Methods inherited from class org.docx4j.wml.CTTrackChange

    getAuthor, getDate, setAuthor, setDate

    Methods inherited from class org.docx4j.wml.CTMarkup

    getId, getParent, setId, setParent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • content

      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 set method 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> RunIns P JAXBElement<CTPerm> JAXBElement<CTMoveBookmark> JAXBElement<RunTrackChange> ProofErr JAXBElement<CTTrackChange> JAXBElement<CTMoveFromRangeEnd> CommentRangeEnd JAXBElement<CTTrackChange> JAXBElement<CTMarkup> RunDel JAXBElement<CTMoveToRangeEnd> SdtBlock JAXBElement<CTOMathPara> JAXBElement<CTMoveBookmark> JAXBElement<RangePermissionStart> CommentRangeStart JAXBElement<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 is String
    • 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:
      afterUnmarshal in class CTTrackChange
      Parameters:
      parent - The parent object in the object tree.
      unmarshaller - The unmarshaller that generated the instance.