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

Revision 1041, 3.8 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_TextBody 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_TextBody">
39 *   &lt;complexContent>
40 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 *       &lt;sequence>
42 *         &lt;element name="bodyPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TextBodyProperties"/>
43 *         &lt;element name="lstStyle" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TextListStyle" minOccurs="0"/>
44 *         &lt;element name="p" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TextParagraph" maxOccurs="unbounded"/>
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_TextBody", propOrder = {
55    "bodyPr",
56    "lstStyle",
57    "p"
58})
59public class CTTextBody {
60
61    @XmlElement(required = true)
62    protected CTTextBodyProperties bodyPr;
63    protected CTTextListStyle lstStyle;
64    @XmlElement(required = true)
65    protected List<CTTextParagraph> p;
66
67    /**
68     * Gets the value of the bodyPr property.
69     *
70     * @return
71     *     possible object is
72     *     {@link CTTextBodyProperties }
73     *     
74     */
75    public CTTextBodyProperties getBodyPr() {
76        return bodyPr;
77    }
78
79    /**
80     * Sets the value of the bodyPr property.
81     *
82     * @param value
83     *     allowed object is
84     *     {@link CTTextBodyProperties }
85     *     
86     */
87    public void setBodyPr(CTTextBodyProperties value) {
88        this.bodyPr = value;
89    }
90
91    /**
92     * Gets the value of the lstStyle property.
93     *
94     * @return
95     *     possible object is
96     *     {@link CTTextListStyle }
97     *     
98     */
99    public CTTextListStyle getLstStyle() {
100        return lstStyle;
101    }
102
103    /**
104     * Sets the value of the lstStyle property.
105     *
106     * @param value
107     *     allowed object is
108     *     {@link CTTextListStyle }
109     *     
110     */
111    public void setLstStyle(CTTextListStyle value) {
112        this.lstStyle = value;
113    }
114
115    /**
116     * Gets the value of the p property.
117     *
118     * <p>
119     * This accessor method returns a reference to the live list,
120     * not a snapshot. Therefore any modification you make to the
121     * returned list will be present inside the JAXB object.
122     * This is why there is not a <CODE>set</CODE> method for the p property.
123     *
124     * <p>
125     * For example, to add a new item, do as follows:
126     * <pre>
127     *    getP().add(newItem);
128     * </pre>
129     *
130     *
131     * <p>
132     * Objects of the following type(s) are allowed in the list
133     * {@link CTTextParagraph }
134     *
135     *
136     */
137    public List<CTTextParagraph> getP() {
138        if (p == null) {
139            p = new ArrayList<CTTextParagraph>();
140        }
141        return this.p;
142    }
143
144}
Note: See TracBrowser for help on using the repository browser.