source: trunk/docx4j/src/main/java/org/docx4j/wml/GlossaryDocument.java @ 359

Revision 359, 3.6 KB checked in by jharrop, 4 years ago (diff)

Change CT_FldChar to FldChar?;
Style is freestanding, rather than an inner class of Styles.
(Other changes largely whitespace in license header)

Line 
1/*
2 *  Copyright 2007-2008, Plutext Pty Ltd.
3 *   
4 *  This file is part of docx4j.
5
6    docx4j is licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8
9    You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18
19 */
20
21
22package org.docx4j.wml;
23
24import javax.xml.bind.Unmarshaller;
25import javax.xml.bind.annotation.XmlAccessType;
26import javax.xml.bind.annotation.XmlAccessorType;
27import javax.xml.bind.annotation.XmlRootElement;
28import javax.xml.bind.annotation.XmlTransient;
29import javax.xml.bind.annotation.XmlType;
30import org.jvnet.jaxb2_commons.ppp.Child;
31
32
33/**
34 * <p>Java class for anonymous complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * &lt;complexType>
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;sequence>
43 *         &lt;element name="background" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Background" minOccurs="0"/>
44 *         &lt;element name="docParts" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_DocParts" minOccurs="0"/>
45 *       &lt;/sequence>
46 *     &lt;/restriction>
47 *   &lt;/complexContent>
48 * &lt;/complexType>
49 * </pre>
50 *
51 *
52 */
53@XmlAccessorType(XmlAccessType.FIELD)
54@XmlType(name = "", propOrder = {
55    "background",
56    "docParts"
57})
58@XmlRootElement(name = "glossaryDocument")
59public class GlossaryDocument
60    implements Child
61{
62
63    protected CTBackground background;
64    protected CTDocParts docParts;
65    @XmlTransient
66    private Object parent;
67
68    /**
69     * Gets the value of the background property.
70     *
71     * @return
72     *     possible object is
73     *     {@link CTBackground }
74     *     
75     */
76    public CTBackground getBackground() {
77        return background;
78    }
79
80    /**
81     * Sets the value of the background property.
82     *
83     * @param value
84     *     allowed object is
85     *     {@link CTBackground }
86     *     
87     */
88    public void setBackground(CTBackground value) {
89        this.background = value;
90    }
91
92    /**
93     * Gets the value of the docParts property.
94     *
95     * @return
96     *     possible object is
97     *     {@link CTDocParts }
98     *     
99     */
100    public CTDocParts getDocParts() {
101        return docParts;
102    }
103
104    /**
105     * Sets the value of the docParts property.
106     *
107     * @param value
108     *     allowed object is
109     *     {@link CTDocParts }
110     *     
111     */
112    public void setDocParts(CTDocParts value) {
113        this.docParts = value;
114    }
115
116    /**
117     * Gets the parent object in the object tree representing the unmarshalled xml document.
118     *
119     * @return
120     *     The parent object.
121     */
122    public Object getParent() {
123        return this.parent;
124    }
125
126    public void setParent(Object parent) {
127        this.parent = parent;
128    }
129
130    /**
131     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
132     *
133     * @param parent
134     *     The parent object in the object tree.
135     * @param unmarshaller
136     *     The unmarshaller that generated the instance.
137     */
138    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
139        setParent(parent);
140    }
141
142}
Note: See TracBrowser for help on using the repository browser.