Class CTComment

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

public class CTComment
extends java.lang.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 Summary

    Fields
    Modifier and Type Field Description
    protected long authorId  
    protected CTCommentPr commentPr  
    protected java.lang.String guid  
    protected java.lang.String ref  
    protected java.lang.Long shapeId  
    protected CTRst text  
  • Constructor Summary

    Constructors
    Constructor Description
    CTComment()  
  • 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.
    long getAuthorId()
    Gets the value of the authorId property.
    CTCommentPr getCommentPr()
    Gets the value of the commentPr property.
    java.lang.String getGuid()
    Gets the value of the guid property.
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    java.lang.String getRef()
    Gets the value of the ref property.
    java.lang.Long getShapeId()
    Gets the value of the shapeId property.
    CTRst getText()
    Gets the value of the text property.
    void setAuthorId​(long value)
    Sets the value of the authorId property.
    void setCommentPr​(CTCommentPr value)
    Sets the value of the commentPr property.
    void setGuid​(java.lang.String value)
    Sets the value of the guid property.
    void setParent​(java.lang.Object parent)  
    void setRef​(java.lang.String value)
    Sets the value of the ref property.
    void setShapeId​(java.lang.Long value)
    Sets the value of the shapeId property.
    void setText​(CTRst value)
    Sets the value of the text property.

    Methods inherited from class java.lang.Object

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

    • text

      protected CTRst text
    • commentPr

      protected CTCommentPr commentPr
    • ref

      protected java.lang.String ref
    • authorId

      protected long authorId
    • guid

      protected java.lang.String guid
    • shapeId

      protected java.lang.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 java.lang.String getRef()
      Gets the value of the ref property.
      Returns:
      possible object is String
    • setRef

      public void setRef​(java.lang.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 java.lang.String getGuid()
      Gets the value of the guid property.
      Returns:
      possible object is String
    • setGuid

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

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

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

      public java.lang.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​(java.lang.Object parent)
      Specified by:
      setParent in interface Child
    • 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.
      Parameters:
      parent - The parent object in the object tree.
      unmarshaller - The unmarshaller that generated the instance.