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

Revision 359, 3.8 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 javax.xml.datatype.XMLGregorianCalendar;
31import org.jvnet.jaxb2_commons.ppp.Child;
32
33
34/**
35 * <p>Java class for CT_TrackChange complex type.
36 *
37 * <p>The following schema fragment specifies the expected content contained within this class.
38 *
39 * <pre>
40 * &lt;complexType name="CT_TrackChange">
41 *   &lt;complexContent>
42 *     &lt;extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Markup">
43 *       &lt;attribute name="author" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
44 *       &lt;attribute name="date" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DateTime" />
45 *     &lt;/extension>
46 *   &lt;/complexContent>
47 * &lt;/complexType>
48 * </pre>
49 *
50 *
51 */
52@XmlAccessorType(XmlAccessType.FIELD)
53@XmlType(name = "CT_TrackChange")
54public class CTTrackChange
55    extends CTMarkup
56    implements Child
57{
58
59    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
60    protected String author;
61    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
62    protected XMLGregorianCalendar date;
63    @XmlTransient
64    private Object parent;
65
66    /**
67     * Gets the value of the author property.
68     *
69     * @return
70     *     possible object is
71     *     {@link String }
72     *     
73     */
74    public String getAuthor() {
75        return author;
76    }
77
78    /**
79     * Sets the value of the author property.
80     *
81     * @param value
82     *     allowed object is
83     *     {@link String }
84     *     
85     */
86    public void setAuthor(String value) {
87        this.author = value;
88    }
89
90    /**
91     * Gets the value of the date property.
92     *
93     * @return
94     *     possible object is
95     *     {@link XMLGregorianCalendar }
96     *     
97     */
98    public XMLGregorianCalendar getDate() {
99        return date;
100    }
101
102    /**
103     * Sets the value of the date property.
104     *
105     * @param value
106     *     allowed object is
107     *     {@link XMLGregorianCalendar }
108     *     
109     */
110    public void setDate(XMLGregorianCalendar value) {
111        this.date = value;
112    }
113
114    /**
115     * Gets the parent object in the object tree representing the unmarshalled xml document.
116     *
117     * @return
118     *     The parent object.
119     */
120    public Object getParent() {
121        return this.parent;
122    }
123
124    public void setParent(Object parent) {
125        this.parent = parent;
126    }
127
128    /**
129     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
130     *
131     * @param parent
132     *     The parent object in the object tree.
133     * @param unmarshaller
134     *     The unmarshaller that generated the instance.
135     */
136    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
137        setParent(parent);
138    }
139
140}
Note: See TracBrowser for help on using the repository browser.