source: trunk/docx4j/src/main/java/org/docx4j/openpackaging/contenttype/CTTypes.java @ 1004

Revision 1004, 2.9 KB checked in by jharrop, 2 years ago (diff)

Remove dom4j stuff

Line 
1/*
2 *  Copyright 2010, 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
21package org.docx4j.openpackaging.contenttype;
22
23import java.util.ArrayList;
24import java.util.List;
25import javax.xml.bind.annotation.XmlAccessType;
26import javax.xml.bind.annotation.XmlAccessorType;
27import javax.xml.bind.annotation.XmlElement;
28import javax.xml.bind.annotation.XmlElements;
29import javax.xml.bind.annotation.XmlType;
30import javax.xml.bind.annotation.XmlRootElement;
31
32
33/**
34 * <p>Java class for CT_Types complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * &lt;complexType name="CT_Types">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;choice maxOccurs="unbounded" minOccurs="0">
43 *         &lt;element ref="{http://schemas.openxmlformats.org/package/2006/content-types}Default"/>
44 *         &lt;element ref="{http://schemas.openxmlformats.org/package/2006/content-types}Override"/>
45 *       &lt;/choice>
46 *     &lt;/restriction>
47 *   &lt;/complexContent>
48 * &lt;/complexType>
49 * </pre>
50 *
51 *
52 */
53@XmlAccessorType(XmlAccessType.FIELD)
54@XmlType(name = "CT_Types", propOrder = {
55    "defaultOrOverride"
56})
57@XmlRootElement(name ="Types")
58public class CTTypes {
59
60    @XmlElements({
61        @XmlElement(name = "Default", type = CTDefault.class),
62        @XmlElement(name = "Override", type = CTOverride.class)
63    })
64    protected List<Object> defaultOrOverride;
65
66    /**
67     * Gets the value of the defaultOrOverride 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 defaultOrOverride property.
74     *
75     * <p>
76     * For example, to add a new item, do as follows:
77     * <pre>
78     *    getDefaultOrOverride().add(newItem);
79     * </pre>
80     *
81     *
82     * <p>
83     * Objects of the following type(s) are allowed in the list
84     * {@link CTDefault }
85     * {@link CTOverride }
86     *
87     *
88     */
89    public List<Object> getDefaultOrOverride() {
90        if (defaultOrOverride == null) {
91            defaultOrOverride = new ArrayList<Object>();
92        }
93        return this.defaultOrOverride;
94    }
95
96}
Note: See TracBrowser for help on using the repository browser.