Package org.docx4j.wml
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 Summary
Fields Modifier and Type Field Description protected BooleanDefaultTrueblockQuoteprotected BooleanDefaultTruebodyDivprotected CTDivBdrdivBdrprotected java.util.List<CTDivs>divsChildprotected java.math.BigIntegeridprotected CTSignedTwipsMeasuremarBottomprotected CTSignedTwipsMeasuremarLeftprotected CTSignedTwipsMeasuremarRightprotected CTSignedTwipsMeasuremarTop -
Constructor Summary
Constructors Constructor Description CTDiv() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.BooleanDefaultTruegetBlockQuote()Gets the value of the blockQuote property.BooleanDefaultTruegetBodyDiv()Gets the value of the bodyDiv property.CTDivBdrgetDivBdr()Gets the value of the divBdr property.java.util.List<CTDivs>getDivsChild()Gets the value of the divsChild property.java.math.BigIntegergetId()Gets the value of the id property.CTSignedTwipsMeasuregetMarBottom()Gets the value of the marBottom property.CTSignedTwipsMeasuregetMarLeft()Gets the value of the marLeft property.CTSignedTwipsMeasuregetMarRight()Gets the value of the marRight property.CTSignedTwipsMeasuregetMarTop()Gets the value of the marTop property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.voidsetBlockQuote(BooleanDefaultTrue value)Sets the value of the blockQuote property.voidsetBodyDiv(BooleanDefaultTrue value)Sets the value of the bodyDiv property.voidsetDivBdr(CTDivBdr value)Sets the value of the divBdr property.voidsetId(java.math.BigInteger value)Sets the value of the id property.voidsetMarBottom(CTSignedTwipsMeasure value)Sets the value of the marBottom property.voidsetMarLeft(CTSignedTwipsMeasure value)Sets the value of the marLeft property.voidsetMarRight(CTSignedTwipsMeasure value)Sets the value of the marRight property.voidsetMarTop(CTSignedTwipsMeasure value)Sets the value of the marTop property.voidsetParent(java.lang.Object parent)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
blockQuote
-
bodyDiv
-
marLeft
-
marRight
-
marTop
-
marBottom
-
divBdr
-
divsChild
-
id
protected java.math.BigInteger id
-
-
Constructor Details
-
CTDiv
public CTDiv()
-
-
Method Details
-
getBlockQuote
Gets the value of the blockQuote property.- Returns:
- possible object is
BooleanDefaultTrue
-
setBlockQuote
Sets the value of the blockQuote property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getBodyDiv
Gets the value of the bodyDiv property.- Returns:
- possible object is
BooleanDefaultTrue
-
setBodyDiv
Sets the value of the bodyDiv property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getMarLeft
Gets the value of the marLeft property.- Returns:
- possible object is
CTSignedTwipsMeasure
-
setMarLeft
Sets the value of the marLeft property.- Parameters:
value- allowed object isCTSignedTwipsMeasure
-
getMarRight
Gets the value of the marRight property.- Returns:
- possible object is
CTSignedTwipsMeasure
-
setMarRight
Sets the value of the marRight property.- Parameters:
value- allowed object isCTSignedTwipsMeasure
-
getMarTop
Gets the value of the marTop property.- Returns:
- possible object is
CTSignedTwipsMeasure
-
setMarTop
Sets the value of the marTop property.- Parameters:
value- allowed object isCTSignedTwipsMeasure
-
getMarBottom
Gets the value of the marBottom property.- Returns:
- possible object is
CTSignedTwipsMeasure
-
setMarBottom
Sets the value of the marBottom property.- Parameters:
value- allowed object isCTSignedTwipsMeasure
-
getDivBdr
Gets the value of the divBdr property.- Returns:
- possible object is
CTDivBdr
-
setDivBdr
Sets the value of the divBdr property.- Parameters:
value- allowed object isCTDivBdr
-
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
setmethod 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 isBigInteger
-
getParent
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
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.
-