Class SequenceReference

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

public class SequenceReference extends Object implements IParagraphContent
Represents a field that represents a reference.
  • Constructor Details

    • SequenceReference

      public SequenceReference()
      Initializes a new instance of the SequenceReference class.
  • 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 SequenceReference 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 SequenceReference object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getName

      public String getName()
      Gets the name that is used as a reference.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the name that is used as a reference.
      Parameters:
      name - the new name
    • getFormat

      public SequenceReferenceFormat getFormat()
      Specifies what information about a reference is displayed.
      Returns:
      the format
    • setFormat

      public void setFormat(SequenceReferenceFormat format)
      Specifies what information about a reference is displayed.
      Parameters:
      format - the new format
    • getValue

      public String getValue()
      Gets the value.
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Sets the value.
      Parameters:
      value - the new value