source: trunk/docx4j/src/main/java/org/docx4j/dml/CTTable.java @ 1041

Revision 1041, 3.7 KB checked in by jharrop, 2 years ago (diff)

More complete DML, generated from TC45 1.0 final, using dmlROOT.xsd

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.dml;
23
24import java.util.ArrayList;
25import java.util.List;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlElement;
29import javax.xml.bind.annotation.XmlType;
30
31
32/**
33 * <p>Java class for CT_Table complex type.
34 *
35 * <p>The following schema fragment specifies the expected content contained within this class.
36 *
37 * <pre>
38 * &lt;complexType name="CT_Table">
39 *   &lt;complexContent>
40 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 *       &lt;sequence>
42 *         &lt;element name="tblPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TableProperties" minOccurs="0"/>
43 *         &lt;element name="tblGrid" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TableGrid"/>
44 *         &lt;element name="tr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TableRow" 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_Table", propOrder = {
55    "tblPr",
56    "tblGrid",
57    "tr"
58})
59public class CTTable {
60
61    protected CTTableProperties tblPr;
62    @XmlElement(required = true)
63    protected CTTableGrid tblGrid;
64    protected List<CTTableRow> tr;
65
66    /**
67     * Gets the value of the tblPr property.
68     *
69     * @return
70     *     possible object is
71     *     {@link CTTableProperties }
72     *     
73     */
74    public CTTableProperties getTblPr() {
75        return tblPr;
76    }
77
78    /**
79     * Sets the value of the tblPr property.
80     *
81     * @param value
82     *     allowed object is
83     *     {@link CTTableProperties }
84     *     
85     */
86    public void setTblPr(CTTableProperties value) {
87        this.tblPr = value;
88    }
89
90    /**
91     * Gets the value of the tblGrid property.
92     *
93     * @return
94     *     possible object is
95     *     {@link CTTableGrid }
96     *     
97     */
98    public CTTableGrid getTblGrid() {
99        return tblGrid;
100    }
101
102    /**
103     * Sets the value of the tblGrid property.
104     *
105     * @param value
106     *     allowed object is
107     *     {@link CTTableGrid }
108     *     
109     */
110    public void setTblGrid(CTTableGrid value) {
111        this.tblGrid = value;
112    }
113
114    /**
115     * Gets the value of the tr property.
116     *
117     * <p>
118     * This accessor method returns a reference to the live list,
119     * not a snapshot. Therefore any modification you make to the
120     * returned list will be present inside the JAXB object.
121     * This is why there is not a <CODE>set</CODE> method for the tr property.
122     *
123     * <p>
124     * For example, to add a new item, do as follows:
125     * <pre>
126     *    getTr().add(newItem);
127     * </pre>
128     *
129     *
130     * <p>
131     * Objects of the following type(s) are allowed in the list
132     * {@link CTTableRow }
133     *
134     *
135     */
136    public List<CTTableRow> getTr() {
137        if (tr == null) {
138            tr = new ArrayList<CTTableRow>();
139        }
140        return this.tr;
141    }
142
143}
Note: See TracBrowser for help on using the repository browser.