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

Revision 359, 7.2 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 java.math.BigInteger;
25import javax.xml.bind.Unmarshaller;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlAttribute;
29import javax.xml.bind.annotation.XmlElement;
30import javax.xml.bind.annotation.XmlTransient;
31import javax.xml.bind.annotation.XmlType;
32import org.jvnet.jaxb2_commons.ppp.Child;
33
34
35/**
36 * <p>Java class for CT_RecipientData complex type.
37 *
38 * <p>The following schema fragment specifies the expected content contained within this class.
39 *
40 * <pre>
41 * &lt;complexType name="CT_RecipientData">
42 *   &lt;complexContent>
43 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
44 *       &lt;sequence>
45 *         &lt;element name="active" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
46 *         &lt;element name="column">
47 *           &lt;complexType>
48 *             &lt;complexContent>
49 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
50 *                 &lt;attribute name="val" use="required">
51 *                   &lt;simpleType>
52 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
53 *                     &lt;/restriction>
54 *                   &lt;/simpleType>
55 *                 &lt;/attribute>
56 *               &lt;/restriction>
57 *             &lt;/complexContent>
58 *           &lt;/complexType>
59 *         &lt;/element>
60 *         &lt;element name="uniqueTag" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
61 *       &lt;/sequence>
62 *     &lt;/restriction>
63 *   &lt;/complexContent>
64 * &lt;/complexType>
65 * </pre>
66 *
67 *
68 */
69@XmlAccessorType(XmlAccessType.FIELD)
70@XmlType(name = "CT_RecipientData", propOrder = {
71    "active",
72    "column",
73    "uniqueTag"
74})
75public class CTRecipientData
76    implements Child
77{
78
79    protected BooleanDefaultTrue active;
80    @XmlElement(required = true)
81    protected CTRecipientData.Column column;
82    @XmlElement(required = true)
83    protected byte[] uniqueTag;
84    @XmlTransient
85    private Object parent;
86
87    /**
88     * Gets the value of the active property.
89     *
90     * @return
91     *     possible object is
92     *     {@link BooleanDefaultTrue }
93     *     
94     */
95    public BooleanDefaultTrue getActive() {
96        return active;
97    }
98
99    /**
100     * Sets the value of the active property.
101     *
102     * @param value
103     *     allowed object is
104     *     {@link BooleanDefaultTrue }
105     *     
106     */
107    public void setActive(BooleanDefaultTrue value) {
108        this.active = value;
109    }
110
111    /**
112     * Gets the value of the column property.
113     *
114     * @return
115     *     possible object is
116     *     {@link CTRecipientData.Column }
117     *     
118     */
119    public CTRecipientData.Column getColumn() {
120        return column;
121    }
122
123    /**
124     * Sets the value of the column property.
125     *
126     * @param value
127     *     allowed object is
128     *     {@link CTRecipientData.Column }
129     *     
130     */
131    public void setColumn(CTRecipientData.Column value) {
132        this.column = value;
133    }
134
135    /**
136     * Gets the value of the uniqueTag property.
137     *
138     * @return
139     *     possible object is
140     *     byte[]
141     */
142    public byte[] getUniqueTag() {
143        return uniqueTag;
144    }
145
146    /**
147     * Sets the value of the uniqueTag property.
148     *
149     * @param value
150     *     allowed object is
151     *     byte[]
152     */
153    public void setUniqueTag(byte[] value) {
154        this.uniqueTag = ((byte[]) value);
155    }
156
157    /**
158     * Gets the parent object in the object tree representing the unmarshalled xml document.
159     *
160     * @return
161     *     The parent object.
162     */
163    public Object getParent() {
164        return this.parent;
165    }
166
167    public void setParent(Object parent) {
168        this.parent = parent;
169    }
170
171    /**
172     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
173     *
174     * @param parent
175     *     The parent object in the object tree.
176     * @param unmarshaller
177     *     The unmarshaller that generated the instance.
178     */
179    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
180        setParent(parent);
181    }
182
183
184    /**
185     * <p>Java class for anonymous complex type.
186     *
187     * <p>The following schema fragment specifies the expected content contained within this class.
188     *
189     * <pre>
190     * &lt;complexType>
191     *   &lt;complexContent>
192     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
193     *       &lt;attribute name="val" use="required">
194     *         &lt;simpleType>
195     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
196     *           &lt;/restriction>
197     *         &lt;/simpleType>
198     *       &lt;/attribute>
199     *     &lt;/restriction>
200     *   &lt;/complexContent>
201     * &lt;/complexType>
202     * </pre>
203     *
204     *
205     */
206    @XmlAccessorType(XmlAccessType.FIELD)
207    @XmlType(name = "")
208    public static class Column
209        implements Child
210    {
211
212        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
213        protected BigInteger val;
214        @XmlTransient
215        private Object parent;
216
217        /**
218         * Gets the value of the val property.
219         *
220         * @return
221         *     possible object is
222         *     {@link BigInteger }
223         *     
224         */
225        public BigInteger getVal() {
226            return val;
227        }
228
229        /**
230         * Sets the value of the val property.
231         *
232         * @param value
233         *     allowed object is
234         *     {@link BigInteger }
235         *     
236         */
237        public void setVal(BigInteger value) {
238            this.val = value;
239        }
240
241        /**
242         * Gets the parent object in the object tree representing the unmarshalled xml document.
243         *
244         * @return
245         *     The parent object.
246         */
247        public Object getParent() {
248            return this.parent;
249        }
250
251        public void setParent(Object parent) {
252            this.parent = parent;
253        }
254
255        /**
256         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
257         *
258         * @param parent
259         *     The parent object in the object tree.
260         * @param unmarshaller
261         *     The unmarshaller that generated the instance.
262         */
263        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
264            setParent(parent);
265        }
266
267    }
268
269}
Note: See TracBrowser for help on using the repository browser.