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

Revision 359, 5.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_LineNumber 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_LineNumber">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="countBy" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
44 *       &lt;attribute name="start" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
45 *       &lt;attribute name="distance" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
46 *       &lt;attribute name="restart" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_LineNumberRestart" />
47 *     &lt;/restriction>
48 *   &lt;/complexContent>
49 * &lt;/complexType>
50 * </pre>
51 *
52 *
53 */
54@XmlAccessorType(XmlAccessType.FIELD)
55@XmlType(name = "CT_LineNumber")
56public class CTLineNumber
57    implements Child
58{
59
60    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
61    protected BigInteger countBy;
62    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
63    protected BigInteger start;
64    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
65    protected BigInteger distance;
66    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
67    protected STLineNumberRestart restart;
68    @XmlTransient
69    private Object parent;
70
71    /**
72     * Gets the value of the countBy property.
73     *
74     * @return
75     *     possible object is
76     *     {@link BigInteger }
77     *     
78     */
79    public BigInteger getCountBy() {
80        return countBy;
81    }
82
83    /**
84     * Sets the value of the countBy property.
85     *
86     * @param value
87     *     allowed object is
88     *     {@link BigInteger }
89     *     
90     */
91    public void setCountBy(BigInteger value) {
92        this.countBy = value;
93    }
94
95    /**
96     * Gets the value of the start property.
97     *
98     * @return
99     *     possible object is
100     *     {@link BigInteger }
101     *     
102     */
103    public BigInteger getStart() {
104        return start;
105    }
106
107    /**
108     * Sets the value of the start property.
109     *
110     * @param value
111     *     allowed object is
112     *     {@link BigInteger }
113     *     
114     */
115    public void setStart(BigInteger value) {
116        this.start = value;
117    }
118
119    /**
120     * Gets the value of the distance property.
121     *
122     * @return
123     *     possible object is
124     *     {@link BigInteger }
125     *     
126     */
127    public BigInteger getDistance() {
128        return distance;
129    }
130
131    /**
132     * Sets the value of the distance property.
133     *
134     * @param value
135     *     allowed object is
136     *     {@link BigInteger }
137     *     
138     */
139    public void setDistance(BigInteger value) {
140        this.distance = value;
141    }
142
143    /**
144     * Gets the value of the restart property.
145     *
146     * @return
147     *     possible object is
148     *     {@link STLineNumberRestart }
149     *     
150     */
151    public STLineNumberRestart getRestart() {
152        return restart;
153    }
154
155    /**
156     * Sets the value of the restart property.
157     *
158     * @param value
159     *     allowed object is
160     *     {@link STLineNumberRestart }
161     *     
162     */
163    public void setRestart(STLineNumberRestart value) {
164        this.restart = value;
165    }
166
167    /**
168     * Gets the parent object in the object tree representing the unmarshalled xml document.
169     *
170     * @return
171     *     The parent object.
172     */
173    public Object getParent() {
174        return this.parent;
175    }
176
177    public void setParent(Object parent) {
178        this.parent = parent;
179    }
180
181    /**
182     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
183     *
184     * @param parent
185     *     The parent object in the object tree.
186     * @param unmarshaller
187     *     The unmarshaller that generated the instance.
188     */
189    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
190        setParent(parent);
191    }
192
193}
Note: See TracBrowser for help on using the repository browser.