Package com.independentsoft.office.word

# Class CommentReference

java.lang.Object
com.independentsoft.office.word.CommentReference

All Implemented Interfaces:
  `IContentElement`, `IRunContent`

public class CommentReference extends Object implements IRunContent
The Class CommentReference.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CommentReference()`
  Instantiates a new comment reference.
  `CommentReference​(long id)`
  Instantiates a new comment reference.
  `CommentReference​(InternalXMLStreamReader reader)`
  Instantiates a new comment reference.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CommentReference`
  `clone()`
  `List<IContentElement>`
  `getContentElements()`
  `long`
  `getID()`
  Gets the id.
  `void`
  `setID​(long id)`
  Sets the id.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### CommentReference

    public CommentReference()
    Instantiates a new comment reference.

  - ### CommentReference

    public CommentReference​(long id)
    Instantiates a new comment reference.
    Parameters:
      `id` - the id

  - ### CommentReference

    public CommentReference​(InternalXMLStreamReader reader) throws XMLStreamException
    Instantiates a new comment reference.
    Parameters:
      `reader` - the reader
    Throws:
      `XMLStreamException` - the xML stream exception

- ## Method Details

  - ### getContentElements

    public List<IContentElement> getContentElements()
    Specified by:
      `getContentElements` in interface `IContentElement`

  - ### clone

    public CommentReference clone()
    Specified by:
      `clone` in interface `IContentElement`
    Specified by:
      `clone` in interface `IRunContent`
    Overrides:
      `clone` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getID

    public long getID()
    Gets the id.
    Returns:
      the id

  - ### setID

    public void setID​(long id)
    Sets the id.
    Parameters:
      `id` - the new id