Package org.docx4j.wml
Class Document
java.lang.Object
org.docx4j.wml.Document
- All Implemented Interfaces:
ContentAccessor,Child
public class Document extends java.lang.Object implements Child, ContentAccessor
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="background" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Background" minOccurs="0"/>
<element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}body" minOccurs="0"/>
</sequence>
<attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}Ignorable"/>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected CTBackgroundbackgroundprotected Bodybodyprotected java.lang.Stringignorable -
Constructor Summary
Constructors Constructor Description Document() -
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.CTBackgroundgetBackground()Gets the value of the background property.BodygetBody()Gets the value of the body property.java.util.List<java.lang.Object>getContent()Convenience method to getBody().getContent()java.lang.StringgetIgnorable()Gets the value of the ignorable property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.voidsetBackground(CTBackground value)Sets the value of the background property.voidsetBody(Body value)Sets the value of the body property.voidsetIgnorable(java.lang.String value)Sets the value of the ignorable 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
-
background
-
body
-
ignorable
protected java.lang.String ignorable
-
-
Constructor Details
-
Document
public Document()
-
-
Method Details
-
getBackground
Gets the value of the background property.- Returns:
- possible object is
CTBackground
-
setBackground
Sets the value of the background property.- Parameters:
value- allowed object isCTBackground
-
getBody
Gets the value of the body property.- Returns:
- possible object is
Body
-
getContent
public java.util.List<java.lang.Object> getContent()Convenience method to getBody().getContent()- Specified by:
getContentin interfaceContentAccessor- Since:
- 2.7
-
setBody
Sets the value of the body property.- Parameters:
value- allowed object isBody
-
getIgnorable
public java.lang.String getIgnorable()Gets the value of the ignorable property.- Returns:
- possible object is
String
-
setIgnorable
public void setIgnorable(java.lang.String value)Sets the value of the ignorable property.- Parameters:
value- allowed object isString
-
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.
-