Class AlternateContent

java.lang.Object
org.docx4j.mce.AlternateContent
All Implemented Interfaces:
Child

public class AlternateContent
extends java.lang.Object
implements Child

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Choice" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <any maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute name="Requires" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}Ignorable"/>
                 <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}MustUnderstand"/>
                 <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}ProcessContent"/>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="Fallback" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <any maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}Ignorable"/>
                 <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}MustUnderstand"/>
                 <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}ProcessContent"/>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
       <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}Ignorable"/>
       <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}MustUnderstand"/>
       <attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}ProcessContent"/>
     </restriction>
   </complexContent>
 </complexType>
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  AlternateContent.Choice
    Java class for anonymous complex type.
    static class  AlternateContent.Fallback
    Java class for anonymous complex type.
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.util.List<AlternateContent.Choice> choice  
    protected AlternateContent.Fallback fallback  
    protected java.lang.String ignorable  
    protected java.lang.String mustUnderstand  
    protected java.lang.String processContent  
  • Constructor Summary

    Constructors
    Constructor Description
    AlternateContent()  
  • Method Summary

    Modifier and Type Method Description
    void afterUnmarshal​(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)
    This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
    java.util.List<AlternateContent.Choice> getChoice()
    Gets the value of the choice property.
    AlternateContent.Fallback getFallback()
    Gets the value of the fallback property.
    java.lang.String getIgnorable()
    Gets the value of the ignorable property.
    java.lang.String getMustUnderstand()
    Gets the value of the mustUnderstand property.
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    java.lang.String getProcessContent()
    Gets the value of the processContent property.
    void setFallback​(AlternateContent.Fallback value)
    Sets the value of the fallback property.
    void setIgnorable​(java.lang.String value)
    Sets the value of the ignorable property.
    void setMustUnderstand​(java.lang.String value)
    Sets the value of the mustUnderstand property.
    void setParent​(java.lang.Object parent)  
    void setProcessContent​(java.lang.String value)
    Sets the value of the processContent property.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • choice

      protected java.util.List<AlternateContent.Choice> choice
    • fallback

      protected AlternateContent.Fallback fallback
    • ignorable

      protected java.lang.String ignorable
    • mustUnderstand

      protected java.lang.String mustUnderstand
    • processContent

      protected java.lang.String processContent
  • Constructor Details

    • AlternateContent

      public AlternateContent()
  • Method Details

    • getChoice

      public java.util.List<AlternateContent.Choice> getChoice()
      Gets the value of the choice property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the choice property.

      For example, to add a new item, do as follows:

          getChoice().add(newItem);
       

      Objects of the following type(s) are allowed in the list AlternateContent.Choice

    • getFallback

      public AlternateContent.Fallback getFallback()
      Gets the value of the fallback property.
      Returns:
      possible object is AlternateContent.Fallback
    • setFallback

      public void setFallback​(AlternateContent.Fallback value)
      Sets the value of the fallback property.
      Parameters:
      value - allowed object is AlternateContent.Fallback
    • getIgnorable

      public java.lang.String getIgnorable()
      Gets the value of the ignorable property.
      Returns:
      possible object is String
    • setIgnorable

      public void setIgnorable​(java.lang.String value)
      Sets the value of the ignorable property.
      Parameters:
      value - allowed object is String
    • getMustUnderstand

      public java.lang.String getMustUnderstand()
      Gets the value of the mustUnderstand property.
      Returns:
      possible object is String
    • setMustUnderstand

      public void setMustUnderstand​(java.lang.String value)
      Sets the value of the mustUnderstand property.
      Parameters:
      value - allowed object is String
    • getProcessContent

      public java.lang.String getProcessContent()
      Gets the value of the processContent property.
      Returns:
      possible object is String
    • setProcessContent

      public void setProcessContent​(java.lang.String value)
      Sets the value of the processContent property.
      Parameters:
      value - allowed object is String
    • getParent

      public java.lang.Object getParent()
      Gets the parent object in the object tree representing the unmarshalled xml document.
      Specified by:
      getParent in interface Child
      Returns:
      The parent object.
    • setParent

      public void setParent​(java.lang.Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal​(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)
      This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
      Parameters:
      parent - The parent object in the object tree.
      unmarshaller - The unmarshaller that generated the instance.