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 SdtContentBlock sdtContent  
    protected CTSdtEndPr sdtEndPr  
    protected SdtPr sdtPr  
  • Constructor Summary

    Constructors
    Constructor Description
    SdtBlock()  
  • 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.
    void flatten()  
    void flattenP​(P p)  
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    SdtContent getSdtContent()
    Gets the value of the sdtContent property.
    CTSdtEndPr getSdtEndPr()
    Gets the value of the sdtEndPr property.
    SdtPr getSdtPr()
    Gets the value of the sdtPr property.
    void setParent​(java.lang.Object parent)  
    void setSdtContent​(SdtContent value)
    Sets the value of the sdtContent property.
    void setSdtEndPr​(CTSdtEndPr value)
    Sets the value of the sdtEndPr property.
    void setSdtPr​(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

  • Constructor Details

    • SdtBlock

      public SdtBlock()
  • Method Details

    • getSdtPr

      public SdtPr getSdtPr()
      Gets the value of the sdtPr property.
      Specified by:
      getSdtPr in interface SdtElement
      Returns:
      possible object is SdtPr
    • setSdtPr

      public void setSdtPr​(SdtPr value)
      Sets the value of the sdtPr property.
      Specified by:
      setSdtPr in interface SdtElement
      Parameters:
      value - allowed object is SdtPr
    • getSdtEndPr

      public CTSdtEndPr getSdtEndPr()
      Gets the value of the sdtEndPr property.
      Specified by:
      getSdtEndPr in interface SdtElement
      Returns:
      possible object is CTSdtEndPr
    • setSdtEndPr

      public void setSdtEndPr​(CTSdtEndPr value)
      Sets the value of the sdtEndPr property.
      Specified by:
      setSdtEndPr in interface SdtElement
      Parameters:
      value - allowed object is CTSdtEndPr
    • getSdtContent

      public SdtContent getSdtContent()
      Gets the value of the sdtContent property.
      Specified by:
      getSdtContent in interface SdtElement
      Returns:
      possible object is SdtContentBlock
    • setSdtContent

      public void setSdtContent​(SdtContent value)
      Sets the value of the sdtContent property.
      Specified by:
      setSdtContent in interface SdtElement
      Parameters:
      value - allowed object is SdtContentBlock
    • 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
      Specified by:
      getParent in interface SdtElement
      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.
    • flatten

      public void flatten()
    • flattenP

      public void flattenP​(P p)