Class AlternateContentChoice

java.lang.Object
com.independentsoft.office.spreadsheet.extensions.AlternateContentChoice

public class AlternateContentChoice extends Object
Represents a markup compatibility choice (mc:Choice element) of an AlternateContent block.
  • Constructor Details

    • AlternateContentChoice

      public AlternateContentChoice()
      Instantiates a new alternate content choice.
    • AlternateContentChoice

      public AlternateContentChoice(InternalXMLStreamReader reader, ExtensionContentFactory factory) throws XMLStreamException
      Instantiates a new alternate content choice.

      Enters positioned ON the mc:Choice start element and leaves positioned ON its end element, so the caller's loop advances past it.

      Parameters:
      reader - the reader
      factory - the content factory mapping child elements to typed models, or null to preserve every child as raw XML
      Throws:
      XMLStreamException - the XML stream exception
  • Method Details

    • clone

      public AlternateContentChoice clone()
      Overrides:
      clone in class Object
    • toString

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

      public String getRequires()
      Gets the whitespace-separated list of namespace prefixes this choice requires.
      Returns:
      the requires
    • setRequires

      public void setRequires(String requires)
      Sets the whitespace-separated list of namespace prefixes this choice requires.
      Parameters:
      requires - the new requires
    • getRequiredNamespaces

      public List<String[]> getRequiredNamespaces()
      Gets the resolved namespaces for the Requires prefixes. Each entry is a two element array holding the prefix and its namespace URI.
      Returns:
      the required namespaces
    • getContents

      public List<IExtensionContent> getContents()
      Gets the choice contents.
      Returns:
      the contents