ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r157654 - in webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl: ExtensionElement.java WSDLExtensibilityElement.java WSDLTypes.java impl/ExtensionElementImpl.java impl/WSDLExtensibilityElementImpl.java impl/WSDLTypesImpl.java
Date Wed, 16 Mar 2005 04:17:25 GMT
Author: chathura
Date: Tue Mar 15 20:17:24 2005
New Revision: 157654

URL: http://svn.apache.org/viewcvs?view=rev&rev=157654
Log:
ExtensibilityElements recreated to support the WSDL types inside WOM

Added:
    webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLExtensibilityElement.java
    webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java
Removed:
    webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensionElement.java
    webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
Modified:
    webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java
    webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java

Added: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLExtensibilityElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLExtensibilityElement.java?view=auto&rev=157654
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLExtensibilityElement.java
(added)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLExtensibilityElement.java
Tue Mar 15 20:17:24 2005
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wsdl;
+
+import org.w3c.dom.Element;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public interface WSDLExtensibilityElement {
+    /**
+     * Method getElement
+     *
+     * @return
+     */
+    public Element getElement();
+
+    /**
+     * Method setElement
+     *
+     * @param element
+     */
+    public void setElement(Element element);
+
+    /**
+     * Method isRequired
+     *
+     * @return
+     */
+    public boolean isRequired();
+
+    /**
+     * Method setRequired
+     *
+     * @param required
+     */
+    public void setRequired(boolean required);
+}

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java?view=diff&r1=157653&r2=157654
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java Tue Mar
15 20:17:24 2005
@@ -15,9 +15,10 @@
  */
 package org.apache.wsdl;
 
-import javax.xml.namespace.QName;
 import java.util.HashMap;
 
+import javax.xml.namespace.QName;
+
 /**
  * @author chathura@opensource.lk
  */
@@ -42,7 +43,7 @@
      * @param qName
      * @param element
      */
-    public void addElement(QName qName, ExtensionElement element);
+    public void addElement(QName qName, WSDLExtensibilityElement element);
 
     /**
      * Will return the Element with the given <code>QName</code>
@@ -51,5 +52,5 @@
      * @param qName
      * @return
      */
-    public ExtensionElement getElement(QName qName);
+    public WSDLExtensibilityElement getElement(QName qName);
 }

Added: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java?view=auto&rev=157654
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java
(added)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLExtensibilityElementImpl.java
Tue Mar 15 20:17:24 2005
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wsdl.impl;
+
+import org.apache.wsdl.WSDLExtensibilityElement;
+import org.w3c.dom.Element;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLExtensibilityElementImpl implements WSDLExtensibilityElement {
+    /**
+     * Field element
+     */
+    private Element element;
+
+    /**
+     * Field required
+     */
+    private boolean required;
+
+    /**
+     * Method isRequired
+     *
+     * @return
+     */
+    public boolean isRequired() {
+        return required;
+    }
+
+    /**
+     * Method setRequired
+     *
+     * @param required
+     */
+    public void setRequired(boolean required) {
+        this.required = required;
+    }
+
+    /**
+     * Method getElement
+     *
+     * @return
+     */
+    public Element getElement() {
+        return element;
+    }
+
+    /**
+     * Method setElement
+     *
+     * @param element
+     */
+    public void setElement(Element element) {
+        this.element = element;
+    }
+}

Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java?view=diff&r1=157653&r2=157654
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java
Tue Mar 15 20:17:24 2005
@@ -15,11 +15,12 @@
  */
 package org.apache.wsdl.impl;
 
-import org.apache.wsdl.ExtensionElement;
-import org.apache.wsdl.WSDLTypes;
+import java.util.HashMap;
 
 import javax.xml.namespace.QName;
-import java.util.HashMap;
+
+import org.apache.wsdl.WSDLExtensibilityElement;
+import org.apache.wsdl.WSDLTypes;
 
 /**
  * @author chathura@opensource.lk
@@ -54,7 +55,7 @@
      * @param qName
      * @param element
      */
-    public void addElement(QName qName, ExtensionElement element) {
+    public void addElement(QName qName, WSDLExtensibilityElement element) {
         this.extensionElements.put(qName, element);
     }
 
@@ -65,7 +66,7 @@
      * @param qName
      * @return
      */
-    public ExtensionElement getElement(QName qName) {
-        return (ExtensionElement) this.extensionElements.get(qName);
+    public WSDLExtensibilityElement getElement(QName qName) {
+        return (WSDLExtensibilityElement) this.extensionElements.get(qName);
     }
 }



Mime
View raw message