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

Revision 359, 3.0 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_FtnEdnSepRef 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_FtnEdnSepRef">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="id" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
44 *     &lt;/restriction>
45 *   &lt;/complexContent>
46 * &lt;/complexType>
47 * </pre>
48 *
49 *
50 */
51@XmlAccessorType(XmlAccessType.FIELD)
52@XmlType(name = "CT_FtnEdnSepRef")
53public class CTFtnEdnSepRef
54    implements Child
55{
56
57    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
58    protected BigInteger id;
59    @XmlTransient
60    private Object parent;
61
62    /**
63     * Gets the value of the id property.
64     *
65     * @return
66     *     possible object is
67     *     {@link BigInteger }
68     *     
69     */
70    public BigInteger getId() {
71        return id;
72    }
73
74    /**
75     * Sets the value of the id property.
76     *
77     * @param value
78     *     allowed object is
79     *     {@link BigInteger }
80     *     
81     */
82    public void setId(BigInteger value) {
83        this.id = value;
84    }
85
86    /**
87     * Gets the parent object in the object tree representing the unmarshalled xml document.
88     *
89     * @return
90     *     The parent object.
91     */
92    public Object getParent() {
93        return this.parent;
94    }
95
96    public void setParent(Object parent) {
97        this.parent = parent;
98    }
99
100    /**
101     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
102     *
103     * @param parent
104     *     The parent object in the object tree.
105     * @param unmarshaller
106     *     The unmarshaller that generated the instance.
107     */
108    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
109        setParent(parent);
110    }
111
112}
Note: See TracBrowser for help on using the repository browser.