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

Revision 359, 4.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 javax.xml.bind.Unmarshaller;
25import javax.xml.bind.annotation.XmlAccessType;
26import javax.xml.bind.annotation.XmlAccessorType;
27import javax.xml.bind.annotation.XmlElement;
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 CT_Ruby complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * &lt;complexType name="CT_Ruby">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;sequence>
43 *         &lt;element name="rubyPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_RubyPr"/>
44 *         &lt;element name="rt" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_RubyContent"/>
45 *         &lt;element name="rubyBase" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_RubyContent"/>
46 *       &lt;/sequence>
47 *     &lt;/restriction>
48 *   &lt;/complexContent>
49 * &lt;/complexType>
50 * </pre>
51 *
52 *
53 */
54@XmlAccessorType(XmlAccessType.FIELD)
55@XmlType(name = "CT_Ruby", propOrder = {
56    "rubyPr",
57    "rt",
58    "rubyBase"
59})
60public class CTRuby
61    implements Child
62{
63
64    @XmlElement(required = true)
65    protected CTRubyPr rubyPr;
66    @XmlElement(required = true)
67    protected CTRubyContent rt;
68    @XmlElement(required = true)
69    protected CTRubyContent rubyBase;
70    @XmlTransient
71    private Object parent;
72
73    /**
74     * Gets the value of the rubyPr property.
75     *
76     * @return
77     *     possible object is
78     *     {@link CTRubyPr }
79     *     
80     */
81    public CTRubyPr getRubyPr() {
82        return rubyPr;
83    }
84
85    /**
86     * Sets the value of the rubyPr property.
87     *
88     * @param value
89     *     allowed object is
90     *     {@link CTRubyPr }
91     *     
92     */
93    public void setRubyPr(CTRubyPr value) {
94        this.rubyPr = value;
95    }
96
97    /**
98     * Gets the value of the rt property.
99     *
100     * @return
101     *     possible object is
102     *     {@link CTRubyContent }
103     *     
104     */
105    public CTRubyContent getRt() {
106        return rt;
107    }
108
109    /**
110     * Sets the value of the rt property.
111     *
112     * @param value
113     *     allowed object is
114     *     {@link CTRubyContent }
115     *     
116     */
117    public void setRt(CTRubyContent value) {
118        this.rt = value;
119    }
120
121    /**
122     * Gets the value of the rubyBase property.
123     *
124     * @return
125     *     possible object is
126     *     {@link CTRubyContent }
127     *     
128     */
129    public CTRubyContent getRubyBase() {
130        return rubyBase;
131    }
132
133    /**
134     * Sets the value of the rubyBase property.
135     *
136     * @param value
137     *     allowed object is
138     *     {@link CTRubyContent }
139     *     
140     */
141    public void setRubyBase(CTRubyContent value) {
142        this.rubyBase = value;
143    }
144
145    /**
146     * Gets the parent object in the object tree representing the unmarshalled xml document.
147     *
148     * @return
149     *     The parent object.
150     */
151    public Object getParent() {
152        return this.parent;
153    }
154
155    public void setParent(Object parent) {
156        this.parent = parent;
157    }
158
159    /**
160     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
161     *
162     * @param parent
163     *     The parent object in the object tree.
164     * @param unmarshaller
165     *     The unmarshaller that generated the instance.
166     */
167    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
168        setParent(parent);
169    }
170
171}
Note: See TracBrowser for help on using the repository browser.