Package com.independentsoft.office.word
Class AlternateContent
java.lang.Object
com.independentsoft.office.word.AlternateContent
- All Implemented Interfaces:
IContentElement,IBlockElement,IRunContent
Represents a markup-compatibility alternate-content block (mc:AlternateContent) which
provides one or more
AlternateContentChoice alternatives and an optional
AlternateContentFallback.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this instance.Gets the list ofAlternateContentChoicealternatives.Gets the optionalAlternateContentFallback.voidsetFallback(AlternateContentFallback fallback)Sets the optionalAlternateContentFallback.toString()
-
Constructor Details
-
AlternateContent
public AlternateContent()Instantiates a new alternate content.
-
-
Method Details
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
Clones this instance.- Specified by:
clonein interfaceIBlockElement- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIRunContent- Overrides:
clonein classObject- Returns:
- the cloned alternate content
-
toString
-
getChoices
Gets the list ofAlternateContentChoicealternatives.- Returns:
- the choices
-
getFallback
Gets the optionalAlternateContentFallback.- Returns:
- the fallback
-
setFallback
Sets the optionalAlternateContentFallback.- Parameters:
fallback- the new fallback
-