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

Revision 359, 3.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.XmlRootElement;
29import javax.xml.bind.annotation.XmlTransient;
30import javax.xml.bind.annotation.XmlType;
31import org.jvnet.jaxb2_commons.ppp.Child;
32
33
34/**
35 * <p>Java class for anonymous complex type.
36 *
37 * <p>The following schema fragment specifies the expected content contained within this class.
38 *
39 * <pre>
40 * &lt;complexType>
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="type" use="required">
44 *         &lt;simpleType>
45 *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
46 *             &lt;enumeration value="spellStart"/>
47 *             &lt;enumeration value="spellEnd"/>
48 *             &lt;enumeration value="gramStart"/>
49 *             &lt;enumeration value="gramEnd"/>
50 *           &lt;/restriction>
51 *         &lt;/simpleType>
52 *       &lt;/attribute>
53 *     &lt;/restriction>
54 *   &lt;/complexContent>
55 * &lt;/complexType>
56 * </pre>
57 *
58 *
59 */
60@XmlAccessorType(XmlAccessType.FIELD)
61@XmlType(name = "")
62@XmlRootElement(name = "proofErr")
63public class ProofErr implements Child
64{
65
66    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
67    protected String type;
68    @XmlTransient
69    private Object parent;
70
71    /**
72     * Gets the value of the type property.
73     *
74     * @return
75     *     possible object is
76     *     {@link String }
77     *     
78     */
79    public String getType() {
80        return type;
81    }
82
83    /**
84     * Sets the value of the type property.
85     *
86     * @param value
87     *     allowed object is
88     *     {@link String }
89     *     
90     */
91    public void setType(String value) {
92        this.type = value;
93    }
94
95    /**
96     * Gets the parent object in the object tree representing the unmarshalled xml document.
97     *
98     * @return
99     *     The parent object.
100     */
101    public Object getParent() {
102        return this.parent;
103    }
104
105    public void setParent(Object parent) {
106        this.parent = parent;
107    }
108
109    /**
110     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
111     *
112     * @param parent
113     *     The parent object in the object tree.
114     * @param unmarshaller
115     *     The unmarshaller that generated the instance.
116     */
117    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
118        setParent(parent);
119    }
120
121}
Note: See TracBrowser for help on using the repository browser.