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

Revision 359, 3.6 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_FFStatusText 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_FFStatusText">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;attribute name="type" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_InfoTextType" />
43 *       &lt;attribute name="val" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_FFStatusTextVal" />
44 *     &lt;/restriction>
45 *   &lt;/complexContent>
46 * &lt;/complexType>
47 * </pre>
48 *
49 *
50 */
51@XmlAccessorType(XmlAccessType.FIELD)
52@XmlType(name = "CT_FFStatusText")
53public class CTFFStatusText implements Child
54{
55
56    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
57    protected STInfoTextType type;
58    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
59    protected String val;
60    @XmlTransient
61    private Object parent;
62
63    /**
64     * Gets the value of the type property.
65     *
66     * @return
67     *     possible object is
68     *     {@link STInfoTextType }
69     *     
70     */
71    public STInfoTextType getType() {
72        return type;
73    }
74
75    /**
76     * Sets the value of the type property.
77     *
78     * @param value
79     *     allowed object is
80     *     {@link STInfoTextType }
81     *     
82     */
83    public void setType(STInfoTextType value) {
84        this.type = value;
85    }
86
87    /**
88     * Gets the value of the val property.
89     *
90     * @return
91     *     possible object is
92     *     {@link String }
93     *     
94     */
95    public String getVal() {
96        return val;
97    }
98
99    /**
100     * Sets the value of the val property.
101     *
102     * @param value
103     *     allowed object is
104     *     {@link String }
105     *     
106     */
107    public void setVal(String value) {
108        this.val = value;
109    }
110
111    /**
112     * Gets the parent object in the object tree representing the unmarshalled xml document.
113     *
114     * @return
115     *     The parent object.
116     */
117    public Object getParent() {
118        return this.parent;
119    }
120
121    public void setParent(Object parent) {
122        this.parent = parent;
123    }
124
125    /**
126     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
127     *
128     * @param parent
129     *     The parent object in the object tree.
130     * @param unmarshaller
131     *     The unmarshaller that generated the instance.
132     */
133    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
134        setParent(parent);
135    }
136
137}
Note: See TracBrowser for help on using the repository browser.