KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > wsdl > impl > AbstractExtension


1 package org.jbpm.bpel.wsdl.impl;
2
3 import java.io.Serializable JavaDoc;
4
5 import javax.wsdl.extensions.ExtensibilityElement;
6 import javax.xml.namespace.QName JavaDoc;
7
8 /**
9  * Basic implementation of a WSDL extensibility element.
10  * @author Alejandro Guízar
11  * @version $Revision: 1.3 $ $Date: 2005/05/05 01:00:44 $
12  */

13 public abstract class AbstractExtension implements ExtensibilityElement, Serializable JavaDoc {
14   
15   private long id;
16   private Boolean JavaDoc required;
17   private QName JavaDoc elementType;
18
19   /**
20    * Default constructor. Does nothing.
21    */

22   protected AbstractExtension() {
23   }
24
25   /**
26    * Sets the type of this extensibility element.
27    * @param elementType the qualified name for the type, possibly null
28    */

29   public void setElementType(QName JavaDoc elementType) {
30     this.elementType = elementType;
31   }
32
33   /**
34    * Gets the type of this extensibility element.
35    * @return the qualified name for the type, possibly null
36    */

37   public QName JavaDoc getElementType() {
38     return elementType;
39   }
40
41   /**
42    * Sets whether the semantics of this extension are required.
43    * Relates to the wsdl:required attribute.
44    * @param required the required flag, possibly null.
45    */

46   public void setRequired(Boolean JavaDoc required) {
47     this.required = required;
48   }
49
50   /**
51    * Gets whether the semantics of this extension are required.
52    * Relates to the wsdl:required attribute.
53    * @return the required indicator, possibly null.
54    */

55   public Boolean JavaDoc getRequired() {
56     return required;
57   }
58 }
59
Popular Tags