org.docx4j.wml
Class Document

java.lang.Object
  extended by org.docx4j.wml.Document
All Implemented Interfaces:
org.jvnet.jaxb2_commons.ppp.Child

public class Document
extends java.lang.Object
implements org.jvnet.jaxb2_commons.ppp.Child

Java class for CT_Document complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_Document">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}body" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Constructor Summary
Document()
           
 
Method Summary
 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.
 Body getBody()
          Gets the value of the body property.
 java.lang.Object getParent()
          Gets the parent object in the object tree representing the unmarshalled xml document.
 void setBody(Body value)
          Sets the value of the body property.
 void setParent(java.lang.Object parent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Document

public Document()
Method Detail

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.

getBody

public Body getBody()
Gets the value of the body property.

Returns:
possible object is Body

getParent

public java.lang.Object getParent()
Gets the parent object in the object tree representing the unmarshalled xml document.

Specified by:
getParent in interface org.jvnet.jaxb2_commons.ppp.Child
Returns:
The parent object.

setBody

public void setBody(Body value)
Sets the value of the body property.

Parameters:
value - allowed object is Body

setParent

public void setParent(java.lang.Object parent)
Specified by:
setParent in interface org.jvnet.jaxb2_commons.ppp.Child