Class Space

java.lang.Object
com.independentsoft.office.odf.Space
All Implemented Interfaces:
IContentElement, IParagraphContent

public class Space extends Object implements IParagraphContent
Represents the [UNICODE] character SPACE (U+0020).
  • Constructor Details

    • Space

      public Space()
      Initializes a new instance of the Space class.
    • Space

      public Space(int count)
      Initializes a new instance of the Space class.
      Parameters:
      count - the count
  • Method Details

    • 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 Space clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in interface IContentElement
      Specified by:
      clone in interface IParagraphContent
      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 Space object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getCount

      public int getCount()
      Gets the number of SPACE (U+0020) characters.
      Returns:
      the count
    • setCount

      public void setCount(int count)
      Sets the number of SPACE (U+0020) characters.
      Parameters:
      count - the new count