View Javadoc

1   /*
2    * $Id: AbstractExtensibilityElement.java,v 1.1 2004/12/15 14:18:18 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   package bexee.wsdl.extensions.partnerlinktype.impl;
10  
11  import javax.wsdl.extensions.ExtensibilityElement;
12  import javax.xml.namespace.QName;
13  
14  /***
15   * A superclass to be used by all WSDL extensibility elements.
16   * 
17   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:18 $
18   * @author Patric Fornasier
19   * @author Pawel Kowalski
20   */
21  public class AbstractExtensibilityElement implements ExtensibilityElement {
22  
23      private QName elementType;
24  
25      private Boolean required;
26  
27      /***
28       * Create an AbstractExtensibilityElement.
29       */
30      public AbstractExtensibilityElement(QName elementQType, Boolean required) {
31          this.elementType = elementQType;
32          this.required = required;
33      }
34  
35      /***
36       * @return Returns the COMPLEX_TYPE.
37       */
38      public QName getElementType() {
39          return elementType;
40      }
41  
42      /***
43       * @param COMPLEX_TYPE
44       *            The COMPLEX_TYPE to set.
45       */
46      public void setElementType(QName elementType) {
47          this.elementType = elementType;
48      }
49  
50      /***
51       * @return Returns the required.
52       */
53      public Boolean getRequired() {
54          return required;
55      }
56  
57      /***
58       * @param required
59       *            The required to set.
60       */
61      public void setRequired(Boolean required) {
62          this.required = required;
63      }
64  }