com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class DocComment

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<DocComment>


    public final class DocComment
    extends Object
    implements com.aspose.ms.System.IEquatable<DocComment>

    Represents comment in DocFormat.

    • Constructor Detail

      • DocComment

        public DocComment()

        Initializes a new instance of the DocComment class.

      • DocComment

        public DocComment(String author,
                  String initials,
                  Date createdDate)

        Initializes a new instance of the DocComment class.

        Parameters:
        author - Comment's author.
        initials - Comment's initials.
        createdDate - Comment's created date.
      • DocComment

        public DocComment(int id,
                  String author,
                  String initials,
                  String text,
                  Date createdDate)

        Initializes a new instance of the DocComment class.

        Parameters:
        id - Comment's id. Use this identifier for updating/delete specific comment.
        author - Comment's author.
        initials - Comment's initials.
        text - Comment's text.
        createdDate - Comment's created date.
    • Method Detail

      • getId

        public final int getId()

        Gets comment's id. Use this identifier to update or remove comment.

        Returns:
        The identifier.
      • setId

        public final void setId(int value)

        Sets comment's id. Use this identifier to update or remove comment.

        Parameters:
        value - The identifier.
      • getAuthor

        public final String getAuthor()

        Gets the author.

        Returns:
        The author.
      • setAuthor

        public final void setAuthor(String value)

        Sets the author.

        Parameters:
        value - The author.
      • getInitials

        public final String getInitials()

        Gets author's initials.

        Returns:
        The initials of the author.
      • setInitials

        public final void setInitials(String value)

        Sets author's initials.

        Parameters:
        value - The initials of the author.
      • getText

        public final String getText()

        Gets or comment's text.

        Returns:
        The text.
      • setText

        public final void setText(String value)

        Gets or comment's text.

      • getCreatedDate

        public final Date getCreatedDate()

        Gets comment's created date.

        Returns:
        The created date.
      • setCreatedDate

        public final void setCreatedDate(Date value)

        Sets comment's created date.

        Parameters:
        value - The created date.
      • equals

        public final boolean equals(DocComment other)

        Indicates whether the current object is equal to another object of the same type.

        Parameters:
        other - An object to compare with this object.
        Returns:
        true if the current object is equal to the other parameter; otherwise, false.
      • equals

        public boolean equals(Object obj)

        Determines whether the specified System.Object is equal to this instance.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<DocComment>
        Overrides:
        equals in class Object
        Parameters:
        obj - The System.Object to compare with this instance.
        Returns:
        true if the specified System.Object is equal to this instance; otherwise, false.
      • hashCode

        public int hashCode()

        Returns a hash code for this instance.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.