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

Revision 359, 6.1 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.XmlTransient;
30import javax.xml.bind.annotation.XmlType;
31import org.jvnet.jaxb2_commons.ppp.Child;
32
33
34/**
35 * <p>Java class for CT_EastAsianLayout complex type.
36 *
37 * <p>The following schema fragment specifies the expected content contained within this class.
38 *
39 * <pre>
40 * &lt;complexType name="CT_EastAsianLayout">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="id" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
44 *       &lt;attribute name="combine" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
45 *       &lt;attribute name="combineBrackets" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_CombineBrackets" />
46 *       &lt;attribute name="vert" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
47 *       &lt;attribute name="vertCompress" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
48 *     &lt;/restriction>
49 *   &lt;/complexContent>
50 * &lt;/complexType>
51 * </pre>
52 *
53 *
54 */
55@XmlAccessorType(XmlAccessType.FIELD)
56@XmlType(name = "CT_EastAsianLayout")
57public class CTEastAsianLayout
58    implements Child
59{
60
61    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
62    protected BigInteger id;
63    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
64    protected Boolean combine;
65    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
66    protected STCombineBrackets combineBrackets;
67    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
68    protected Boolean vert;
69    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
70    protected Boolean vertCompress;
71    @XmlTransient
72    private Object parent;
73
74    /**
75     * Gets the value of the id property.
76     *
77     * @return
78     *     possible object is
79     *     {@link BigInteger }
80     *     
81     */
82    public BigInteger getId() {
83        return id;
84    }
85
86    /**
87     * Sets the value of the id property.
88     *
89     * @param value
90     *     allowed object is
91     *     {@link BigInteger }
92     *     
93     */
94    public void setId(BigInteger value) {
95        this.id = value;
96    }
97
98    /**
99     * Gets the value of the combine property.
100     *
101     * @return
102     *     possible object is
103     *     {@link Boolean }
104     *     
105     */
106    public boolean isCombine() {
107        if (combine == null) {
108            return true;
109        } else {
110            return combine;
111        }
112    }
113
114    /**
115     * Sets the value of the combine property.
116     *
117     * @param value
118     *     allowed object is
119     *     {@link Boolean }
120     *     
121     */
122    public void setCombine(Boolean value) {
123        this.combine = value;
124    }
125
126    /**
127     * Gets the value of the combineBrackets property.
128     *
129     * @return
130     *     possible object is
131     *     {@link STCombineBrackets }
132     *     
133     */
134    public STCombineBrackets getCombineBrackets() {
135        return combineBrackets;
136    }
137
138    /**
139     * Sets the value of the combineBrackets property.
140     *
141     * @param value
142     *     allowed object is
143     *     {@link STCombineBrackets }
144     *     
145     */
146    public void setCombineBrackets(STCombineBrackets value) {
147        this.combineBrackets = value;
148    }
149
150    /**
151     * Gets the value of the vert property.
152     *
153     * @return
154     *     possible object is
155     *     {@link Boolean }
156     *     
157     */
158    public boolean isVert() {
159        if (vert == null) {
160            return true;
161        } else {
162            return vert;
163        }
164    }
165
166    /**
167     * Sets the value of the vert property.
168     *
169     * @param value
170     *     allowed object is
171     *     {@link Boolean }
172     *     
173     */
174    public void setVert(Boolean value) {
175        this.vert = value;
176    }
177
178    /**
179     * Gets the value of the vertCompress property.
180     *
181     * @return
182     *     possible object is
183     *     {@link Boolean }
184     *     
185     */
186    public boolean isVertCompress() {
187        if (vertCompress == null) {
188            return true;
189        } else {
190            return vertCompress;
191        }
192    }
193
194    /**
195     * Sets the value of the vertCompress property.
196     *
197     * @param value
198     *     allowed object is
199     *     {@link Boolean }
200     *     
201     */
202    public void setVertCompress(Boolean value) {
203        this.vertCompress = value;
204    }
205
206    /**
207     * Gets the parent object in the object tree representing the unmarshalled xml document.
208     *
209     * @return
210     *     The parent object.
211     */
212    public Object getParent() {
213        return this.parent;
214    }
215
216    public void setParent(Object parent) {
217        this.parent = parent;
218    }
219
220    /**
221     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
222     *
223     * @param parent
224     *     The parent object in the object tree.
225     * @param unmarshaller
226     *     The unmarshaller that generated the instance.
227     */
228    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
229        setParent(parent);
230    }
231
232}
Note: See TracBrowser for help on using the repository browser.