source: branches/jaxb/target/generated-sources/org/docx4j/jaxb/document/BooleanDefaultTrue.java @ 43

Revision 43, 4.4 KB checked in by jharrop, 4 years ago (diff)

Use BooleanDefaultTrue? for schema elements which do default to true, but which had ST_OnOff.

Line 
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.5-b01-fcs
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2007.12.19 at 02:20:48 PM GMT+10:00
6//
7
8
9package org.docx4j.jaxb.document;
10
11import javax.annotation.Generated;
12import javax.xml.bind.Unmarshaller;
13import javax.xml.bind.annotation.XmlAccessType;
14import javax.xml.bind.annotation.XmlAccessorType;
15import javax.xml.bind.annotation.XmlAttribute;
16import javax.xml.bind.annotation.XmlTransient;
17import javax.xml.bind.annotation.XmlType;
18import com.sun.xml.bind.Locatable;
19import com.sun.xml.bind.annotation.XmlLocation;
20import org.jvnet.jaxb2_commons.ppp.Child;
21import org.xml.sax.Locator;
22
23
24/**
25 * <p>Java class for BooleanDefaultTrue complex type.
26 *
27 * <p>The following schema fragment specifies the expected content contained within this class.
28 *
29 * <pre>
30 * &lt;complexType name="BooleanDefaultTrue">
31 *   &lt;complexContent>
32 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
33 *       &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
34 *     &lt;/restriction>
35 *   &lt;/complexContent>
36 * &lt;/complexType>
37 * </pre>
38 *
39 *
40 */
41@XmlAccessorType(XmlAccessType.FIELD)
42@XmlType(name = "BooleanDefaultTrue")
43@Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
44public class BooleanDefaultTrue
45    implements Locatable, Child
46{
47
48    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
49    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
50    protected Boolean val;
51    @XmlTransient
52    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
53    private Object parent;
54    @XmlLocation
55    @XmlTransient
56    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
57    protected Locator locator;
58
59    /**
60     * Gets the value of the val property.
61     *
62     * @return
63     *     possible object is
64     *     {@link Boolean }
65     *     
66     */
67    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
68    public boolean isVal() {
69        if (val == null) {
70            return true;
71        } else {
72            return val;
73        }
74    }
75
76    /**
77     * Sets the value of the val property.
78     *
79     * @param value
80     *     allowed object is
81     *     {@link Boolean }
82     *     
83     */
84    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
85    public void setVal(Boolean value) {
86        this.val = value;
87    }
88
89    /**
90     * Gets the parent object in the object tree representing the unmarshalled xml document.
91     *
92     * @return
93     *     The parent object.
94     */
95    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
96    public Object getParent() {
97        return this.parent;
98    }
99
100    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
101    public void setParent(Object parent) {
102        this.parent = parent;
103    }
104
105    /**
106     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
107     *
108     * @param parent
109     *     The parent object in the object tree.
110     * @param unmarshaller
111     *     The unmarshaller that generated the instance.
112     */
113    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
114    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
115        setParent(parent);
116    }
117
118    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
119    public Locator sourceLocation() {
120        return locator;
121    }
122
123    @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs")
124    public void setSourceLocation(Locator newLocator) {
125        locator = newLocator;
126    }
127
128}
Note: See TracBrowser for help on using the repository browser.