source: trunk/docx4j/src/main/java/org/docx4j/wml/CTPageNumber.java @ 568

Revision 568, 5.1 KB checked in by jharrop, 4 years ago (diff)

Regenerated JAXB classes, primarily to improve header/footer handling.
Also changed CT_Hyperlink to P.Hyperlink (though maybe its better not as an inner class)

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_PageNumber 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_PageNumber">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="fmt" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}NumberFormat" />
44 *       &lt;attribute name="start" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
45 *       &lt;attribute name="chapStyle" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
46 *       &lt;attribute name="chapSep" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ChapterSep" />
47 *     &lt;/restriction>
48 *   &lt;/complexContent>
49 * &lt;/complexType>
50 * </pre>
51 *
52 *
53 */
54@XmlAccessorType(XmlAccessType.FIELD)
55@XmlType(name = "CT_PageNumber")
56public class CTPageNumber
57    implements Child
58{
59
60    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
61    protected NumberFormat fmt;
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 chapStyle;
66    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
67    protected STChapterSep chapSep;
68    @XmlTransient
69    private Object parent;
70
71    /**
72     * Gets the value of the fmt property.
73     *
74     * @return
75     *     possible object is
76     *     {@link NumberFormat }
77     *     
78     */
79    public NumberFormat getFmt() {
80        return fmt;
81    }
82
83    /**
84     * Sets the value of the fmt property.
85     *
86     * @param value
87     *     allowed object is
88     *     {@link NumberFormat }
89     *     
90     */
91    public void setFmt(NumberFormat value) {
92        this.fmt = 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 chapStyle property.
121     *
122     * @return
123     *     possible object is
124     *     {@link BigInteger }
125     *     
126     */
127    public BigInteger getChapStyle() {
128        return chapStyle;
129    }
130
131    /**
132     * Sets the value of the chapStyle property.
133     *
134     * @param value
135     *     allowed object is
136     *     {@link BigInteger }
137     *     
138     */
139    public void setChapStyle(BigInteger value) {
140        this.chapStyle = value;
141    }
142
143    /**
144     * Gets the value of the chapSep property.
145     *
146     * @return
147     *     possible object is
148     *     {@link STChapterSep }
149     *     
150     */
151    public STChapterSep getChapSep() {
152        return chapSep;
153    }
154
155    /**
156     * Sets the value of the chapSep property.
157     *
158     * @param value
159     *     allowed object is
160     *     {@link STChapterSep }
161     *     
162     */
163    public void setChapSep(STChapterSep value) {
164        this.chapSep = 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.