This project has retired. For details please refer to its Attic page.
KeyedReference 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  
29  
30  /**
31   * <p>Java class for keyedReference complex type.
32   * 
33   * <p>The following schema fragment specifies the expected content contained within this class.
34   * 
35   * <pre>
36   * &lt;complexType name="keyedReference">
37   *   &lt;complexContent>
38   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39   *       &lt;attribute name="tModelKey" use="required" type="{urn:uddi-org:api_v3}tModelKey" />
40   *       &lt;attribute name="keyName" type="{urn:uddi-org:api_v3}keyName" default="" />
41   *       &lt;attribute name="keyValue" use="required" type="{urn:uddi-org:api_v3}keyValue" />
42   *     &lt;/restriction>
43   *   &lt;/complexContent>
44   * &lt;/complexType>
45   * </pre>
46   * 
47   * 
48   */
49  @XmlAccessorType(XmlAccessType.FIELD)
50  @XmlType(name = "keyedReference")
51  public class KeyedReference implements Serializable{
52      
53      public KeyedReference() {
54      }
55  
56      public KeyedReference(String key, String name, String value) {
57          tModelKey = key;
58          keyName = name;
59          keyValue = value;
60      }
61      
62      @XmlTransient
63      private static final long serialVersionUID = 2695435294724172036L;
64      @XmlAttribute(required = true)
65      protected String tModelKey;
66      @XmlAttribute
67      protected String keyName;
68      @XmlAttribute(required = true)
69      protected String keyValue;
70  
71      /**
72       * Gets the value of the tModelKey property.
73       * 
74       * @return
75       *     possible object is
76       *     {@link String }
77       *     
78       */
79      public String getTModelKey() {
80          return tModelKey;
81      }
82  
83      /**
84       * Sets the value of the tModelKey property.
85       * 
86       * @param value
87       *     allowed object is
88       *     {@link String }
89       *     
90       */
91      public void setTModelKey(String value) {
92          this.tModelKey = value;
93      }
94  
95      /**
96       * Gets the value of the keyName property.
97       * 
98       * @return
99       *     possible object is
100      *     {@link String }
101      *     
102      */
103     public String getKeyName() {
104         if (keyName == null) {
105             return "";
106         } else {
107             return keyName;
108         }
109     }
110 
111     /**
112      * Sets the value of the keyName property.
113      * 
114      * @param value
115      *     allowed object is
116      *     {@link String }
117      *     
118      */
119     public void setKeyName(String value) {
120         this.keyName = value;
121     }
122 
123     /**
124      * Gets the value of the keyValue property.
125      * 
126      * @return
127      *     possible object is
128      *     {@link String }
129      *     
130      */
131     public String getKeyValue() {
132         return keyValue;
133     }
134 
135     /**
136      * Sets the value of the keyValue property.
137      * 
138      * @param value
139      *     allowed object is
140      *     {@link String }
141      *     
142      */
143     public void setKeyValue(String value) {
144         this.keyValue = value;
145     }
146 
147 }