source: trunk/docx4j/src/main/java/org/docx4j/dml/CTTableStyleList.java @ 1342

Revision 1342, 3.3 KB checked in by jharrop, 18 months ago (diff)

@XmlRootElement?(name = "tblStyleLst")

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.XmlAttribute;
29import javax.xml.bind.annotation.XmlRootElement;
30import javax.xml.bind.annotation.XmlType;
31import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
32import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
33
34
35/**
36 * <p>Java class for CT_TableStyleList complex type.
37 *
38 * <p>The following schema fragment specifies the expected content contained within this class.
39 *
40 * <pre>
41 * &lt;complexType name="CT_TableStyleList">
42 *   &lt;complexContent>
43 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
44 *       &lt;sequence>
45 *         &lt;element name="tblStyle" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TableStyle" maxOccurs="unbounded" minOccurs="0"/>
46 *       &lt;/sequence>
47 *       &lt;attribute name="def" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Guid" />
48 *     &lt;/restriction>
49 *   &lt;/complexContent>
50 * &lt;/complexType>
51 * </pre>
52 *
53 *
54 */
55@XmlAccessorType(XmlAccessType.FIELD)
56@XmlType(name = "CT_TableStyleList", propOrder = {
57    "tblStyle"
58})
59@XmlRootElement(name = "tblStyleLst")
60public class CTTableStyleList {
61
62    protected List<CTTableStyle> tblStyle;
63    @XmlAttribute(required = true)
64    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
65    protected String def;
66
67    /**
68     * Gets the value of the tblStyle property.
69     *
70     * <p>
71     * This accessor method returns a reference to the live list,
72     * not a snapshot. Therefore any modification you make to the
73     * returned list will be present inside the JAXB object.
74     * This is why there is not a <CODE>set</CODE> method for the tblStyle property.
75     *
76     * <p>
77     * For example, to add a new item, do as follows:
78     * <pre>
79     *    getTblStyle().add(newItem);
80     * </pre>
81     *
82     *
83     * <p>
84     * Objects of the following type(s) are allowed in the list
85     * {@link CTTableStyle }
86     *
87     *
88     */
89    public List<CTTableStyle> getTblStyle() {
90        if (tblStyle == null) {
91            tblStyle = new ArrayList<CTTableStyle>();
92        }
93        return this.tblStyle;
94    }
95
96    /**
97     * Gets the value of the def property.
98     *
99     * @return
100     *     possible object is
101     *     {@link String }
102     *     
103     */
104    public String getDef() {
105        return def;
106    }
107
108    /**
109     * Sets the value of the def property.
110     *
111     * @param value
112     *     allowed object is
113     *     {@link String }
114     *     
115     */
116    public void setDef(String value) {
117        this.def = value;
118    }
119
120}
Note: See TracBrowser for help on using the repository browser.