001    //
002    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
003    // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
004    // Any modifications to this file will be lost upon recompilation of the source schema. 
005    // Generated on: 2009.11.18 at 06:28:36 AM UTC 
006    //
007    
008    
009    package org.jomc.model;
010    
011    import javax.annotation.Generated;
012    import javax.xml.bind.annotation.XmlAccessType;
013    import javax.xml.bind.annotation.XmlAccessorType;
014    import javax.xml.bind.annotation.XmlAttribute;
015    import javax.xml.bind.annotation.XmlType;
016    import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
017    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
018    
019    
020    /**
021     * Reference to a message.
022     * @see Message
023     * 
024     * 
025     * 
026     */
027    @XmlAccessorType(XmlAccessType.FIELD)
028    @XmlType(name = "MessageReference")
029    @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
030    public class MessageReference
031        extends ModelObject
032        implements Cloneable
033    {
034    
035        @XmlAttribute(required = true)
036        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
037        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
038        protected String name;
039        @XmlAttribute(name = "final")
040        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
041        protected Boolean _final;
042        @XmlAttribute
043        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
044        protected Boolean override;
045    
046        /**
047         * Creates a new {@code MessageReference} instance.
048         * 
049         */
050        public MessageReference() {
051            // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
052            super();
053        }
054    
055        /**
056         * Creates a new {@code MessageReference} instance by deeply copying a given {@code MessageReference} instance.
057         * 
058         * 
059         * @param o
060         *     The instance to copy.
061         * @throws NullPointerException
062         *     if {@code o} is {@code null}.
063         */
064        public MessageReference(final MessageReference o) {
065            // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
066            super(o);
067            if (o == null) {
068                throw new NullPointerException("Cannot create a copy of 'MessageReference' from 'null'.");
069            }
070            // CBuiltinLeafInfo: java.lang.String
071            this.name = o.getName();
072            // CBuiltinLeafInfo: java.lang.Boolean
073            this._final = o.isFinal();
074            // CBuiltinLeafInfo: java.lang.Boolean
075            this.override = o.isOverride();
076        }
077    
078        /**
079         * The name of the referenced message.
080         * 
081         * @return
082         *     possible object is
083         *     {@link String }
084         *     
085         */
086        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
087        public String getName() {
088            return name;
089        }
090    
091        /**
092         * Sets the value of the name property.
093         * 
094         * @param value
095         *     allowed object is
096         *     {@link String }
097         *     
098         */
099        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
100        public void setName(String value) {
101            this.name = value;
102        }
103    
104        /**
105         * Flags this message reference final.
106         * 
107         * @return
108         *     possible object is
109         *     {@link Boolean }
110         *     
111         */
112        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
113        public boolean isFinal() {
114            if (_final == null) {
115                return false;
116            } else {
117                return _final;
118            }
119        }
120    
121        /**
122         * Sets the value of the final property.
123         * 
124         * @param value
125         *     allowed object is
126         *     {@link Boolean }
127         *     
128         */
129        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
130        public void setFinal(Boolean value) {
131            this._final = value;
132        }
133    
134        /**
135         * True, if this message reference is intended to override a super message reference.
136         * 
137         * @return
138         *     possible object is
139         *     {@link Boolean }
140         *     
141         */
142        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
143        public boolean isOverride() {
144            if (override == null) {
145                return false;
146            } else {
147                return override;
148            }
149        }
150    
151        /**
152         * Sets the value of the override property.
153         * 
154         * @param value
155         *     allowed object is
156         *     {@link Boolean }
157         *     
158         */
159        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
160        public void setOverride(Boolean value) {
161            this.override = value;
162        }
163    
164        /**
165         * Creates and returns a deep copy of this object.
166         * 
167         * 
168         * @return
169         *     A deep copy of this object.
170         */
171        @Override
172        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
173        public MessageReference clone() {
174            // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
175            return new MessageReference(this);
176        }
177    
178    }