Class CTComment

java.lang.Object
org.xlsx4j.sml.CTComment
All Implemented Interfaces:
Child

public class CTComment extends Object implements Child

Java class for CT_Comment complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_Comment">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="text" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Rst"/>
         <element name="commentPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CommentPr" minOccurs="0"/>
       </sequence>
       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
       <attribute name="authorId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="guid" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
       <attribute name="shapeId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • text

      protected CTRst text
    • commentPr

      protected CTCommentPr commentPr
    • ref

      protected String ref
    • authorId

      protected long authorId
    • guid

      protected String guid
    • shapeId

      protected Long shapeId
  • Constructor Details

    • CTComment

      public CTComment()
  • Method Details

    • getText

      public CTRst getText()
      Gets the value of the text property.
      Returns:
      possible object is CTRst
    • setText

      public void setText(CTRst value)
      Sets the value of the text property.
      Parameters:
      value - allowed object is CTRst
    • getCommentPr

      public CTCommentPr getCommentPr()
      Gets the value of the commentPr property.
      Returns:
      possible object is CTCommentPr
    • setCommentPr

      public void setCommentPr(CTCommentPr value)
      Sets the value of the commentPr property.
      Parameters:
      value - allowed object is CTCommentPr
    • getRef

      public String getRef()
      Gets the value of the ref property.
      Returns:
      possible object is String
    • setRef

      public void setRef(String value)
      Sets the value of the ref property.
      Parameters:
      value - allowed object is String
    • getAuthorId

      public long getAuthorId()
      Gets the value of the authorId property.
    • setAuthorId

      public void setAuthorId(long value)
      Sets the value of the authorId property.
    • getGuid

      public String getGuid()
      Gets the value of the guid property.
      Returns:
      possible object is String
    • setGuid

      public void setGuid(String value)
      Sets the value of the guid property.
      Parameters:
      value - allowed object is String
    • getShapeId

      public Long getShapeId()
      Gets the value of the shapeId property.
      Returns:
      possible object is Long
    • setShapeId

      public void setShapeId(Long value)
      Sets the value of the shapeId property.
      Parameters:
      value - allowed object is Long
    • getParent

      public Object getParent()
      Gets the parent object in the object tree representing the unmarshalled xml document.
      Specified by:
      getParent in interface Child
      Returns:
      The parent object.
    • setParent

      public void setParent(Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent)
      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.