Package com.independentsoft.office
Class AlternateContentChoice
java.lang.Object
com.independentsoft.office.AlternateContentChoice
Represents a single
mc:Choice alternative inside an
AlternateContent block. The choice applies when the consumer
understands every namespace prefix listed in the Requires
attribute.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new alternate content choice.Instantiates a new alternate content choice. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the raw XML payload of this choice.Gets the resolved (prefix, namespace) pairs for theRequiresprefixes; they are re-declared on the emittedmc:Choicestart tag.Gets the space-delimited list of namespace prefixes the consumer must understand for this choice to apply (theRequiresattribute).voidsetInnerXml(String innerXml)Sets the raw XML payload of this choice.voidsetRequires(String requires)Sets the space-delimited list of namespace prefixes the consumer must understand for this choice to apply (theRequiresattribute).toString()
-
Constructor Details
-
AlternateContentChoice
public AlternateContentChoice()Instantiates a new alternate content choice. -
AlternateContentChoice
Instantiates a new alternate content choice.- Parameters:
reader- the reader- Throws:
XMLStreamException- the XML stream exception
-
-
Method Details
-
clone
-
toString
-
getRequires
Gets the space-delimited list of namespace prefixes the consumer must understand for this choice to apply (theRequiresattribute).- Returns:
- the requires
-
setRequires
Sets the space-delimited list of namespace prefixes the consumer must understand for this choice to apply (theRequiresattribute).- Parameters:
requires- the new requires
-
getRequiredNamespaces
Gets the resolved (prefix, namespace) pairs for theRequiresprefixes; they are re-declared on the emittedmc:Choicestart tag.- Returns:
- the required namespaces
-
getInnerXml
Gets the raw XML payload of this choice.- Returns:
- the inner XML
-
setInnerXml
Sets the raw XML payload of this choice.- Parameters:
innerXml- the new inner XML
-