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.XmlSchemaType;
016    import javax.xml.bind.annotation.XmlType;
017    import javax.xml.bind.annotation.XmlValue;
018    import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
019    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
020    
021    
022    /**
023     * Model of text.
024     * <p>A text consists of the properties {@code language} and {@code value}.
025     * Property {@code language} holds the language uniquely identifying the
026     * text in a set of texts. Property {@code value} holds the text in the
027     * corresponding language.
028     * 
029     * 
030     * 
031     */
032    @XmlAccessorType(XmlAccessType.FIELD)
033    @XmlType(name = "Text", propOrder = {
034        "value"
035    })
036    @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
037    public class Text implements Cloneable
038    {
039    
040        @XmlValue
041        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
042        protected String value;
043        @XmlAttribute(required = true)
044        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
045        @XmlSchemaType(name = "language")
046        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
047        protected String language;
048    
049        /**
050         * Creates a new {@code Text} instance.
051         * 
052         */
053        public Text() {
054            // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
055            super();
056        }
057    
058        /**
059         * Creates a new {@code Text} instance by deeply copying a given {@code Text} instance.
060         * 
061         * 
062         * @param o
063         *     The instance to copy.
064         * @throws NullPointerException
065         *     if {@code o} is {@code null}.
066         */
067        public Text(final Text o) {
068            // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
069            super();
070            if (o == null) {
071                throw new NullPointerException("Cannot create a copy of 'Text' from 'null'.");
072            }
073            // CBuiltinLeafInfo: java.lang.String
074            this.value = o.getValue();
075            // CBuiltinLeafInfo: java.lang.String
076            this.language = o.getLanguage();
077        }
078    
079        /**
080         * Gets the value of the value property.
081         * 
082         * @return
083         *     possible object is
084         *     {@link String }
085         *     
086         */
087        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
088        public String getValue() {
089            return value;
090        }
091    
092        /**
093         * Sets the value of the value property.
094         * 
095         * @param value
096         *     allowed object is
097         *     {@link String }
098         *     
099         */
100        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
101        public void setValue(String value) {
102            this.value = value;
103        }
104    
105        /**
106         * The language of this text.
107         * 
108         * @return
109         *     possible object is
110         *     {@link String }
111         *     
112         */
113        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
114        public String getLanguage() {
115            return language;
116        }
117    
118        /**
119         * Sets the value of the language property.
120         * 
121         * @param value
122         *     allowed object is
123         *     {@link String }
124         *     
125         */
126        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
127        public void setLanguage(String value) {
128            this.language = value;
129        }
130    
131        /**
132         * Creates and returns a deep copy of this object.
133         * 
134         * 
135         * @return
136         *     A deep copy of this object.
137         */
138        @Override
139        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
140        public Text clone() {
141            // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
142            return new Text(this);
143        }
144    
145    }