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

Revision 1004, 2.8 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 javax.xml.bind.annotation.XmlAccessType;
24import javax.xml.bind.annotation.XmlAccessorType;
25import javax.xml.bind.annotation.XmlAttribute;
26import javax.xml.bind.annotation.XmlSchemaType;
27import javax.xml.bind.annotation.XmlType;
28
29
30/**
31 * <p>Java class for CT_Override complex type.
32 *
33 * <p>The following schema fragment specifies the expected content contained within this class.
34 *
35 * <pre>
36 * &lt;complexType name="CT_Override">
37 *   &lt;complexContent>
38 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39 *       &lt;attribute name="ContentType" use="required" type="{http://schemas.openxmlformats.org/package/2006/content-types}ST_ContentType" />
40 *       &lt;attribute name="PartName" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
41 *     &lt;/restriction>
42 *   &lt;/complexContent>
43 * &lt;/complexType>
44 * </pre>
45 *
46 *
47 */
48@XmlAccessorType(XmlAccessType.FIELD)
49@XmlType(name = "CT_Override")
50public class CTOverride {
51
52    @XmlAttribute(name = "ContentType", required = true)
53    protected String contentType;
54    @XmlAttribute(name = "PartName", required = true)
55    @XmlSchemaType(name = "anyURI")
56    protected String partName;
57
58    /**
59     * Gets the value of the contentType property.
60     *
61     * @return
62     *     possible object is
63     *     {@link String }
64     *     
65     */
66    public String getContentType() {
67        return contentType;
68    }
69
70    /**
71     * Sets the value of the contentType property.
72     *
73     * @param value
74     *     allowed object is
75     *     {@link String }
76     *     
77     */
78    public void setContentType(String value) {
79        this.contentType = value;
80    }
81
82    /**
83     * Gets the value of the partName property.
84     *
85     * @return
86     *     possible object is
87     *     {@link String }
88     *     
89     */
90    public String getPartName() {
91        return partName;
92    }
93
94    /**
95     * Sets the value of the partName property.
96     *
97     * @param value
98     *     allowed object is
99     *     {@link String }
100     *     
101     */
102    public void setPartName(String value) {
103        this.partName = value;
104    }
105
106}
Note: See TracBrowser for help on using the repository browser.