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 result complex type.
32 *
33 * <p>The following schema fragment specifies the expected content contained within this class.
34 *
35 * <pre>
36 * <complexType name="result">
37 * <complexContent>
38 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39 * <sequence>
40 * <element ref="{urn:uddi-org:api_v3}errInfo" minOccurs="0"/>
41 * </sequence>
42 * <attribute name="keyType" type="{urn:uddi-org:api_v3}keyType" />
43 * <attribute name="errno" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
44 * </restriction>
45 * </complexContent>
46 * </complexType>
47 * </pre>
48 *
49 *
50 */
51 @XmlAccessorType(XmlAccessType.FIELD)
52 @XmlType(name = "result", propOrder = {
53 "errInfo"
54 })
55 public class Result implements Serializable{
56 @XmlTransient
57 private static final long serialVersionUID = -4308146039486136383L;
58 protected ErrInfo errInfo;
59 @XmlAttribute
60 protected KeyType keyType;
61 @XmlAttribute(required = true)
62 protected int errno;
63
64 /**
65 * Gets the value of the errInfo property.
66 *
67 * @return
68 * possible object is
69 * {@link ErrInfo }
70 *
71 */
72 public ErrInfo getErrInfo() {
73 return errInfo;
74 }
75
76 /**
77 * Sets the value of the errInfo property.
78 *
79 * @param value
80 * allowed object is
81 * {@link ErrInfo }
82 *
83 */
84 public void setErrInfo(ErrInfo value) {
85 this.errInfo = value;
86 }
87
88 /**
89 * Gets the value of the keyType property.
90 *
91 * @return
92 * possible object is
93 * {@link KeyType }
94 *
95 */
96 public KeyType getKeyType() {
97 return keyType;
98 }
99
100 /**
101 * Sets the value of the keyType property.
102 *
103 * @param value
104 * allowed object is
105 * {@link KeyType }
106 *
107 */
108 public void setKeyType(KeyType value) {
109 this.keyType = value;
110 }
111
112 /**
113 * Gets the value of the errno property.
114 *
115 */
116 public int getErrno() {
117 return errno;
118 }
119
120 /**
121 * Sets the value of the errno property.
122 *
123 */
124 public void setErrno(int value) {
125 this.errno = value;
126 }
127
128 }