Class SdtContentBlock
- All Implemented Interfaces:
ContentAccessor,Child
public class SdtContentBlock extends SdtContent implements Child
Java class for CT_SdtContentBlock complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_SdtContentBlock">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_ContentBlockContent" maxOccurs="unbounded" minOccurs="0"/>
</restriction>
</complexContent>
</complexType>
or altChunk (added for 3.0.1)-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.Object>content -
Constructor Summary
Constructors Constructor Description SdtContentBlock() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.java.util.List<java.lang.Object>getContent()Gets the value of the content property.java.util.List<java.lang.Object>getEGContentBlockContent()Deprecated.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.voidreplaceElement(java.lang.Object current, java.util.List insertions)voidsetParent(java.lang.Object parent)
-
Field Details
-
content
protected java.util.List<java.lang.Object> content
-
-
Constructor Details
-
SdtContentBlock
public SdtContentBlock()
-
-
Method Details
-
getContent
public java.util.List<java.lang.Object> getContent()Gets the value of the content 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 content property.For example, to add a new item, do as follows:
getContent().add(newItem);Objects of the following type(s) are allowed in the list
JAXBElement<CTMoveBookmark>JAXBElement<CTPerm>RunInsPJAXBElement<RunTrackChange>JAXBElement<CTMarkup>ProofErrCommentRangeEndJAXBElement<CTTrackChange>RunDelJAXBElement<RunTrackChange>JAXBElement<CTCustomXmlBlock>SdtBlockJAXBElement<CTOMathPara>JAXBElement<CTMoveBookmark>JAXBElement<CTTrackChange>JAXBElement<CTTrackChange>JAXBElement<Tbl>JAXBElement<CTMoveFromRangeEnd>JAXBElement<CTBookmark>JAXBElement<CTMarkup>JAXBElement<CTMoveToRangeEnd>CommentRangeStartJAXBElement<CTMarkup>JAXBElement<CTMarkup>JAXBElement<RangePermissionStart>JAXBElement<CTOMath>JAXBElement<CTTrackChange>JAXBElement<CTMarkupRange>JAXBElement<CTAltChunk>// since 3.0.1- Specified by:
getContentin interfaceContentAccessor- Specified by:
getContentin classSdtContent- Since:
- 2.7
-
getEGContentBlockContent
@Deprecated public java.util.List<java.lang.Object> getEGContentBlockContent()Deprecated. -
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(javax.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.
-
replaceElement
public void replaceElement(java.lang.Object current, java.util.List insertions)
-