You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2005/05/12 05:13:13 UTC
svn commit: r169751 - in
/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl:
ComponentImpl.java ExtensibleComponentImpl.java
Author: chathura
Date: Wed May 11 20:13:12 2005
New Revision: 169751
URL: http://svn.apache.org/viewcvs?rev=169751&view=rev
Log:
Added the capability to stick in arbitarary namespace qualified elements to Extensible Component
Modified:
webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ComponentImpl.java
webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ExtensibleComponentImpl.java
Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ComponentImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ComponentImpl.java?rev=169751&r1=169750&r2=169751&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ComponentImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ComponentImpl.java Wed May 11 20:13:12 2005
@@ -16,6 +16,7 @@
package org.apache.wsdl.impl;
import java.util.HashMap;
+import java.util.List;
import org.apache.wsdl.Component;
import org.apache.wsdl.WSDLConstants;
@@ -29,6 +30,11 @@
* Field componentProperties
*/
protected HashMap componentProperties = new HashMap();
+
+ /**
+ * List of Element
+ */
+ protected List elments;
/**
* Field documentation
Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ExtensibleComponentImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ExtensibleComponentImpl.java?rev=169751&r1=169750&r2=169751&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ExtensibleComponentImpl.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/ExtensibleComponentImpl.java Wed May 11 20:13:12 2005
@@ -21,6 +21,7 @@
import org.apache.wsdl.ExtensibleComponent;
import org.apache.wsdl.WSDLFeature;
import org.apache.wsdl.WSDLProperty;
+import org.dom4j.Element;
/**
* @author chathura@opensource.lk
@@ -36,6 +37,12 @@
* Field properties
*/
private List properties = null;
+
+ /**
+ * Field Namespace Qualified elements that can be sticked in the
+ * component.
+ */
+ private List elements = null;
/**
* Will add a <code>WSDLFeature</code> to the feature list.
@@ -68,7 +75,7 @@
}
/**
- * Wll add the property to the component properties. If the property is null it will
+ * Will add the property to the component properties. If the property is null it will
* not be added.
*
* @param wsdlProperty
@@ -93,5 +100,30 @@
return new LinkedList();
}
return this.properties;
+ }
+
+ /**
+ * Adds the <code>Element</code> to the Extensible Component.
+ * @param element
+ */
+ public void addExtensibilityElement(Element element){
+ if(null == this.elements){
+ this.elements = new LinkedList();
+ }
+ if(null == element)
+ return;
+ this.elements.add(element);
+
+ }
+
+ /**
+ * Returns the Extensibility Elements of the Extensible component;
+ * @return List of <code>Element</code>s
+ */
+ public List getExtensibilityElements(){
+ if(null == this.elements){
+ return new LinkedList();
+ }
+ return this.elements;
}
}