01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.axis2.jaxws.description.builder;
21:
22: import java.lang.annotation.Annotation;
23:
24: public class WebFaultAnnot implements javax.xml.ws.WebFault {
25:
26: private String name = "return";
27: private String targetNamespace = "";
28: private String faultBean = "";
29:
30: /** A WebFaultAnnot cannot be instantiated. */
31: private WebFaultAnnot() {
32:
33: }
34:
35: public static WebFaultAnnot createWebFaultAnnotImpl() {
36: return new WebFaultAnnot();
37: }
38:
39: /**
40: * Get the 'name'
41: *
42: * @return String
43: */
44: public String name() {
45: return this .name;
46: }
47:
48: public String targetNamespace() {
49: return this .targetNamespace;
50: }
51:
52: public String faultBean() {
53: return this .faultBean;
54: }
55:
56: /** @param faultBean The faultBean to set. */
57: public void setFaultBean(String faultBean) {
58: this .faultBean = faultBean;
59: }
60:
61: /** @param name The name to set. */
62: public void setName(String name) {
63: this .name = name;
64: }
65:
66: /** @param targetNamespace The targetNamespace to set. */
67: public void setTargetNamespace(String targetNamespace) {
68: this .targetNamespace = targetNamespace;
69: }
70:
71: public Class<Annotation> annotationType() {
72: return Annotation.class;
73: }
74:
75: /** Convenience method for unit testing. We will print all of the data members here. */
76: public String toString() {
77: StringBuffer sb = new StringBuffer();
78: String newLine = "\n";
79: sb.append(newLine);
80: sb.append("@WebFault.name= " + name);
81: sb.append(newLine);
82: sb.append("@WebFault.faultBean= " + faultBean);
83: sb.append(newLine);
84: sb.append("@WebFault.targetNamespace= " + targetNamespace);
85: sb.append(newLine);
86: return sb.toString();
87: }
88:
89: }
|