source: branches/jaxb/target/generated-sources/org/docx4j/jaxb/document/P.java @ 32

Revision 32, 6.2 KB checked in by jharrop, 4 years ago (diff)

Use the JAXB parent-pointer-plugin, so each child object can know its parent.

Line 
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.5-b01-fcs
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2007.12.17 at 02:57:16 PM GMT+10:00
6//
7
8
9package org.docx4j.jaxb.document;
10
11import java.util.ArrayList;
12import java.util.List;
13import javax.annotation.Generated;
14import javax.xml.bind.JAXBElement;
15import javax.xml.bind.Unmarshaller;
16import javax.xml.bind.annotation.XmlAccessType;
17import javax.xml.bind.annotation.XmlAccessorType;
18import javax.xml.bind.annotation.XmlElementRef;
19import javax.xml.bind.annotation.XmlElementRefs;
20import javax.xml.bind.annotation.XmlTransient;
21import javax.xml.bind.annotation.XmlType;
22import com.sun.xml.bind.Locatable;
23import com.sun.xml.bind.annotation.XmlLocation;
24import org.jvnet.jaxb2_commons.ppp.Child;
25import org.xml.sax.Locator;
26
27import javax.xml.bind.annotation.XmlAnyElement;
28
29/**
30 * <p>Java class for CT_P complex type.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 *
34 * <pre>
35 * &lt;complexType name="CT_P">
36 *   &lt;complexContent>
37 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
38 *       &lt;sequence>
39 *         &lt;element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}pPr" minOccurs="0"/>
40 *         &lt;group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_PContent" maxOccurs="unbounded" minOccurs="0"/>
41 *       &lt;/sequence>
42 *     &lt;/restriction>
43 *   &lt;/complexContent>
44 * &lt;/complexType>
45 * </pre>
46 *
47 *
48 */
49@XmlAccessorType(XmlAccessType.FIELD)
50@XmlType(name = "CT_P", propOrder = {
51    "pPr",
52    "paragraphContent"
53})
54@Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
55public class P implements Locatable, Child
56{
57
58    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
59    protected PPr pPr;
60   
61    @XmlAnyElement   
62    @XmlElementRefs({
63        @XmlElementRef(name = "del", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
64        @XmlElementRef(name = "r", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = R.class),
65        @XmlElementRef(name = "ins", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class)
66    })
67//    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
68    protected List<Object> paragraphContent;
69    @XmlTransient
70    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
71    private Object parent;
72    @XmlLocation
73    @XmlTransient
74    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
75    protected Locator locator;
76
77    /**
78     * Gets the value of the pPr property.
79     *
80     * @return
81     *     possible object is
82     *     {@link PPr }
83     *     
84     */
85    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
86    public PPr getPPr() {
87        return pPr;
88    }
89
90    /**
91     * Sets the value of the pPr property.
92     *
93     * @param value
94     *     allowed object is
95     *     {@link PPr }
96     *     
97     */
98    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
99    public void setPPr(PPr value) {
100        this.pPr = value;
101    }
102
103    /**
104     * Gets the value of the paragraphContent property.
105     *
106     * <p>
107     * This accessor method returns a reference to the live list,
108     * not a snapshot. Therefore any modification you make to the
109     * returned list will be present inside the JAXB object.
110     * This is why there is not a <CODE>set</CODE> method for the paragraphContent property.
111     *
112     * <p>
113     * For example, to add a new item, do as follows:
114     * <pre>
115     *    getParagraphContent().add(newItem);
116     * </pre>
117     *
118     *
119     * <p>
120     * Objects of the following type(s) are allowed in the list
121     * {@link JAXBElement }{@code <}{@link RunTrackChange }{@code >}
122     * {@link R }
123     * {@link JAXBElement }{@code <}{@link RunTrackChange }{@code >}
124     *
125     *
126     */
127    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
128    public List<Object> getParagraphContent() {
129        if (paragraphContent == null) {
130            paragraphContent = new ArrayList<Object>();
131        }
132        return this.paragraphContent;
133    }
134
135    /**
136     * Gets the parent object in the object tree representing the unmarshalled xml document.
137     *
138     * @return
139     *     The parent object.
140     */
141    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
142    public Object getParent() {
143        return this.parent;
144    }
145
146    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
147    public void setParent(Object parent) {
148        this.parent = parent;
149    }
150
151    /**
152     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
153     *
154     * @param parent
155     *     The parent object in the object tree.
156     * @param unmarshaller
157     *     The unmarshaller that generated the instance.
158     */
159    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
160    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
161        setParent(parent);
162    }
163
164    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
165    public Locator sourceLocation() {
166        return locator;
167    }
168
169    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
170    public void setSourceLocation(Locator newLocator) {
171        locator = newLocator;
172    }
173
174}
Note: See TracBrowser for help on using the repository browser.