java.lang.Object
com.independentsoft.office.word.headerFooter.Header

public class Header extends Object
The Class Header.
  • Constructor Details

    • Header

      public Header()
      Instantiates a new header.
    • Header

      public Header(byte[] buffer, Relationship relationship) throws XMLStreamException
      Instantiates a new header.
      Parameters:
      buffer - the buffer
      relationship - the relationship
      Throws:
      XMLStreamException - the xML stream exception
  • Method Details

    • add

      public void add(Paragraph paragraph)
      Adds the.
      Parameters:
      paragraph - the paragraph
    • add

      public void add(Table table)
      Adds the.
      Parameters:
      table - the table
    • add

      public void add(IBlockElement contentElement)
      Adds the.
      Parameters:
      contentElement - the content element
    • getContentElements

      public List<IContentElement> getContentElements()
      Gets the content elements.
      Returns:
      the content elements
    • clone

      public Header clone()
      Overrides:
      clone in class Object
    • getMarkupCompatibilityIgnorable

      public String getMarkupCompatibilityIgnorable()
      Gets the mc:Ignorable attribute value of the header root, or null if absent.
      Returns:
      the markup-compatibility ignorable prefixes
    • setMarkupCompatibilityIgnorable

      public void setMarkupCompatibilityIgnorable(String markupCompatibilityIgnorable)
      Sets the mc:Ignorable attribute value of the header root.
      Parameters:
      markupCompatibilityIgnorable - the new value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getContent

      public List<IBlockElement> getContent()
      Gets the content.
      Returns:
      the content
    • getType

      public HeaderFooterType getType()
      Gets the type.
      Returns:
      the type
    • setType

      public void setType(HeaderFooterType type)
      Sets the type.
      Parameters:
      type - the new type