View Javadoc
1   /**
2    * This Source Code Form is subject to the terms of the Mozilla Public
3    * License, v. 2.0. If a copy of the MPL was not distributed with this
4    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5    *
6    * If it is not possible or desirable to put the notice in a particular
7    * file, then You may include the notice in a location (such as a LICENSE
8    * file in a relevant directory) where a recipient would be likely to look
9    * for such a notice.
10  
11   * 
12   */
13   
14  /*  ---------------------------------------------------------------------------
15   *  U.S. Government, Department of the Army
16   *  Army Materiel Command
17   *  Research Development Engineering Command
18   *  Communications Electronics Research Development and Engineering Center
19   *  ---------------------------------------------------------------------------
20   */
21  
22  package org.oasis_open.docs.wsdm.muws2_2;
23  
24  import java.util.HashMap;
25  import java.util.Map;
26  import javax.xml.bind.annotation.XmlAccessType;
27  import javax.xml.bind.annotation.XmlAccessorType;
28  import javax.xml.bind.annotation.XmlAnyAttribute;
29  import javax.xml.bind.annotation.XmlAttribute;
30  import javax.xml.bind.annotation.XmlType;
31  import javax.xml.bind.annotation.XmlValue;
32  import javax.xml.namespace.QName;
33  
34  
35  /**
36   * <p>Java class for LangString complex type.
37   * 
38   * <p>The following schema fragment specifies the expected content contained within this class.
39   * 
40   * <pre>
41   * &lt;complexType name="LangString">
42   *   &lt;simpleContent>
43   *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
44   *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang use="required""/>
45   *     &lt;/extension>
46   *   &lt;/simpleContent>
47   * &lt;/complexType>
48   * </pre>
49   * 
50   * 
51   */
52  @XmlAccessorType(XmlAccessType.FIELD)
53  @XmlType(name = "LangString", propOrder = {
54      "value"
55  })
56  public class LangString {
57  
58      @XmlValue
59      protected String value;
60      @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace", required = true)
61      protected String lang;
62      @XmlAnyAttribute
63      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
64  
65      /**
66       * Gets the value of the value property.
67       * 
68       * @return
69       *     possible object is
70       *     {@link String }
71       *     
72       */
73      public String getValue() {
74          return value;
75      }
76  
77      /**
78       * Sets the value of the value property.
79       * 
80       * @param value
81       *     allowed object is
82       *     {@link String }
83       *     
84       */
85      public void setValue(String value) {
86          this.value = value;
87      }
88  
89      /**
90       * Gets the value of the lang property.
91       * 
92       * @return
93       *     possible object is
94       *     {@link String }
95       *     
96       */
97      public String getLang() {
98          return lang;
99      }
100 
101     /**
102      * Sets the value of the lang property.
103      * 
104      * @param value
105      *     allowed object is
106      *     {@link String }
107      *     
108      */
109     public void setLang(String value) {
110         this.lang = value;
111     }
112 
113     /**
114      * Gets a map that contains attributes that aren't bound to any typed property on this class.
115      * 
116      * <p>
117      * the map is keyed by the name of the attribute and 
118      * the value is the string value of the attribute.
119      * 
120      * the map returned by this method is live, and you can add new attribute
121      * by updating the map directly. Because of this design, there's no setter.
122      * 
123      * 
124      * @return
125      *     always non-null
126      */
127     public Map<QName, String> getOtherAttributes() {
128         return otherAttributes;
129     }
130 
131 }