Class AlternateContent
java.lang.Object
com.independentsoft.office.spreadsheet.extensions.AlternateContent
Represents a markup compatibility block (
mc:AlternateContent element) of a
SpreadsheetML part.
This is the SpreadsheetML extension model. It is separate from
AlternateContent, which models the shared
markup compatibility block of the other Office parts.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new alternate content.AlternateContent(InternalXMLStreamReader reader, ExtensionContentFactory factory)Instantiates a new alternate content. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the markup compatibility choices.Gets the fallback content (mc:Fallbackelement) as a raw XML fragment.voidsetFallbackXml(String fallbackXml)Sets the fallback content (mc:Fallbackelement) as a raw XML fragment.toString()
-
Field Details
-
NAMESPACE
The markup compatibility namespace.- See Also:
- Constant Field Values
-
-
Constructor Details
-
AlternateContent
public AlternateContent()Instantiates a new alternate content. -
AlternateContent
public AlternateContent(InternalXMLStreamReader reader, ExtensionContentFactory factory) throws XMLStreamExceptionInstantiates a new alternate content.Enters positioned ON the
mc:AlternateContentstart element and leaves positioned ON its end element, so the caller's loop advances past it.- Parameters:
reader- the readerfactory- the content factory mapping choice child elements to typed models, or null to preserve every child as raw XML- Throws:
XMLStreamException- the XML stream exception
-
-
Method Details
-
clone
-
toString
-
getChoices
Gets the markup compatibility choices.- Returns:
- the choices
-
getFallbackXml
Gets the fallback content (mc:Fallbackelement) as a raw XML fragment.- Returns:
- the fallback XML
-
setFallbackXml
Sets the fallback content (mc:Fallbackelement) as a raw XML fragment.- Parameters:
fallbackXml- the new fallback XML
-