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.09.21 at 10:35:38 PM 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-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
037    public class Text
038        implements Cloneable
039    {
040    
041        @XmlValue
042        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
043        protected String value;
044        @XmlAttribute(required = true)
045        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
046        @XmlSchemaType(name = "language")
047        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
048        protected String language;
049    
050        /**
051         * Creates a new {@code Text} instance.
052         * 
053         */
054        public Text() {
055             // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
056            super();
057        }
058    
059        /**
060         * Creates a new {@code Text} instance by deeply copying a given instance.
061         * 
062         * @param o
063         *     The instance to copy or {@code null}.
064         */
065        public Text(final Text o) {
066             // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
067            super();
068            if (o!= null) {
069                {
070                    // CBuiltinLeafInfo: java.lang.String
071                    this.value = ((String) o.getValue());
072                    // CBuiltinLeafInfo: java.lang.String
073                    this.language = ((String) o.getLanguage());
074                }
075            }
076        }
077    
078        /**
079         * Gets the value of the value property.
080         * 
081         * @return
082         *     possible object is
083         *     {@link String }
084         *     
085         */
086        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
087        public String getValue() {
088            return value;
089        }
090    
091        /**
092         * Sets the value of the value property.
093         * 
094         * @param value
095         *     allowed object is
096         *     {@link String }
097         *     
098         */
099        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
100        public void setValue(String value) {
101            this.value = value;
102        }
103    
104        /**
105         * The language of this text.
106         * 
107         * @return
108         *     possible object is
109         *     {@link String }
110         *     
111         */
112        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
113        public String getLanguage() {
114            return language;
115        }
116    
117        /**
118         * Sets the value of the language property.
119         * 
120         * @param value
121         *     allowed object is
122         *     {@link String }
123         *     
124         */
125        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
126        public void setLanguage(String value) {
127            this.language = value;
128        }
129    
130        /**
131         * Creates and returns a deep copy of this object.
132         * 
133         * 
134         * @return
135         *     A deep copy of this object.
136         */
137        @Override
138        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-09-21T10:35:38+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
139        public Text clone() {
140             // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
141            return new Text(this);
142        }
143    
144    }