Package org.docx4j.wml
Class SdtBlock
java.lang.Object
org.docx4j.wml.SdtBlock
- All Implemented Interfaces:
SdtElement,Child
public class SdtBlock extends java.lang.Object implements SdtElement, Child
Java class for sdt element declaration.
The following schema fragment specifies the expected content contained within this class.
<element name="sdt">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="sdtPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SdtPr" minOccurs="0"/>
<element name="sdtEndPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SdtEndPr" minOccurs="0"/>
<element name="sdtContent" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SdtContentBlock" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
-
Field Summary
Fields Modifier and Type Field Description protected SdtContentBlocksdtContentprotected CTSdtEndPrsdtEndPrprotected SdtPrsdtPr -
Constructor Summary
Constructors Constructor Description SdtBlock() -
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.voidflatten()voidflattenP(P p)java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.SdtContentgetSdtContent()Gets the value of the sdtContent property.CTSdtEndPrgetSdtEndPr()Gets the value of the sdtEndPr property.SdtPrgetSdtPr()Gets the value of the sdtPr property.voidsetParent(java.lang.Object parent)voidsetSdtContent(SdtContent value)Sets the value of the sdtContent property.voidsetSdtEndPr(CTSdtEndPr value)Sets the value of the sdtEndPr property.voidsetSdtPr(SdtPr value)Sets the value of the sdtPr property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
sdtPr
-
sdtEndPr
-
sdtContent
-
-
Constructor Details
-
SdtBlock
public SdtBlock()
-
-
Method Details
-
getSdtPr
Gets the value of the sdtPr property.- Specified by:
getSdtPrin interfaceSdtElement- Returns:
- possible object is
SdtPr
-
setSdtPr
Sets the value of the sdtPr property.- Specified by:
setSdtPrin interfaceSdtElement- Parameters:
value- allowed object isSdtPr
-
getSdtEndPr
Gets the value of the sdtEndPr property.- Specified by:
getSdtEndPrin interfaceSdtElement- Returns:
- possible object is
CTSdtEndPr
-
setSdtEndPr
Sets the value of the sdtEndPr property.- Specified by:
setSdtEndPrin interfaceSdtElement- Parameters:
value- allowed object isCTSdtEndPr
-
getSdtContent
Gets the value of the sdtContent property.- Specified by:
getSdtContentin interfaceSdtElement- Returns:
- possible object is
SdtContentBlock
-
setSdtContent
Sets the value of the sdtContent property.- Specified by:
setSdtContentin interfaceSdtElement- Parameters:
value- allowed object isSdtContentBlock
-
getParent
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document.- Specified by:
getParentin interfaceChild- Specified by:
getParentin interfaceSdtElement- Returns:
- The parent object.
-
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.
-
flatten
public void flatten() -
flattenP
-