Package com.independentsoft.office
Class AlternateContent
java.lang.Object
com.independentsoft.office.AlternateContent
- All Implemented Interfaces:
ITextParagraphContent
Represents a markup-compatibility alternate-content block
(
mc:AlternateContent): one or more AlternateContentChoice
alternatives and an optional AlternateContentFallback. This is the
shared model for DrawingML/chart hosts; WordprocessingML and PresentationML
have their own host-level classes.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new alternate content.AlternateContent(InternalXMLStreamReader reader)Instantiates a new alternate content. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the list ofAlternateContentChoicealternatives.Gets the fallback content.voidsetFallback(AlternateContentFallback fallback)Sets the fallback content.toString()
-
Field Details
-
MC_NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AlternateContent
public AlternateContent()Instantiates a new alternate content. -
AlternateContent
Instantiates a new alternate content.- Parameters:
reader- the reader- Throws:
XMLStreamException- the XML stream exception
-
-
Method Details
-
clone
- Specified by:
clonein interfaceITextParagraphContent- Overrides:
clonein classObject
-
toString
-
getChoices
Gets the list ofAlternateContentChoicealternatives.- Returns:
- the choices
-
getFallback
Gets the fallback content.- Returns:
- the fallback
-
setFallback
Sets the fallback content.- Parameters:
fallback- the new fallback
-