View Javadoc

1   package org.codehaus.xfire.annotations.commons;
2   
3   import org.codehaus.xfire.annotations.WebResultAnnotation;
4   
5   /***
6    * Commons Attributes version of the WebResult Annotation.
7    *
8    * @author Arjen Poutsma
9    * @@org.apache.commons.attributes.Target(org.apache.commons.attributes.Target.RETURN)
10   * @see org.codehaus.xfire.annotations.WebResultAnnotation
11   */
12  public class WebResult
13          extends WebResultAnnotation
14  {
15      /***
16       * Initializes a new instance of the <code>WebResult</code> attribute.
17       */
18      public WebResult()
19      {
20      }
21  
22      /***
23       * Initializes a new instance of the <code>WebResult</code> attribute with the specified name.
24       *
25       * @param name the name.
26       */
27      public WebResult(String name)
28      {
29          setName(name);
30      }
31  
32      /***
33       * Initializes a new instance of the <code>WebResult</code> attribute with the specified name
34       * and namespace.
35       *
36       * @param name the name.
37       * @param targetNamespace the target namespace.
38       */
39      public WebResult(String name, String targetNamespace)
40      {
41          setName(name);
42          setTargetNamespace(targetNamespace);
43      }
44  }