source: trunk/docx4j/src/main/java/org/docx4j/wml/CTSmartTagType.java @ 359

Revision 359, 4.3 KB checked in by jharrop, 4 years ago (diff)

Change CT_FldChar to FldChar?;
Style is freestanding, rather than an inner class of Styles.
(Other changes largely whitespace in license header)

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.wml;
23
24import javax.xml.bind.Unmarshaller;
25import javax.xml.bind.annotation.XmlAccessType;
26import javax.xml.bind.annotation.XmlAccessorType;
27import javax.xml.bind.annotation.XmlAttribute;
28import javax.xml.bind.annotation.XmlTransient;
29import javax.xml.bind.annotation.XmlType;
30import org.jvnet.jaxb2_commons.ppp.Child;
31
32
33/**
34 * <p>Java class for CT_SmartTagType 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_SmartTagType">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;attribute name="namespaceuri" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
43 *       &lt;attribute name="name" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
44 *       &lt;attribute name="url" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
45 *     &lt;/restriction>
46 *   &lt;/complexContent>
47 * &lt;/complexType>
48 * </pre>
49 *
50 *
51 */
52@XmlAccessorType(XmlAccessType.FIELD)
53@XmlType(name = "CT_SmartTagType")
54public class CTSmartTagType
55    implements Child
56{
57
58    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
59    protected String namespaceuri;
60    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
61    protected String name;
62    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
63    protected String url;
64    @XmlTransient
65    private Object parent;
66
67    /**
68     * Gets the value of the namespaceuri property.
69     *
70     * @return
71     *     possible object is
72     *     {@link String }
73     *     
74     */
75    public String getNamespaceuri() {
76        return namespaceuri;
77    }
78
79    /**
80     * Sets the value of the namespaceuri property.
81     *
82     * @param value
83     *     allowed object is
84     *     {@link String }
85     *     
86     */
87    public void setNamespaceuri(String value) {
88        this.namespaceuri = value;
89    }
90
91    /**
92     * Gets the value of the name property.
93     *
94     * @return
95     *     possible object is
96     *     {@link String }
97     *     
98     */
99    public String getName() {
100        return name;
101    }
102
103    /**
104     * Sets the value of the name property.
105     *
106     * @param value
107     *     allowed object is
108     *     {@link String }
109     *     
110     */
111    public void setName(String value) {
112        this.name = value;
113    }
114
115    /**
116     * Gets the value of the url property.
117     *
118     * @return
119     *     possible object is
120     *     {@link String }
121     *     
122     */
123    public String getUrl() {
124        return url;
125    }
126
127    /**
128     * Sets the value of the url property.
129     *
130     * @param value
131     *     allowed object is
132     *     {@link String }
133     *     
134     */
135    public void setUrl(String value) {
136        this.url = value;
137    }
138
139    /**
140     * Gets the parent object in the object tree representing the unmarshalled xml document.
141     *
142     * @return
143     *     The parent object.
144     */
145    public Object getParent() {
146        return this.parent;
147    }
148
149    public void setParent(Object parent) {
150        this.parent = parent;
151    }
152
153    /**
154     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
155     *
156     * @param parent
157     *     The parent object in the object tree.
158     * @param unmarshaller
159     *     The unmarshaller that generated the instance.
160     */
161    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
162        setParent(parent);
163    }
164
165}
Note: See TracBrowser for help on using the repository browser.