source: trunk/docx4j/src/main/java/org/docx4j/wml/CTFtnEdnRef.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 java.math.BigInteger;
25import javax.xml.bind.Unmarshaller;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlAttribute;
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 CT_FtnEdnRef 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_FtnEdnRef">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="customMarkFollows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
44 *       &lt;attribute name="id" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
45 *     &lt;/restriction>
46 *   &lt;/complexContent>
47 * &lt;/complexType>
48 * </pre>
49 *
50 *
51 */
52@XmlAccessorType(XmlAccessType.FIELD)
53@XmlType(name = "CT_FtnEdnRef")
54public class CTFtnEdnRef
55    implements Child
56{
57
58    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
59    protected Boolean customMarkFollows;
60    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
61    protected BigInteger id;
62    @XmlTransient
63    private Object parent;
64
65    /**
66     * Gets the value of the customMarkFollows property.
67     *
68     * @return
69     *     possible object is
70     *     {@link Boolean }
71     *     
72     */
73    public boolean isCustomMarkFollows() {
74        if (customMarkFollows == null) {
75            return true;
76        } else {
77            return customMarkFollows;
78        }
79    }
80
81    /**
82     * Sets the value of the customMarkFollows property.
83     *
84     * @param value
85     *     allowed object is
86     *     {@link Boolean }
87     *     
88     */
89    public void setCustomMarkFollows(Boolean value) {
90        this.customMarkFollows = value;
91    }
92
93    /**
94     * Gets the value of the id property.
95     *
96     * @return
97     *     possible object is
98     *     {@link BigInteger }
99     *     
100     */
101    public BigInteger getId() {
102        return id;
103    }
104
105    /**
106     * Sets the value of the id property.
107     *
108     * @param value
109     *     allowed object is
110     *     {@link BigInteger }
111     *     
112     */
113    public void setId(BigInteger value) {
114        this.id = value;
115    }
116
117    /**
118     * Gets the parent object in the object tree representing the unmarshalled xml document.
119     *
120     * @return
121     *     The parent object.
122     */
123    public Object getParent() {
124        return this.parent;
125    }
126
127    public void setParent(Object parent) {
128        this.parent = parent;
129    }
130
131    /**
132     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
133     *
134     * @param parent
135     *     The parent object in the object tree.
136     * @param unmarshaller
137     *     The unmarshaller that generated the instance.
138     */
139    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
140        setParent(parent);
141    }
142
143}
Note: See TracBrowser for help on using the repository browser.