Class Styles

java.lang.Object
org.docx4j.wml.Styles
All Implemented Interfaces:
Child

public class Styles extends 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 ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}docDefaults" minOccurs="0"/>
         <element name="latentStyles" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="lsdException" maxOccurs="unbounded" minOccurs="0">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
                           <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
                           <attribute name="uiPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
                           <attribute name="semiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
                           <attribute name="unhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
                           <attribute name="qFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" />
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                 </sequence>
                 <attribute name="defLockedState" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
                 <attribute name="defUIPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
                 <attribute name="defSemiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
                 <attribute name="defUnhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
                 <attribute name="defQFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
                 <attribute name="count" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Styles

      public Styles()
  • Method Details

    • getDocDefaults

      public DocDefaults getDocDefaults()
      Gets the value of the docDefaults property.
      Returns:
      possible object is DocDefaults
    • setDocDefaults

      public void setDocDefaults(DocDefaults value)
      Sets the value of the docDefaults property.
      Parameters:
      value - allowed object is DocDefaults
    • getLatentStyles

      public Styles.LatentStyles getLatentStyles()
      Gets the value of the latentStyles property.
      Returns:
      possible object is Styles.LatentStyles
    • setLatentStyles

      public void setLatentStyles(Styles.LatentStyles value)
      Sets the value of the latentStyles property.
      Parameters:
      value - allowed object is Styles.LatentStyles
    • getStyle

      public List<Style> getStyle()
      Gets the value of the style 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 style property.

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

          getStyle().add(newItem);
       

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

    • getIgnorable

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

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

      public 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(Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, 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.