Class Style

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

public class Style 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 name="name" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="aliases" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="basedOn" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="next" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="link" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="autoRedefine" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="hidden" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="uiPriority" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" use="required">
                   <simpleType>
                     <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
                     </restriction>
                   </simpleType>
                 </attribute>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="semiHidden" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="unhideWhenUsed" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="qFormat" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="locked" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="personal" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="personalCompose" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="personalReply" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="rsid" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_LongHexNumber" minOccurs="0"/>
         <element name="pPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PPr" minOccurs="0"/>
         <element name="rPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_RPr" minOccurs="0"/>
         <element name="tblPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblPrBase" minOccurs="0"/>
         <element name="trPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TrPr" minOccurs="0"/>
         <element name="tcPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TcPr" minOccurs="0"/>
         <element name="tblStylePr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblStylePr" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="type">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="paragraph"/>
             <enumeration value="character"/>
             <enumeration value="table"/>
             <enumeration value="numbering"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="styleId" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
       <attribute name="default" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="customStyle" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Style

      public Style()
  • Method Details

    • getName

      public Style.Name getName()
      Gets the value of the name property.
      Returns:
      possible object is Style.Name
    • setName

      public void setName(Style.Name value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is Style.Name
    • getAliases

      public Style.Aliases getAliases()
      Gets the value of the aliases property.
      Returns:
      possible object is Style.Aliases
    • setAliases

      public void setAliases(Style.Aliases value)
      Sets the value of the aliases property.
      Parameters:
      value - allowed object is Style.Aliases
    • getBasedOn

      public Style.BasedOn getBasedOn()
      Gets the value of the basedOn property.
      Returns:
      possible object is Style.BasedOn
    • setBasedOn

      public void setBasedOn(Style.BasedOn value)
      Sets the value of the basedOn property.
      Parameters:
      value - allowed object is Style.BasedOn
    • getNext

      public Style.Next getNext()
      Gets the value of the next property.
      Returns:
      possible object is Style.Next
    • setNext

      public void setNext(Style.Next value)
      Sets the value of the next property.
      Parameters:
      value - allowed object is Style.Next
    • getLink

      public Style.Link getLink()
      Gets the value of the link property.
      Returns:
      possible object is Style.Link
    • setLink

      public void setLink(Style.Link value)
      Sets the value of the link property.
      Parameters:
      value - allowed object is Style.Link
    • getAutoRedefine

      public BooleanDefaultTrue getAutoRedefine()
      Gets the value of the autoRedefine property.
      Returns:
      possible object is BooleanDefaultTrue
    • setAutoRedefine

      public void setAutoRedefine(BooleanDefaultTrue value)
      Sets the value of the autoRedefine property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getHidden

      public BooleanDefaultTrue getHidden()
      Gets the value of the hidden property.
      Returns:
      possible object is BooleanDefaultTrue
    • setHidden

      public void setHidden(BooleanDefaultTrue value)
      Sets the value of the hidden property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getUiPriority

      public Style.UiPriority getUiPriority()
      Gets the value of the uiPriority property.
      Returns:
      possible object is Style.UiPriority
    • setUiPriority

      public void setUiPriority(Style.UiPriority value)
      Sets the value of the uiPriority property.
      Parameters:
      value - allowed object is Style.UiPriority
    • getSemiHidden

      public BooleanDefaultTrue getSemiHidden()
      Gets the value of the semiHidden property.
      Returns:
      possible object is BooleanDefaultTrue
    • setSemiHidden

      public void setSemiHidden(BooleanDefaultTrue value)
      Sets the value of the semiHidden property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getUnhideWhenUsed

      public BooleanDefaultTrue getUnhideWhenUsed()
      Gets the value of the unhideWhenUsed property.
      Returns:
      possible object is BooleanDefaultTrue
    • setUnhideWhenUsed

      public void setUnhideWhenUsed(BooleanDefaultTrue value)
      Sets the value of the unhideWhenUsed property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getQFormat

      public BooleanDefaultTrue getQFormat()
      Gets the value of the qFormat property.
      Returns:
      possible object is BooleanDefaultTrue
    • setQFormat

      public void setQFormat(BooleanDefaultTrue value)
      Sets the value of the qFormat property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getLocked

      public BooleanDefaultTrue getLocked()
      Gets the value of the locked property.
      Returns:
      possible object is BooleanDefaultTrue
    • setLocked

      public void setLocked(BooleanDefaultTrue value)
      Sets the value of the locked property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getPersonal

      public BooleanDefaultTrue getPersonal()
      Gets the value of the personal property.
      Returns:
      possible object is BooleanDefaultTrue
    • setPersonal

      public void setPersonal(BooleanDefaultTrue value)
      Sets the value of the personal property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getPersonalCompose

      public BooleanDefaultTrue getPersonalCompose()
      Gets the value of the personalCompose property.
      Returns:
      possible object is BooleanDefaultTrue
    • setPersonalCompose

      public void setPersonalCompose(BooleanDefaultTrue value)
      Sets the value of the personalCompose property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getPersonalReply

      public BooleanDefaultTrue getPersonalReply()
      Gets the value of the personalReply property.
      Returns:
      possible object is BooleanDefaultTrue
    • setPersonalReply

      public void setPersonalReply(BooleanDefaultTrue value)
      Sets the value of the personalReply property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getRsid

      public CTLongHexNumber getRsid()
      Gets the value of the rsid property.
      Returns:
      possible object is CTLongHexNumber
    • setRsid

      public void setRsid(CTLongHexNumber value)
      Sets the value of the rsid property.
      Parameters:
      value - allowed object is CTLongHexNumber
    • getPPr

      public PPr getPPr()
      Gets the value of the pPr property.
      Returns:
      possible object is PPr
    • setPPr

      public void setPPr(PPr value)
      Sets the value of the pPr property.
      Parameters:
      value - allowed object is PPr
    • getRPr

      public RPr getRPr()
      Gets the value of the rPr property.
      Returns:
      possible object is RPr
    • setRPr

      public void setRPr(RPr value)
      Sets the value of the rPr property.
      Parameters:
      value - allowed object is RPr
    • getTblPr

      public CTTblPrBase getTblPr()
      Gets the value of the tblPr property.
      Returns:
      possible object is CTTblPrBase
    • setTblPr

      public void setTblPr(CTTblPrBase value)
      Sets the value of the tblPr property.
      Parameters:
      value - allowed object is CTTblPrBase
    • getTrPr

      public TrPr getTrPr()
      Gets the value of the trPr property.
      Returns:
      possible object is TrPr
    • setTrPr

      public void setTrPr(TrPr value)
      Sets the value of the trPr property.
      Parameters:
      value - allowed object is TrPr
    • getTcPr

      public TcPr getTcPr()
      Gets the value of the tcPr property.
      Returns:
      possible object is TcPr
    • setTcPr

      public void setTcPr(TcPr value)
      Sets the value of the tcPr property.
      Parameters:
      value - allowed object is TcPr
    • getTblStylePr

      public List<CTTblStylePr> getTblStylePr()
      Gets the value of the tblStylePr 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 tblStylePr property.

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

          getTblStylePr().add(newItem);
       

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

    • getType

      public String getType()
      Gets the value of the type property.
      Returns:
      possible object is String
    • setType

      public void setType(String value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is String
    • getStyleId

      public String getStyleId()
      Gets the value of the styleId property.
      Returns:
      possible object is String
    • setStyleId

      public void setStyleId(String value)
      Sets the value of the styleId property.
      Parameters:
      value - allowed object is String
    • isDefault

      public boolean isDefault()
      Gets the value of the default property.
      Returns:
      possible object is Boolean
    • setDefault

      public void setDefault(Boolean value)
      Sets the value of the default property.
      Parameters:
      value - allowed object is Boolean
    • isCustomStyle

      public boolean isCustomStyle()
      Gets the value of the customStyle property.
      Returns:
      possible object is Boolean
    • setCustomStyle

      public void setCustomStyle(Boolean value)
      Sets the value of the customStyle property.
      Parameters:
      value - allowed object is Boolean
    • 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.