source: trunk/docx4j/src/main/java/org/docx4j/vml/CTFormulas.java @ 1461

Revision 1461, 3.1 KB checked in by jharrop, 14 months ago (diff)

VML generated classes, based on ECMA 376 1ed (rather than earlier draft).
Includes @XmlType? namespace annotations from revs 940 and 1129.

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