This project has retired. For details please refer to its Attic page.
PersonName xref
View Javadoc
1   /*
2    * Copyright 2001-2008 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  
18  
19  package org.uddi.api_v3;
20  
21  import java.io.Serializable;
22  
23  import javax.xml.bind.annotation.XmlAccessType;
24  import javax.xml.bind.annotation.XmlAccessorType;
25  import javax.xml.bind.annotation.XmlAttribute;
26  import javax.xml.bind.annotation.XmlTransient;
27  import javax.xml.bind.annotation.XmlType;
28  import javax.xml.bind.annotation.XmlValue;
29  
30  
31  /**
32   * <p>Java class for personName complex type.
33   * 
34   * <p>The following schema fragment specifies the expected content contained within this class.
35   * 
36   * <pre>
37   * &lt;complexType name="personName">
38   *   &lt;simpleContent>
39   *     &lt;extension base="&lt;urn:uddi-org:api_v3>validationTypeString255">
40   *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
41   *     &lt;/extension>
42   *   &lt;/simpleContent>
43   * &lt;/complexType>
44   * </pre>
45   * 
46   * 
47   */
48  @XmlAccessorType(XmlAccessType.FIELD)
49  @XmlType(name = "personName", propOrder = {
50      "value"
51  })
52  public class PersonName implements Serializable{
53  	@XmlTransient
54  	private static final long serialVersionUID = -7567866453877643799L;
55  	@XmlValue
56      protected String value;
57      @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
58      protected String lang;
59  
60      /**
61       * default
62       */
63      public PersonName()
64      {}
65      
66      /**
67       * convenience wrapper
68       * @since 3.2
69       * @param Value
70       * @param Lang 
71       */
72      public PersonName(String Value, String Lang)
73      {
74          this.value = Value;
75          this.lang = Lang;
76      }
77      /**
78       * Gets the value of the value property.
79       * 
80       * @return
81       *     possible object is
82       *     {@link String }
83       *     
84       */
85      public String getValue() {
86          return value;
87      }
88  
89      /**
90       * Sets the value of the value property.
91       * 
92       * @param value
93       *     allowed object is
94       *     {@link String }
95       *     
96       */
97      public void setValue(String value) {
98          this.value = value;
99      }
100 
101     /**
102      * Gets the value of the lang property.
103      * 
104      * @return
105      *     possible object is
106      *     {@link String }
107      *     
108      */
109     public String getLang() {
110         return lang;
111     }
112 
113     /**
114      * Sets the value of the lang property.
115      * 
116      * @param value
117      *     allowed object is
118      *     {@link String }
119      *     
120      */
121     public void setLang(String value) {
122         this.lang = value;
123     }
124 
125 }