Class Styles

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

public class Styles
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 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>
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Styles.LatentStyles
    Java class for anonymous complex type.
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected DocDefaults docDefaults  
    protected java.lang.String ignorable  
    protected Styles.LatentStyles latentStyles  
    protected java.util.List<Style> style  
  • Constructor Summary

    Constructors
    Constructor Description
    Styles()  
  • 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.
    DocDefaults getDocDefaults()
    Gets the value of the docDefaults property.
    java.lang.String getIgnorable()
    Gets the value of the ignorable property.
    Styles.LatentStyles getLatentStyles()
    Gets the value of the latentStyles property.
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    java.util.List<Style> getStyle()
    Gets the value of the style property.
    void setDocDefaults​(DocDefaults value)
    Sets the value of the docDefaults property.
    void setIgnorable​(java.lang.String value)
    Sets the value of the ignorable property.
    void setLatentStyles​(Styles.LatentStyles value)
    Sets the value of the latentStyles property.
    void setParent​(java.lang.Object parent)  

    Methods inherited from class java.lang.Object

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

    • ignorable

      protected java.lang.String ignorable
    • docDefaults

      protected DocDefaults docDefaults
    • latentStyles

      protected Styles.LatentStyles latentStyles
    • style

      protected java.util.List<Style> style
  • 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 java.util.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 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
    • 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.