Class AlternateContentChoice
java.lang.Object
com.independentsoft.office.spreadsheet.extensions.AlternateContentChoice
Represents a markup compatibility choice (
mc:Choice element) of an
AlternateContent block.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new alternate content choice.AlternateContentChoice(InternalXMLStreamReader reader, ExtensionContentFactory factory)Instantiates a new alternate content choice. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the choice contents.Gets the resolved namespaces for theRequiresprefixes.Gets the whitespace-separated list of namespace prefixes this choice requires.voidsetRequires(String requires)Sets the whitespace-separated list of namespace prefixes this choice requires.toString()
-
Constructor Details
-
AlternateContentChoice
public AlternateContentChoice()Instantiates a new alternate content choice. -
AlternateContentChoice
public AlternateContentChoice(InternalXMLStreamReader reader, ExtensionContentFactory factory) throws XMLStreamExceptionInstantiates a new alternate content choice.Enters positioned ON the
mc:Choicestart element and leaves positioned ON its end element, so the caller's loop advances past it.- Parameters:
reader- the readerfactory- 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
-
toString
-
getRequires
Gets the whitespace-separated list of namespace prefixes this choice requires.- Returns:
- the requires
-
setRequires
Sets the whitespace-separated list of namespace prefixes this choice requires.- Parameters:
requires- the new requires
-
getRequiredNamespaces
Gets the resolved namespaces for theRequiresprefixes. Each entry is a two element array holding the prefix and its namespace URI.- Returns:
- the required namespaces
-
getContents
Gets the choice contents.- Returns:
- the contents
-