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)| Constructor and Description |
|---|
SdtContentBlock() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterUnmarshal(Unmarshaller unmarshaller,
Object parent)
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
|
List<Object> |
getContent()
Gets the value of the content property.
|
List<Object> |
getEGContentBlockContent()
Deprecated.
|
Object |
getParent()
Gets the parent object in the object tree representing the unmarshalled xml document.
|
void |
replaceElement(Object current,
List insertions) |
void |
setParent(Object parent) |
public List<Object> getContent()
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 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>
RunIns
P
JAXBElement<RunTrackChange>
JAXBElement<CTMarkup>
ProofErr
CommentRangeEnd
JAXBElement<CTTrackChange>
RunDel
JAXBElement<RunTrackChange>
JAXBElement<CTCustomXmlBlock>
SdtBlock
JAXBElement<CTOMathPara>
JAXBElement<CTMoveBookmark>
JAXBElement<CTTrackChange>
JAXBElement<CTTrackChange>
JAXBElement<Tbl>
JAXBElement<CTMoveFromRangeEnd>
JAXBElement<CTBookmark>
JAXBElement<CTMarkup>
JAXBElement<CTMoveToRangeEnd>
CommentRangeStart
JAXBElement<CTMarkup>
JAXBElement<CTMarkup>
JAXBElement<RangePermissionStart>
JAXBElement<CTOMath>
JAXBElement<CTTrackChange>
JAXBElement<CTMarkupRange>
JAXBElement<CTAltChunk> // since 3.0.1
getContent in interface ContentAccessorgetContent in class SdtContent@Deprecated public List<Object> getEGContentBlockContent()
public Object getParent()
public void afterUnmarshal(Unmarshaller unmarshaller, Object parent)
parent - The parent object in the object tree.unmarshaller - The unmarshaller that generated the instance.Copyright © 2007-2022. All Rights Reserved.