Class Deletion

java.lang.Object
com.independentsoft.office.odf.Deletion
All Implemented Interfaces:
IChangedRegionContent, IContentElement

public class Deletion extends Object implements IChangedRegionContent
Represents information that identifies the person responsible for a deletion and the date of that deletion.This information may also contain one or more objects which contains a comment on the deletion.
  • Constructor Details

    • Deletion

      public Deletion()
      Initializes a new instance of the Deletion class.
  • Method Details

    • add

      public void add(Change change)
      Adds a Change object to the content.
      Parameters:
      change - the change
    • add

      public void add(ChangeEnd changeEnd)
      Adds a ChangeEnd object to the content.
      Parameters:
      changeEnd - the change end
    • add

      public void add(ChangeStart changeStart)
      Adds a ChangeStart object to the content.
      Parameters:
      changeStart - the change start
    • add

      public void add(Shape shape)
      Adds a Shape object to the content.
      Parameters:
      shape - the shape
    • add

      public void add(IndexOfIllustrations index)
      Adds an IndexOfIllustrations object to the content.
      Parameters:
      index - the index
    • add

      public void add(Heading heading)
      Adds a Heading object to the content.
      Parameters:
      heading - the heading
    • add

      public void add(List list)
      Adds a List object to the content.
      Parameters:
      list - the list
    • add

      public void add(Paragraph paragraph)
      Adds a Paragraph object to the content.
      Parameters:
      paragraph - the paragraph
    • add

      public void add(Section section)
      Adds a Section object to the content.
      Parameters:
      section - the section
    • add

      public void add(Table table)
      Adds a Table object to the content.
      Parameters:
      table - the table
    • add

      public void add(TableOfContents toc)
      Adds a TableOfContents object to the content.
      Parameters:
      toc - the toc
    • add

      public void add(ITextContent textContent)
      Adds an ITextContent object to the content.
      Parameters:
      textContent - the text content
    • getContentElements

      public List<IContentElement> getContentElements()
      Returns all content elements.
      Specified by:
      getContentElements in interface IContentElement
      Returns:
      A collection of content elements.
    • getParent

      public IContentElement getParent()
      Returns the parent content element.
      Specified by:
      getParent in interface IContentElement
      Returns:
      the parent
    • setParent

      public void setParent(IContentElement parent)
      Sets the parent content element.
      Specified by:
      setParent in interface IContentElement
      Parameters:
      parent - the new parent
    • clone

      public Deletion clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in interface IChangedRegionContent
      Specified by:
      clone in interface IContentElement
      Overrides:
      clone in class Object
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current Deletion object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getContent

      public List<ITextContent> getContent()
      Contains a collection of ITextContent objects.
      Returns:
      the content
    • getChangeInfo

      public ChangeInfo getChangeInfo()
      Specifies who made a change and when. It may also contain a comment on the change.
      Returns:
      the change info
    • setChangeInfo

      public void setChangeInfo(ChangeInfo changeInfo)
      Specifies who made a change and when. It may also contain a comment on the change.
      Parameters:
      changeInfo - the new change info