Class CTDiv

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

public class CTDiv
extends java.lang.Object
implements Child

Java class for CT_Div complex type.

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

 <complexType name="CT_Div">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="blockQuote" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="bodyDiv" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="marLeft" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SignedTwipsMeasure"/>
         <element name="marRight" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SignedTwipsMeasure"/>
         <element name="marTop" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SignedTwipsMeasure"/>
         <element name="marBottom" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SignedTwipsMeasure"/>
         <element name="divBdr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_DivBdr" minOccurs="0"/>
         <element name="divsChild" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Divs" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="id" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • CTDiv

      public CTDiv()
  • Method Details

    • getBlockQuote

      public BooleanDefaultTrue getBlockQuote()
      Gets the value of the blockQuote property.
      Returns:
      possible object is BooleanDefaultTrue
    • setBlockQuote

      public void setBlockQuote​(BooleanDefaultTrue value)
      Sets the value of the blockQuote property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getBodyDiv

      public BooleanDefaultTrue getBodyDiv()
      Gets the value of the bodyDiv property.
      Returns:
      possible object is BooleanDefaultTrue
    • setBodyDiv

      public void setBodyDiv​(BooleanDefaultTrue value)
      Sets the value of the bodyDiv property.
      Parameters:
      value - allowed object is BooleanDefaultTrue
    • getMarLeft

      public CTSignedTwipsMeasure getMarLeft()
      Gets the value of the marLeft property.
      Returns:
      possible object is CTSignedTwipsMeasure
    • setMarLeft

      public void setMarLeft​(CTSignedTwipsMeasure value)
      Sets the value of the marLeft property.
      Parameters:
      value - allowed object is CTSignedTwipsMeasure
    • getMarRight

      public CTSignedTwipsMeasure getMarRight()
      Gets the value of the marRight property.
      Returns:
      possible object is CTSignedTwipsMeasure
    • setMarRight

      public void setMarRight​(CTSignedTwipsMeasure value)
      Sets the value of the marRight property.
      Parameters:
      value - allowed object is CTSignedTwipsMeasure
    • getMarTop

      public CTSignedTwipsMeasure getMarTop()
      Gets the value of the marTop property.
      Returns:
      possible object is CTSignedTwipsMeasure
    • setMarTop

      public void setMarTop​(CTSignedTwipsMeasure value)
      Sets the value of the marTop property.
      Parameters:
      value - allowed object is CTSignedTwipsMeasure
    • getMarBottom

      public CTSignedTwipsMeasure getMarBottom()
      Gets the value of the marBottom property.
      Returns:
      possible object is CTSignedTwipsMeasure
    • setMarBottom

      public void setMarBottom​(CTSignedTwipsMeasure value)
      Sets the value of the marBottom property.
      Parameters:
      value - allowed object is CTSignedTwipsMeasure
    • getDivBdr

      public CTDivBdr getDivBdr()
      Gets the value of the divBdr property.
      Returns:
      possible object is CTDivBdr
    • setDivBdr

      public void setDivBdr​(CTDivBdr value)
      Sets the value of the divBdr property.
      Parameters:
      value - allowed object is CTDivBdr
    • getDivsChild

      public java.util.List<CTDivs> getDivsChild()
      Gets the value of the divsChild 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 divsChild property.

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

          getDivsChild().add(newItem);
       

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

    • getId

      public java.math.BigInteger getId()
      Gets the value of the id property.
      Returns:
      possible object is BigInteger
    • setId

      public void setId​(java.math.BigInteger value)
      Sets the value of the id property.
      Parameters:
      value - allowed object is BigInteger
    • 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.