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

Revision 359, 3.4 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.util.ArrayList;
25import java.util.List;
26import javax.xml.bind.Unmarshaller;
27import javax.xml.bind.annotation.XmlAccessType;
28import javax.xml.bind.annotation.XmlAccessorType;
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_FtnDocProps 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_FtnDocProps">
41 *   &lt;complexContent>
42 *     &lt;extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FtnProps">
43 *       &lt;sequence>
44 *         &lt;element name="footnote" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FtnEdnSepRef" maxOccurs="3" minOccurs="0"/>
45 *       &lt;/sequence>
46 *     &lt;/extension>
47 *   &lt;/complexContent>
48 * &lt;/complexType>
49 * </pre>
50 *
51 *
52 */
53@XmlAccessorType(XmlAccessType.FIELD)
54@XmlType(name = "CT_FtnDocProps", propOrder = {
55    "footnote"
56})
57public class CTFtnDocProps
58    extends CTFtnProps
59    implements Child
60{
61
62    protected List<CTFtnEdnSepRef> footnote;
63    @XmlTransient
64    private Object parent;
65
66    /**
67     * Gets the value of the footnote property.
68     *
69     * <p>
70     * This accessor method returns a reference to the live list,
71     * not a snapshot. Therefore any modification you make to the
72     * returned list will be present inside the JAXB object.
73     * This is why there is not a <CODE>set</CODE> method for the footnote property.
74     *
75     * <p>
76     * For example, to add a new item, do as follows:
77     * <pre>
78     *    getFootnote().add(newItem);
79     * </pre>
80     *
81     *
82     * <p>
83     * Objects of the following type(s) are allowed in the list
84     * {@link CTFtnEdnSepRef }
85     *
86     *
87     */
88    public List<CTFtnEdnSepRef> getFootnote() {
89        if (footnote == null) {
90            footnote = new ArrayList<CTFtnEdnSepRef>();
91        }
92        return this.footnote;
93    }
94
95    /**
96     * Gets the parent object in the object tree representing the unmarshalled xml document.
97     *
98     * @return
99     *     The parent object.
100     */
101    public Object getParent() {
102        return this.parent;
103    }
104
105    public void setParent(Object parent) {
106        this.parent = parent;
107    }
108
109    /**
110     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
111     *
112     * @param parent
113     *     The parent object in the object tree.
114     * @param unmarshaller
115     *     The unmarshaller that generated the instance.
116     */
117    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
118        setParent(parent);
119    }
120
121}
Note: See TracBrowser for help on using the repository browser.