Class CTTypes

java.lang.Object
org.docx4j.openpackaging.contenttype.CTTypes

public class CTTypes extends Object

Java class for CT_Types complex type.

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

 <complexType name="CT_Types">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice maxOccurs="unbounded" minOccurs="0">
         <element ref="{http://schemas.openxmlformats.org/package/2006/content-types}Default"/>
         <element ref="{http://schemas.openxmlformats.org/package/2006/content-types}Override"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • defaultOrOverride

      protected List<Object> defaultOrOverride
  • Constructor Details

    • CTTypes

      public CTTypes()
  • Method Details

    • getDefaultOrOverride

      public List<Object> getDefaultOrOverride()
      Gets the value of the defaultOrOverride 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 defaultOrOverride property.

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

          getDefaultOrOverride().add(newItem);
       

      Objects of the following type(s) are allowed in the list CTDefault CTOverride