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

Revision 32, 4.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 javax.annotation.Generated;
12import javax.xml.bind.Unmarshaller;
13import javax.xml.bind.annotation.XmlAccessType;
14import javax.xml.bind.annotation.XmlAccessorType;
15import javax.xml.bind.annotation.XmlRootElement;
16import javax.xml.bind.annotation.XmlTransient;
17import javax.xml.bind.annotation.XmlType;
18import javax.xml.bind.annotation.XmlValue;
19import com.sun.xml.bind.Locatable;
20import com.sun.xml.bind.annotation.XmlLocation;
21import org.jvnet.jaxb2_commons.ppp.Child;
22import org.xml.sax.Locator;
23
24
25/**
26 * <p>Java class for CT_Text complex type.
27 *
28 * <p>The following schema fragment specifies the expected content contained within this class.
29 *
30 * <pre>
31 * &lt;complexType name="CT_Text">
32 *   &lt;simpleContent>
33 *     &lt;extension base="&lt;http://schemas.openxmlformats.org/wordprocessingml/2006/main>ST_String">
34 *     &lt;/extension>
35 *   &lt;/simpleContent>
36 * &lt;/complexType>
37 * </pre>
38 *
39 *
40 */
41@XmlAccessorType(XmlAccessType.FIELD)
42@XmlType(name = "CT_Text", propOrder = {
43    "value"
44})
45@XmlRootElement(name = "t")
46//@Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
47public class Text
48    implements Locatable, Child
49{
50
51    @XmlValue
52    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
53    protected String value;
54    @XmlTransient
55    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
56    private Object parent;
57    @XmlLocation
58    @XmlTransient
59    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
60    protected Locator locator;
61
62    /**
63     * String
64     *
65     * @return
66     *     possible object is
67     *     {@link String }
68     *     
69     */
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    public String getValue() {
72        return value;
73    }
74
75    /**
76     * Sets the value of the value property.
77     *
78     * @param value
79     *     allowed object is
80     *     {@link String }
81     *     
82     */
83    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
84    public void setValue(String value) {
85        this.value = value;
86    }
87
88    /**
89     * Gets the parent object in the object tree representing the unmarshalled xml document.
90     *
91     * @return
92     *     The parent object.
93     */
94    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
95    public Object getParent() {
96        return this.parent;
97    }
98
99    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
100    public void setParent(Object parent) {
101        this.parent = parent;
102    }
103
104    /**
105     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
106     *
107     * @param parent
108     *     The parent object in the object tree.
109     * @param unmarshaller
110     *     The unmarshaller that generated the instance.
111     */
112    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
113    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
114        setParent(parent);
115    }
116
117    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
118    public Locator sourceLocation() {
119        return locator;
120    }
121
122    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-17T02:57:16+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
123    public void setSourceLocation(Locator newLocator) {
124        locator = newLocator;
125    }
126
127}
Note: See TracBrowser for help on using the repository browser.