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