source: trunk/docx4j/src/main/java/org/docx4j/wml/R.java @ 1473

Revision 1473, 46.6 KB checked in by jharrop, 13 months ago (diff)

Implement ContentAccessor? interface

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 java.util.ArrayList;
26import java.util.List;
27import javax.xml.bind.JAXBElement;
28import javax.xml.bind.Unmarshaller;
29import javax.xml.bind.annotation.XmlAccessType;
30import javax.xml.bind.annotation.XmlAccessorType;
31import javax.xml.bind.annotation.XmlAttribute;
32import javax.xml.bind.annotation.XmlElementRef;
33import javax.xml.bind.annotation.XmlElementRefs;
34import javax.xml.bind.annotation.XmlRootElement;
35import javax.xml.bind.annotation.XmlTransient;
36import javax.xml.bind.annotation.XmlType;
37import org.jvnet.jaxb2_commons.ppp.Child;
38
39
40/**
41 * <p>Java class for anonymous complex type.
42 *
43 * <p>The following schema fragment specifies the expected content contained within this class.
44 *
45 * <pre>
46 * &lt;complexType>
47 *   &lt;complexContent>
48 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
49 *       &lt;sequence>
50 *         &lt;group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_RPr" minOccurs="0"/>
51 *         &lt;group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_RunInnerContent" maxOccurs="unbounded" minOccurs="0"/>
52 *       &lt;/sequence>
53 *       &lt;attribute name="rsidRPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" />
54 *       &lt;attribute name="rsidDel" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" />
55 *       &lt;attribute name="rsidR" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LongHexNumber" />
56 *     &lt;/restriction>
57 *   &lt;/complexContent>
58 * &lt;/complexType>
59 * </pre>
60 *
61 *
62 */
63@XmlAccessorType(XmlAccessType.FIELD)
64@XmlType(name = "", propOrder = {
65    "rPr",
66    "runContent"
67})
68@XmlRootElement(name = "r")
69public class R implements Child, ContentAccessor
70{
71
72    protected RPr rPr;
73    @XmlElementRefs({
74        @XmlElementRef(name = "fldChar", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
75        @XmlElementRef(name = "endnoteRef", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
76        @XmlElementRef(name = "footnoteReference", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
77        @XmlElementRef(name = "softHyphen", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
78        @XmlElementRef(name = "noBreakHyphen", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
79        @XmlElementRef(name = "endnoteReference", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
80        @XmlElementRef(name = "separator", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
81        @XmlElementRef(name = "pgNum", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
82        @XmlElementRef(name = "ruby", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
83        @XmlElementRef(name = "yearShort", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
84        @XmlElementRef(name = "tab", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
85        @XmlElementRef(name = "commentReference", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
86        @XmlElementRef(name = "delInstrText", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
87        @XmlElementRef(name = "monthLong", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
88        @XmlElementRef(name = "ptab", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
89        @XmlElementRef(name = "sym", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
90        @XmlElementRef(name = "footnoteRef", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
91        @XmlElementRef(name = "instrText", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
92        @XmlElementRef(name = "lastRenderedPageBreak", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
93        @XmlElementRef(name = "object", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
94        @XmlElementRef(name = "monthShort", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
95        @XmlElementRef(name = "pict", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
96        @XmlElementRef(name = "br", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = Br.class),
97        @XmlElementRef(name = "annotationRef", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
98        @XmlElementRef(name = "dayShort", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
99        @XmlElementRef(name = "t", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
100        @XmlElementRef(name = "cr", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
101        @XmlElementRef(name = "yearLong", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
102        @XmlElementRef(name = "continuationSeparator", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
103        @XmlElementRef(name = "drawing", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
104        @XmlElementRef(name = "delText", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = DelText.class),
105        @XmlElementRef(name = "dayLong", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class)
106    })
107    protected List<Object> runContent;
108    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
109    protected String rsidRPr;
110    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
111    protected String rsidDel;
112    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
113    protected String rsidR;
114    @XmlTransient
115    private Object parent;
116
117    /**
118     * Gets the value of the rPr property.
119     *
120     * @return
121     *     possible object is
122     *     {@link RPr }
123     *     
124     */
125    public RPr getRPr() {
126        return rPr;
127    }
128
129    /**
130     * Sets the value of the rPr property.
131     *
132     * @param value
133     *     allowed object is
134     *     {@link RPr }
135     *     
136     */
137    public void setRPr(RPr value) {
138        this.rPr = value;
139    }
140
141    /**
142     * Gets the value of the runContent property.
143     *
144     * <p>
145     * This accessor method returns a reference to the live list,
146     * not a snapshot. Therefore any modification you make to the
147     * returned list will be present inside the JAXB object.
148     * This is why there is not a <CODE>set</CODE> method for the runContent property.
149     *
150     * <p>
151     * For example, to add a new item, do as follows:
152     * <pre>
153     *    getRunContent().add(newItem);
154     * </pre>
155     *
156     *
157     * <p>
158     * Objects of the following type(s) are allowed in the list
159     * {@link JAXBElement }{@code <}{@link FldChar }{@code >}
160     * {@link JAXBElement }{@code <}{@link R.EndnoteRef }{@code >}
161     * {@link JAXBElement }{@code <}{@link CTFtnEdnRef }{@code >}
162     * {@link JAXBElement }{@code <}{@link R.SoftHyphen }{@code >}
163     * {@link JAXBElement }{@code <}{@link R.NoBreakHyphen }{@code >}
164     * {@link JAXBElement }{@code <}{@link CTFtnEdnRef }{@code >}
165     * {@link JAXBElement }{@code <}{@link R.Separator }{@code >}
166     * {@link JAXBElement }{@code <}{@link R.PgNum }{@code >}
167     * {@link JAXBElement }{@code <}{@link CTRuby }{@code >}
168     * {@link JAXBElement }{@code <}{@link R.YearShort }{@code >}
169     * {@link JAXBElement }{@code <}{@link R.Tab }{@code >}
170     * {@link JAXBElement }{@code <}{@link R.CommentReference }{@code >}
171     * {@link JAXBElement }{@code <}{@link Text }{@code >}
172     * {@link JAXBElement }{@code <}{@link R.MonthLong }{@code >}
173     * {@link JAXBElement }{@code <}{@link R.Ptab }{@code >}
174     * {@link JAXBElement }{@code <}{@link R.Sym }{@code >}
175     * {@link JAXBElement }{@code <}{@link R.FootnoteRef }{@code >}
176     * {@link JAXBElement }{@code <}{@link Text }{@code >}
177     * {@link JAXBElement }{@code <}{@link R.LastRenderedPageBreak }{@code >}
178     * {@link JAXBElement }{@code <}{@link CTObject }{@code >}
179     * {@link JAXBElement }{@code <}{@link R.MonthShort }{@code >}
180     * {@link JAXBElement }{@code <}{@link Pict }{@code >}
181     * {@link Br }
182     * {@link JAXBElement }{@code <}{@link R.AnnotationRef }{@code >}
183     * {@link JAXBElement }{@code <}{@link R.DayShort }{@code >}
184     * {@link JAXBElement }{@code <}{@link Text }{@code >}
185     * {@link JAXBElement }{@code <}{@link R.Cr }{@code >}
186     * {@link JAXBElement }{@code <}{@link R.YearLong }{@code >}
187     * {@link JAXBElement }{@code <}{@link Drawing }{@code >}
188     * {@link JAXBElement }{@code <}{@link R.ContinuationSeparator }{@code >}
189     * {@link JAXBElement }{@code <}{@link R.DayLong }{@code >}
190     * {@link DelText }
191     *
192     *
193     */
194    @Deprecated
195    public List<Object> getRunContent() {
196        if (runContent == null) {
197            runContent = new ArrayList<Object>();
198        }
199        return this.runContent;
200    }
201
202    /**
203     * Get the content of this element.
204     * @since 2.7
205     */   
206    public List<Object> getContent() {
207        if (runContent == null) {
208            runContent = new ArrayList<Object>();
209        }
210        return this.runContent;
211    }
212   
213    /**
214     * Gets the value of the rsidRPr property.
215     *
216     * @return
217     *     possible object is
218     *     {@link String }
219     *     
220     */
221    public String getRsidRPr() {
222        return rsidRPr;
223    }
224
225    /**
226     * Sets the value of the rsidRPr property.
227     *
228     * @param value
229     *     allowed object is
230     *     {@link String }
231     *     
232     */
233    public void setRsidRPr(String value) {
234        this.rsidRPr = value;
235    }
236
237    /**
238     * Gets the value of the rsidDel property.
239     *
240     * @return
241     *     possible object is
242     *     {@link String }
243     *     
244     */
245    public String getRsidDel() {
246        return rsidDel;
247    }
248
249    /**
250     * Sets the value of the rsidDel property.
251     *
252     * @param value
253     *     allowed object is
254     *     {@link String }
255     *     
256     */
257    public void setRsidDel(String value) {
258        this.rsidDel = value;
259    }
260
261    /**
262     * Gets the value of the rsidR property.
263     *
264     * @return
265     *     possible object is
266     *     {@link String }
267     *     
268     */
269    public String getRsidR() {
270        return rsidR;
271    }
272
273    /**
274     * Sets the value of the rsidR property.
275     *
276     * @param value
277     *     allowed object is
278     *     {@link String }
279     *     
280     */
281    public void setRsidR(String value) {
282        this.rsidR = value;
283    }
284
285    /**
286     * Gets the parent object in the object tree representing the unmarshalled xml document.
287     *
288     * @return
289     *     The parent object.
290     */
291    public Object getParent() {
292        return this.parent;
293    }
294
295    public void setParent(Object parent) {
296        this.parent = parent;
297    }
298
299    /**
300     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
301     *
302     * @param parent
303     *     The parent object in the object tree.
304     * @param unmarshaller
305     *     The unmarshaller that generated the instance.
306     */
307    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
308        setParent(parent);
309    }
310
311
312    /**
313     * <p>Java class for anonymous complex type.
314     *
315     * <p>The following schema fragment specifies the expected content contained within this class.
316     *
317     * <pre>
318     * &lt;complexType>
319     *   &lt;complexContent>
320     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
321     *     &lt;/restriction>
322     *   &lt;/complexContent>
323     * &lt;/complexType>
324     * </pre>
325     *
326     *
327     */
328    @XmlAccessorType(XmlAccessType.FIELD)
329    @XmlType(name = "")
330    @XmlRootElement(name = "annotationRef")
331    public static class AnnotationRef
332        implements Child
333    {
334
335        @XmlTransient
336        private Object parent;
337
338        /**
339         * Gets the parent object in the object tree representing the unmarshalled xml document.
340         *
341         * @return
342         *     The parent object.
343         */
344        public Object getParent() {
345            return this.parent;
346        }
347
348        public void setParent(Object parent) {
349            this.parent = parent;
350        }
351
352        /**
353         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
354         *
355         * @param parent
356         *     The parent object in the object tree.
357         * @param unmarshaller
358         *     The unmarshaller that generated the instance.
359         */
360        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
361            setParent(parent);
362        }
363
364    }
365
366
367    /**
368     * <p>Java class for anonymous complex type.
369     *
370     * <p>The following schema fragment specifies the expected content contained within this class.
371     *
372     * <pre>
373     * &lt;complexType>
374     *   &lt;complexContent>
375     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
376     *       &lt;attribute name="id" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
377     *     &lt;/restriction>
378     *   &lt;/complexContent>
379     * &lt;/complexType>
380     * </pre>
381     *
382     *
383     */
384    @XmlAccessorType(XmlAccessType.FIELD)
385    @XmlType(name = "")
386    @XmlRootElement(name = "commentReference")   
387    public static class CommentReference
388        implements Child
389    {
390
391        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
392        protected BigInteger id;
393        @XmlTransient
394        private Object parent;
395
396        /**
397         * Gets the value of the id property.
398         *
399         * @return
400         *     possible object is
401         *     {@link BigInteger }
402         *     
403         */
404        public BigInteger getId() {
405            return id;
406        }
407
408        /**
409         * Sets the value of the id property.
410         *
411         * @param value
412         *     allowed object is
413         *     {@link BigInteger }
414         *     
415         */
416        public void setId(BigInteger value) {
417            this.id = value;
418        }
419
420        /**
421         * Gets the parent object in the object tree representing the unmarshalled xml document.
422         *
423         * @return
424         *     The parent object.
425         */
426        public Object getParent() {
427            return this.parent;
428        }
429
430        public void setParent(Object parent) {
431            this.parent = parent;
432        }
433
434        /**
435         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
436         *
437         * @param parent
438         *     The parent object in the object tree.
439         * @param unmarshaller
440         *     The unmarshaller that generated the instance.
441         */
442        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
443            setParent(parent);
444        }
445
446    }
447
448
449    /**
450     * <p>Java class for anonymous complex type.
451     *
452     * <p>The following schema fragment specifies the expected content contained within this class.
453     *
454     * <pre>
455     * &lt;complexType>
456     *   &lt;complexContent>
457     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
458     *     &lt;/restriction>
459     *   &lt;/complexContent>
460     * &lt;/complexType>
461     * </pre>
462     *
463     *
464     */
465    @XmlAccessorType(XmlAccessType.FIELD)
466    @XmlType(name = "")
467    @XmlRootElement(name = "continuationSeparator")
468    public static class ContinuationSeparator
469        implements Child
470    {
471
472        @XmlTransient
473        private Object parent;
474
475        /**
476         * Gets the parent object in the object tree representing the unmarshalled xml document.
477         *
478         * @return
479         *     The parent object.
480         */
481        public Object getParent() {
482            return this.parent;
483        }
484
485        public void setParent(Object parent) {
486            this.parent = parent;
487        }
488
489        /**
490         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
491         *
492         * @param parent
493         *     The parent object in the object tree.
494         * @param unmarshaller
495         *     The unmarshaller that generated the instance.
496         */
497        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
498            setParent(parent);
499        }
500
501    }
502
503
504    /**
505     * <p>Java class for anonymous complex type.
506     *
507     * <p>The following schema fragment specifies the expected content contained within this class.
508     *
509     * <pre>
510     * &lt;complexType>
511     *   &lt;complexContent>
512     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
513     *     &lt;/restriction>
514     *   &lt;/complexContent>
515     * &lt;/complexType>
516     * </pre>
517     *
518     *
519     */
520    @XmlAccessorType(XmlAccessType.FIELD)
521    @XmlType(name = "")
522    @XmlRootElement(name = "cr")   
523    public static class Cr
524        implements Child
525    {
526
527        @XmlTransient
528        private Object parent;
529
530        /**
531         * Gets the parent object in the object tree representing the unmarshalled xml document.
532         *
533         * @return
534         *     The parent object.
535         */
536        public Object getParent() {
537            return this.parent;
538        }
539
540        public void setParent(Object parent) {
541            this.parent = parent;
542        }
543
544        /**
545         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
546         *
547         * @param parent
548         *     The parent object in the object tree.
549         * @param unmarshaller
550         *     The unmarshaller that generated the instance.
551         */
552        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
553            setParent(parent);
554        }
555
556    }
557
558
559    /**
560     * <p>Java class for anonymous complex type.
561     *
562     * <p>The following schema fragment specifies the expected content contained within this class.
563     *
564     * <pre>
565     * &lt;complexType>
566     *   &lt;complexContent>
567     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
568     *     &lt;/restriction>
569     *   &lt;/complexContent>
570     * &lt;/complexType>
571     * </pre>
572     *
573     *
574     */
575    @XmlAccessorType(XmlAccessType.FIELD)
576    @XmlType(name = "")
577    @XmlRootElement(name = "dayLong")   
578    public static class DayLong
579        implements Child
580    {
581
582        @XmlTransient
583        private Object parent;
584
585        /**
586         * Gets the parent object in the object tree representing the unmarshalled xml document.
587         *
588         * @return
589         *     The parent object.
590         */
591        public Object getParent() {
592            return this.parent;
593        }
594
595        public void setParent(Object parent) {
596            this.parent = parent;
597        }
598
599        /**
600         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
601         *
602         * @param parent
603         *     The parent object in the object tree.
604         * @param unmarshaller
605         *     The unmarshaller that generated the instance.
606         */
607        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
608            setParent(parent);
609        }
610
611    }
612
613
614    /**
615     * <p>Java class for anonymous complex type.
616     *
617     * <p>The following schema fragment specifies the expected content contained within this class.
618     *
619     * <pre>
620     * &lt;complexType>
621     *   &lt;complexContent>
622     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
623     *     &lt;/restriction>
624     *   &lt;/complexContent>
625     * &lt;/complexType>
626     * </pre>
627     *
628     *
629     */
630    @XmlAccessorType(XmlAccessType.FIELD)
631    @XmlType(name = "")
632    @XmlRootElement(name = "dayShort")   
633    public static class DayShort
634        implements Child
635    {
636
637        @XmlTransient
638        private Object parent;
639
640        /**
641         * Gets the parent object in the object tree representing the unmarshalled xml document.
642         *
643         * @return
644         *     The parent object.
645         */
646        public Object getParent() {
647            return this.parent;
648        }
649
650        public void setParent(Object parent) {
651            this.parent = parent;
652        }
653
654        /**
655         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
656         *
657         * @param parent
658         *     The parent object in the object tree.
659         * @param unmarshaller
660         *     The unmarshaller that generated the instance.
661         */
662        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
663            setParent(parent);
664        }
665
666    }
667
668
669    /**
670     * <p>Java class for anonymous complex type.
671     *
672     * <p>The following schema fragment specifies the expected content contained within this class.
673     *
674     * <pre>
675     * &lt;complexType>
676     *   &lt;complexContent>
677     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
678     *     &lt;/restriction>
679     *   &lt;/complexContent>
680     * &lt;/complexType>
681     * </pre>
682     *
683     *
684     */
685    @XmlAccessorType(XmlAccessType.FIELD)
686    @XmlType(name = "")
687    @XmlRootElement(name = "endnoteRef")   
688    public static class EndnoteRef
689        implements Child
690    {
691
692        @XmlTransient
693        private Object parent;
694
695        /**
696         * Gets the parent object in the object tree representing the unmarshalled xml document.
697         *
698         * @return
699         *     The parent object.
700         */
701        public Object getParent() {
702            return this.parent;
703        }
704
705        public void setParent(Object parent) {
706            this.parent = parent;
707        }
708
709        /**
710         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
711         *
712         * @param parent
713         *     The parent object in the object tree.
714         * @param unmarshaller
715         *     The unmarshaller that generated the instance.
716         */
717        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
718            setParent(parent);
719        }
720
721    }
722
723
724    /**
725     * <p>Java class for anonymous complex type.
726     *
727     * <p>The following schema fragment specifies the expected content contained within this class.
728     *
729     * <pre>
730     * &lt;complexType>
731     *   &lt;complexContent>
732     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
733     *     &lt;/restriction>
734     *   &lt;/complexContent>
735     * &lt;/complexType>
736     * </pre>
737     *
738     *
739     */
740    @XmlAccessorType(XmlAccessType.FIELD)
741    @XmlType(name = "")
742    @XmlRootElement(name = "footnoteRef")   
743    public static class FootnoteRef
744        implements Child
745    {
746
747        @XmlTransient
748        private Object parent;
749
750        /**
751         * Gets the parent object in the object tree representing the unmarshalled xml document.
752         *
753         * @return
754         *     The parent object.
755         */
756        public Object getParent() {
757            return this.parent;
758        }
759
760        public void setParent(Object parent) {
761            this.parent = parent;
762        }
763
764        /**
765         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
766         *
767         * @param parent
768         *     The parent object in the object tree.
769         * @param unmarshaller
770         *     The unmarshaller that generated the instance.
771         */
772        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
773            setParent(parent);
774        }
775
776    }
777
778
779    /**
780     * <p>Java class for anonymous complex type.
781     *
782     * <p>The following schema fragment specifies the expected content contained within this class.
783     *
784     * <pre>
785     * &lt;complexType>
786     *   &lt;complexContent>
787     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
788     *     &lt;/restriction>
789     *   &lt;/complexContent>
790     * &lt;/complexType>
791     * </pre>
792     *
793     *
794     */
795    @XmlAccessorType(XmlAccessType.FIELD)
796    @XmlType(name = "")
797    @XmlRootElement(name = "lastRenderedPageBreak")   
798    public static class LastRenderedPageBreak
799        implements Child
800    {
801
802        @XmlTransient
803        private Object parent;
804
805        /**
806         * Gets the parent object in the object tree representing the unmarshalled xml document.
807         *
808         * @return
809         *     The parent object.
810         */
811        public Object getParent() {
812            return this.parent;
813        }
814
815        public void setParent(Object parent) {
816            this.parent = parent;
817        }
818
819        /**
820         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
821         *
822         * @param parent
823         *     The parent object in the object tree.
824         * @param unmarshaller
825         *     The unmarshaller that generated the instance.
826         */
827        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
828            setParent(parent);
829        }
830
831    }
832
833
834    /**
835     * <p>Java class for anonymous complex type.
836     *
837     * <p>The following schema fragment specifies the expected content contained within this class.
838     *
839     * <pre>
840     * &lt;complexType>
841     *   &lt;complexContent>
842     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
843     *     &lt;/restriction>
844     *   &lt;/complexContent>
845     * &lt;/complexType>
846     * </pre>
847     *
848     *
849     */
850    @XmlAccessorType(XmlAccessType.FIELD)
851    @XmlType(name = "")
852    @XmlRootElement(name = "monthLong")   
853    public static class MonthLong
854        implements Child
855    {
856
857        @XmlTransient
858        private Object parent;
859
860        /**
861         * Gets the parent object in the object tree representing the unmarshalled xml document.
862         *
863         * @return
864         *     The parent object.
865         */
866        public Object getParent() {
867            return this.parent;
868        }
869
870        public void setParent(Object parent) {
871            this.parent = parent;
872        }
873
874        /**
875         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
876         *
877         * @param parent
878         *     The parent object in the object tree.
879         * @param unmarshaller
880         *     The unmarshaller that generated the instance.
881         */
882        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
883            setParent(parent);
884        }
885
886    }
887
888
889    /**
890     * <p>Java class for anonymous complex type.
891     *
892     * <p>The following schema fragment specifies the expected content contained within this class.
893     *
894     * <pre>
895     * &lt;complexType>
896     *   &lt;complexContent>
897     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
898     *     &lt;/restriction>
899     *   &lt;/complexContent>
900     * &lt;/complexType>
901     * </pre>
902     *
903     *
904     */
905    @XmlAccessorType(XmlAccessType.FIELD)
906    @XmlType(name = "")
907    @XmlRootElement(name = "monthShort")       
908    public static class MonthShort
909        implements Child
910    {
911
912        @XmlTransient
913        private Object parent;
914
915        /**
916         * Gets the parent object in the object tree representing the unmarshalled xml document.
917         *
918         * @return
919         *     The parent object.
920         */
921        public Object getParent() {
922            return this.parent;
923        }
924
925        public void setParent(Object parent) {
926            this.parent = parent;
927        }
928
929        /**
930         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
931         *
932         * @param parent
933         *     The parent object in the object tree.
934         * @param unmarshaller
935         *     The unmarshaller that generated the instance.
936         */
937        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
938            setParent(parent);
939        }
940
941    }
942
943
944    /**
945     * <p>Java class for anonymous complex type.
946     *
947     * <p>The following schema fragment specifies the expected content contained within this class.
948     *
949     * <pre>
950     * &lt;complexType>
951     *   &lt;complexContent>
952     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
953     *     &lt;/restriction>
954     *   &lt;/complexContent>
955     * &lt;/complexType>
956     * </pre>
957     *
958     *
959     */
960    @XmlAccessorType(XmlAccessType.FIELD)
961    @XmlType(name = "")
962    @XmlRootElement(name = "noBreakHyphen")       
963    public static class NoBreakHyphen
964        implements Child
965    {
966
967        @XmlTransient
968        private Object parent;
969
970        /**
971         * Gets the parent object in the object tree representing the unmarshalled xml document.
972         *
973         * @return
974         *     The parent object.
975         */
976        public Object getParent() {
977            return this.parent;
978        }
979
980        public void setParent(Object parent) {
981            this.parent = parent;
982        }
983
984        /**
985         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
986         *
987         * @param parent
988         *     The parent object in the object tree.
989         * @param unmarshaller
990         *     The unmarshaller that generated the instance.
991         */
992        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
993            setParent(parent);
994        }
995
996    }
997
998
999    /**
1000     * <p>Java class for anonymous complex type.
1001     *
1002     * <p>The following schema fragment specifies the expected content contained within this class.
1003     *
1004     * <pre>
1005     * &lt;complexType>
1006     *   &lt;complexContent>
1007     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
1008     *     &lt;/restriction>
1009     *   &lt;/complexContent>
1010     * &lt;/complexType>
1011     * </pre>
1012     *
1013     *
1014     */
1015    @XmlAccessorType(XmlAccessType.FIELD)
1016    @XmlType(name = "")
1017    @XmlRootElement(name = "pgNum")           
1018    public static class PgNum
1019        implements Child
1020    {
1021
1022        @XmlTransient
1023        private Object parent;
1024
1025        /**
1026         * Gets the parent object in the object tree representing the unmarshalled xml document.
1027         *
1028         * @return
1029         *     The parent object.
1030         */
1031        public Object getParent() {
1032            return this.parent;
1033        }
1034
1035        public void setParent(Object parent) {
1036            this.parent = parent;
1037        }
1038
1039        /**
1040         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
1041         *
1042         * @param parent
1043         *     The parent object in the object tree.
1044         * @param unmarshaller
1045         *     The unmarshaller that generated the instance.
1046         */
1047        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
1048            setParent(parent);
1049        }
1050
1051    }
1052
1053
1054    /**
1055     * <p>Java class for anonymous complex type.
1056     *
1057     * <p>The following schema fragment specifies the expected content contained within this class.
1058     *
1059     * <pre>
1060     * &lt;complexType>
1061     *   &lt;complexContent>
1062     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
1063     *       &lt;attribute name="alignment" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_PTabAlignment" />
1064     *       &lt;attribute name="relativeTo" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_PTabRelativeTo" />
1065     *       &lt;attribute name="leader" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_PTabLeader" />
1066     *     &lt;/restriction>
1067     *   &lt;/complexContent>
1068     * &lt;/complexType>
1069     * </pre>
1070     *
1071     *
1072     */
1073    @XmlAccessorType(XmlAccessType.FIELD)
1074    @XmlType(name = "")
1075    @XmlRootElement(name = "ptab")           
1076    public static class Ptab
1077        implements Child
1078    {
1079
1080        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
1081        protected STPTabAlignment alignment;
1082        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
1083        protected STPTabRelativeTo relativeTo;
1084        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
1085        protected STPTabLeader leader;
1086        @XmlTransient
1087        private Object parent;
1088
1089        /**
1090         * Gets the value of the alignment property.
1091         *
1092         * @return
1093         *     possible object is
1094         *     {@link STPTabAlignment }
1095         *     
1096         */
1097        public STPTabAlignment getAlignment() {
1098            return alignment;
1099        }
1100
1101        /**
1102         * Sets the value of the alignment property.
1103         *
1104         * @param value
1105         *     allowed object is
1106         *     {@link STPTabAlignment }
1107         *     
1108         */
1109        public void setAlignment(STPTabAlignment value) {
1110            this.alignment = value;
1111        }
1112
1113        /**
1114         * Gets the value of the relativeTo property.
1115         *
1116         * @return
1117         *     possible object is
1118         *     {@link STPTabRelativeTo }
1119         *     
1120         */
1121        public STPTabRelativeTo getRelativeTo() {
1122            return relativeTo;
1123        }
1124
1125        /**
1126         * Sets the value of the relativeTo property.
1127         *
1128         * @param value
1129         *     allowed object is
1130         *     {@link STPTabRelativeTo }
1131         *     
1132         */
1133        public void setRelativeTo(STPTabRelativeTo value) {
1134            this.relativeTo = value;
1135        }
1136
1137        /**
1138         * Gets the value of the leader property.
1139         *
1140         * @return
1141         *     possible object is
1142         *     {@link STPTabLeader }
1143         *     
1144         */
1145        public STPTabLeader getLeader() {
1146            return leader;
1147        }
1148
1149        /**
1150         * Sets the value of the leader property.
1151         *
1152         * @param value
1153         *     allowed object is
1154         *     {@link STPTabLeader }
1155         *     
1156         */
1157        public void setLeader(STPTabLeader value) {
1158            this.leader = value;
1159        }
1160
1161        /**
1162         * Gets the parent object in the object tree representing the unmarshalled xml document.
1163         *
1164         * @return
1165         *     The parent object.
1166         */
1167        public Object getParent() {
1168            return this.parent;
1169        }
1170
1171        public void setParent(Object parent) {
1172            this.parent = parent;
1173        }
1174
1175        /**
1176         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
1177         *
1178         * @param parent
1179         *     The parent object in the object tree.
1180         * @param unmarshaller
1181         *     The unmarshaller that generated the instance.
1182         */
1183        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
1184            setParent(parent);
1185        }
1186
1187    }
1188
1189
1190    /**
1191     * <p>Java class for anonymous complex type.
1192     *
1193     * <p>The following schema fragment specifies the expected content contained within this class.
1194     *
1195     * <pre>
1196     * &lt;complexType>
1197     *   &lt;complexContent>
1198     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
1199     *     &lt;/restriction>
1200     *   &lt;/complexContent>
1201     * &lt;/complexType>
1202     * </pre>
1203     *
1204     *
1205     */
1206    @XmlAccessorType(XmlAccessType.FIELD)
1207    @XmlType(name = "")
1208    @XmlRootElement(name = "separator")           
1209    public static class Separator
1210        implements Child
1211    {
1212
1213        @XmlTransient
1214        private Object parent;
1215
1216        /**
1217         * Gets the parent object in the object tree representing the unmarshalled xml document.
1218         *
1219         * @return
1220         *     The parent object.
1221         */
1222        public Object getParent() {
1223            return this.parent;
1224        }
1225
1226        public void setParent(Object parent) {
1227            this.parent = parent;
1228        }
1229
1230        /**
1231         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
1232         *
1233         * @param parent
1234         *     The parent object in the object tree.
1235         * @param unmarshaller
1236         *     The unmarshaller that generated the instance.
1237         */
1238        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
1239            setParent(parent);
1240        }
1241
1242    }
1243
1244
1245    /**
1246     * <p>Java class for anonymous complex type.
1247     *
1248     * <p>The following schema fragment specifies the expected content contained within this class.
1249     *
1250     * <pre>
1251     * &lt;complexType>
1252     *   &lt;complexContent>
1253     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
1254     *     &lt;/restriction>
1255     *   &lt;/complexContent>
1256     * &lt;/complexType>
1257     * </pre>
1258     *
1259     *
1260     */
1261    @XmlAccessorType(XmlAccessType.FIELD)
1262    @XmlType(name = "")
1263    @XmlRootElement(name = "softHyphen")           
1264    public static class SoftHyphen
1265        implements Child
1266    {
1267
1268        @XmlTransient
1269        private Object parent;
1270
1271        /**
1272         * Gets the parent object in the object tree representing the unmarshalled xml document.
1273         *
1274         * @return
1275         *     The parent object.
1276         */
1277        public Object getParent() {
1278            return this.parent;
1279        }
1280
1281        public void setParent(Object parent) {
1282            this.parent = parent;
1283        }
1284
1285        /**
1286         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
1287         *
1288         * @param parent
1289         *     The parent object in the object tree.
1290         * @param unmarshaller
1291         *     The unmarshaller that generated the instance.
1292         */
1293        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
1294            setParent(parent);
1295        }
1296
1297    }
1298
1299
1300    /**
1301     * <p>Java class for anonymous complex type.
1302     *
1303     * <p>The following schema fragment specifies the expected content contained within this class.
1304     *
1305     * <pre>
1306     * &lt;complexType>
1307     *   &lt;complexContent>
1308     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
1309     *       &lt;attribute name="font" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
1310     *       &lt;attribute name="char" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ShortHexNumber" />
1311     *     &lt;/restriction>
1312     *   &lt;/complexContent>
1313     * &lt;/complexType>
1314     * </pre>
1315     *
1316     *
1317     */
1318    @XmlAccessorType(XmlAccessType.FIELD)
1319    @XmlType(name = "")
1320    @XmlRootElement(name = "sym")           
1321    public static class Sym
1322        implements Child
1323    {
1324
1325        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
1326        protected String font;
1327        @XmlAttribute(name = "char", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
1328        protected String _char;
1329        @XmlTransient
1330        private Object parent;
1331
1332        /**
1333         * Gets the value of the font property.
1334         *
1335         * @return
1336         *     possible object is
1337         *     {@link String }
1338         *     
1339         */
1340        public String getFont() {
1341            return font;
1342        }
1343
1344        /**
1345         * Sets the value of the font property.
1346         *
1347         * @param value
1348         *     allowed object is
1349         *     {@link String }
1350         *     
1351         */
1352        public void setFont(String value) {
1353            this.font = value;
1354        }
1355
1356        /**
1357         * Gets the value of the char property.
1358         *
1359         * @return
1360         *     possible object is
1361         *     {@link String }
1362         *     
1363         */
1364        public String getChar() {
1365            return _char;
1366        }
1367
1368        /**
1369         * Sets the value of the char property.
1370         *
1371         * @param value
1372         *     allowed object is
1373         *     {@link String }
1374         *     
1375         */
1376        public void setChar(String value) {
1377            this._char = value;
1378        }
1379
1380        /**
1381         * Gets the parent object in the object tree representing the unmarshalled xml document.
1382         *
1383         * @return
1384         *     The parent object.
1385         */
1386        public Object getParent() {
1387            return this.parent;
1388        }
1389
1390        public void setParent(Object parent) {
1391            this.parent = parent;
1392        }
1393
1394        /**
1395         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
1396         *
1397         * @param parent
1398         *     The parent object in the object tree.
1399         * @param unmarshaller
1400         *     The unmarshaller that generated the instance.
1401         */
1402        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
1403            setParent(parent);
1404        }
1405
1406    }
1407
1408
1409    /**
1410     * <p>Java class for anonymous complex type.
1411     *
1412     * <p>The following schema fragment specifies the expected content contained within this class.
1413     *
1414     * <pre>
1415     * &lt;complexType>
1416     *   &lt;complexContent>
1417     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
1418     *     &lt;/restriction>
1419     *   &lt;/complexContent>
1420     * &lt;/complexType>
1421     * </pre>
1422     *
1423     *
1424     */
1425    @XmlAccessorType(XmlAccessType.FIELD)
1426    @XmlType(name = "")
1427    @XmlRootElement(name = "tab")           
1428    public static class Tab
1429        implements Child
1430    {
1431
1432        @XmlTransient
1433        private Object parent;
1434
1435        /**
1436         * Gets the parent object in the object tree representing the unmarshalled xml document.
1437         *
1438         * @return
1439         *     The parent object.
1440         */
1441        public Object getParent() {
1442            return this.parent;
1443        }
1444
1445        public void setParent(Object parent) {
1446            this.parent = parent;
1447        }
1448
1449        /**
1450         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
1451         *
1452         * @param parent
1453         *     The parent object in the object tree.
1454         * @param unmarshaller
1455         *     The unmarshaller that generated the instance.
1456         */
1457        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
1458            setParent(parent);
1459        }
1460
1461    }
1462
1463
1464    /**
1465     * <p>Java class for anonymous complex type.
1466     *
1467     * <p>The following schema fragment specifies the expected content contained within this class.
1468     *
1469     * <pre>
1470     * &lt;complexType>
1471     *   &lt;complexContent>
1472     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
1473     *     &lt;/restriction>
1474     *   &lt;/complexContent>
1475     * &lt;/complexType>
1476     * </pre>
1477     *
1478     *
1479     */
1480    @XmlAccessorType(XmlAccessType.FIELD)
1481    @XmlType(name = "")
1482    @XmlRootElement(name = "yearLong")           
1483    public static class YearLong
1484        implements Child
1485    {
1486
1487        @XmlTransient
1488        private Object parent;
1489
1490        /**
1491         * Gets the parent object in the object tree representing the unmarshalled xml document.
1492         *
1493         * @return
1494         *     The parent object.
1495         */
1496        public Object getParent() {
1497            return this.parent;
1498        }
1499
1500        public void setParent(Object parent) {
1501            this.parent = parent;
1502        }
1503
1504        /**
1505         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
1506         *
1507         * @param parent
1508         *     The parent object in the object tree.
1509         * @param unmarshaller
1510         *     The unmarshaller that generated the instance.
1511         */
1512        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
1513            setParent(parent);
1514        }
1515
1516    }
1517
1518
1519    /**
1520     * <p>Java class for anonymous complex type.
1521     *
1522     * <p>The following schema fragment specifies the expected content contained within this class.
1523     *
1524     * <pre>
1525     * &lt;complexType>
1526     *   &lt;complexContent>
1527     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
1528     *     &lt;/restriction>
1529     *   &lt;/complexContent>
1530     * &lt;/complexType>
1531     * </pre>
1532     *
1533     *
1534     */
1535    @XmlAccessorType(XmlAccessType.FIELD)
1536    @XmlType(name = "")
1537    @XmlRootElement(name = "yearShort")           
1538    public static class YearShort
1539        implements Child
1540    {
1541
1542        @XmlTransient
1543        private Object parent;
1544
1545        /**
1546         * Gets the parent object in the object tree representing the unmarshalled xml document.
1547         *
1548         * @return
1549         *     The parent object.
1550         */
1551        public Object getParent() {
1552            return this.parent;
1553        }
1554
1555        public void setParent(Object parent) {
1556            this.parent = parent;
1557        }
1558
1559        /**
1560         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
1561         *
1562         * @param parent
1563         *     The parent object in the object tree.
1564         * @param unmarshaller
1565         *     The unmarshaller that generated the instance.
1566         */
1567        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
1568            setParent(parent);
1569        }
1570
1571    }
1572
1573}
Note: See TracBrowser for help on using the repository browser.