Package org.docx4j.wml
Class Document
java.lang.Object
org.docx4j.wml.Document
- All Implemented Interfaces:
ContentAccessor,Child
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.Gets the value of the background property.getBody()Gets the value of the body property.Convenience method to getBody().getContent()Gets the value of the ignorable property.Gets the parent object in the object tree representing the unmarshalled xml document.voidsetBackground(CTBackground value) Sets the value of the background property.voidSets the value of the body property.voidsetIgnorable(String value) Sets the value of the ignorable property.void
-
Field Details
-
background
-
body
-
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
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
Gets the value of the ignorable property.- Returns:
- possible object is
String
-
setIgnorable
Sets the value of the ignorable property.- Parameters:
value- allowed object isString
-
getParent
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
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.
-