You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2004/12/17 13:47:02 UTC
svn commit: r122639 - in webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache: axis/wsdl/wsdltowom wsdl wsdl/impl wsdl/util
Author: chathura
Date: Fri Dec 17 04:47:00 2004
New Revision: 122639
URL: http://svn.apache.org/viewcvs?view=rev&rev=122639
Log:
WSDLTypes, WSDLIncledes and WSDLImports added to the WOM.Further WSDLTOWOM Builder Modified
Added:
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLDescription.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLImport.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInclude.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLTypes.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLImportImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java
Removed:
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLDefinitions.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLDefinitionsImpl.java
Modified:
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/Parser.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL4JtoWOMPump.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/Component.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensibleComponent.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/FaultReference.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/MessageReference.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLConstants.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLEndpoint.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFault.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFeature.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInterface.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLOperation.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLProperty.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLProcessingException.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Style.java
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Utils.java
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/Parser.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/Parser.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/Parser.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/Parser.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/Parser.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/Parser.java Fri Dec 17 04:47:00 2004
@@ -15,6 +15,10 @@
*/
package org.apache.axis.wsdl.wsdltowom;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class Parser {
}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java Fri Dec 17 04:47:00 2004
@@ -15,12 +15,17 @@
*/
package org.apache.axis.wsdl.wsdltowom;
-import org.apache.wsdl.WSDLDefinitions;
+import java.io.InputStream;
import javax.wsdl.WSDLException;
-import java.io.InputStream;
+import org.apache.wsdl.WSDLDescription;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WOMBuilder {
- public WSDLDefinitions build(InputStream in)throws WSDLException;
+ public WSDLDescription build(InputStream in)throws WSDLException;
}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java Fri Dec 17 04:47:00 2004
@@ -15,16 +15,21 @@
*/
package org.apache.axis.wsdl.wsdltowom;
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.wsdl.WSDLException;
+import javax.xml.parsers.ParserConfigurationException;
+
import org.apache.wsdl.WSDLConstants;
import org.apache.wsdl.util.Utils;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
-import javax.wsdl.WSDLException;
-import javax.xml.parsers.ParserConfigurationException;
-import java.io.IOException;
-import java.io.InputStream;
-
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WOMBuilderFactory {
private static final int WSDL11 = 1;
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java Fri Dec 17 04:47:00 2004
@@ -15,25 +15,30 @@
*/
package org.apache.axis.wsdl.wsdltowom;
-import org.apache.wsdl.WSDLDefinitions;
-import org.apache.wsdl.impl.WSDLDefinitionsImpl;
-import org.apache.wsdl.util.Utils;
-import org.w3c.dom.Document;
-import org.xml.sax.SAXException;
+import java.io.IOException;
+import java.io.InputStream;
import javax.wsdl.Definition;
import javax.wsdl.WSDLException;
import javax.wsdl.factory.WSDLFactory;
import javax.wsdl.xml.WSDLReader;
import javax.xml.parsers.ParserConfigurationException;
-import java.io.IOException;
-import java.io.InputStream;
+import org.apache.wsdl.WSDLDescription;
+import org.apache.wsdl.impl.WSDLDescriptionImpl;
+import org.apache.wsdl.util.Utils;
+import org.w3c.dom.Document;
+import org.xml.sax.SAXException;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WSDL1ToWOMBuilder implements WOMBuilder {
- public WSDLDefinitions build(InputStream in)throws WSDLException{
+ public WSDLDescription build(InputStream in)throws WSDLException{
- WSDLDefinitions wsdlDefinitions = new WSDLDefinitionsImpl();
+ WSDLDescription wsdlDefinitions = new WSDLDescriptionImpl();
WSDLPump pump = new WSDLPump(wsdlDefinitions, this.readInTheWSDLFile(in));
pump.pump();
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java Fri Dec 17 04:47:00 2004
@@ -15,14 +15,19 @@
*/
package org.apache.axis.wsdl.wsdltowom;
-import org.apache.wsdl.WSDLDefinitions;
+import java.io.InputStream;
import javax.wsdl.WSDLException;
-import java.io.InputStream;
+import org.apache.wsdl.WSDLDescription;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WSDL2ToWOMBuilder implements WOMBuilder{
- public WSDLDefinitions build(InputStream in ) throws WSDLException{
+ public WSDLDescription build(InputStream in ) throws WSDLException{
throw new UnsupportedOperationException("Fill the imps");
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL4JtoWOMPump.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL4JtoWOMPump.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL4JtoWOMPump.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL4JtoWOMPump.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL4JtoWOMPump.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDL4JtoWOMPump.java Fri Dec 17 04:47:00 2004
@@ -15,17 +15,21 @@
*/
package org.apache.axis.wsdl.wsdltowom;
-import org.apache.wsdl.WSDLBinding;
-import org.apache.wsdl.WSDLDefinitions;
-import org.apache.wsdl.WSDLInterface;
-
import javax.wsdl.Binding;
import javax.wsdl.Definition;
import javax.wsdl.PortType;
+import org.apache.wsdl.WSDLBinding;
+import org.apache.wsdl.WSDLDescription;
+import org.apache.wsdl.WSDLInterface;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WSDL4JtoWOMPump {
- public void pump(WSDLDefinitions wsdlDefinitiios, Definition wsdl4jDefinition){
+ public void pump(WSDLDescription wsdlDefinitiios, Definition wsdl4jDefinition){
//Copy the Definition's Attrebute Information items and pump the
wsdlDefinitiios.setTargetNameSpace( wsdl4jDefinition.getTargetNamespace());
//wsdl4jDefinition.getNamespace()
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java Fri Dec 17 04:47:00 2004
@@ -15,21 +15,47 @@
*/
package org.apache.axis.wsdl.wsdltowom;
-import org.apache.wsdl.*;
-import org.apache.wsdl.impl.*;
+import java.util.Iterator;
-import javax.wsdl.*;
+import javax.wsdl.Binding;
+import javax.wsdl.Definition;
+import javax.wsdl.Input;
+import javax.wsdl.Operation;
+import javax.wsdl.OperationType;
+import javax.wsdl.Output;
+import javax.wsdl.Port;
+import javax.wsdl.PortType;
+import javax.wsdl.Service;
import javax.xml.namespace.QName;
-import java.util.Iterator;
+import org.apache.wsdl.MessageReference;
+import org.apache.wsdl.WSDLBinding;
+import org.apache.wsdl.WSDLConstants;
+import org.apache.wsdl.WSDLDescription;
+import org.apache.wsdl.WSDLEndpoint;
+import org.apache.wsdl.WSDLInterface;
+import org.apache.wsdl.WSDLOperation;
+import org.apache.wsdl.WSDLService;
+import org.apache.wsdl.impl.MessageReferenceImpl;
+import org.apache.wsdl.impl.WSDLBindingImpl;
+import org.apache.wsdl.impl.WSDLEndpointImpl;
+import org.apache.wsdl.impl.WSDLInterfaceImpl;
+import org.apache.wsdl.impl.WSDLOperationImpl;
+import org.apache.wsdl.impl.WSDLProcessingException;
+import org.apache.wsdl.impl.WSDLServiceImpl;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WSDLPump {
- private WSDLDefinitions womDefinition;
+ private WSDLDescription womDefinition;
private Definition wsdl4jParsedDefinition;
public WSDLPump(
- WSDLDefinitions womDefinition,
+ WSDLDescription womDefinition,
Definition wsdl4jParsedDefinition) {
this.womDefinition = womDefinition;
this.wsdl4jParsedDefinition = wsdl4jParsedDefinition;
@@ -43,7 +69,7 @@
}
private void populateDefinition(
- WSDLDefinitions wsdlDefinition,
+ WSDLDescription wsdlDefinition,
Definition wsdl4JDefinition) {
//Go through the WSDL4J Definition and pump it to the WOM
wsdlDefinition.setWSDL1DefinitionName(wsdl4JDefinition.getQName());
@@ -54,23 +80,25 @@
//Order of the following itmes shouldn't be changed unless you really know //
//what you are doing. Reason being the components that are copied(pumped) //
//towards the end depend on the components that has already being pumped. //
- //Following Lists some of the dependencies //
+ //Following Lists some of the dependencies //
//1) The Binding refers to the Interface //
- //1) Thw Endpoint refers tot he Bindings
+ //1) Thw Endpoint refers tot he Bindings //
// .... //
// //
/////////////////////////////////////////////////////////////////////////////
- //////////////////////////(1)First pump the Types////////////////////////////
-
+ //////////////////////////(1)First pump the Types////////////////////////////
//Types may get changed inside the Operation pumping.
- //////////////////////////(2)Pump the Interfaces/////////////////////////////
-
+
+
+
+
+ //////////////////////////(2)Pump the Interfaces/////////////////////////////
//pump the Interfaces: Get the PortTypes from WSDL4J parse OM and pump it to the
//WOM's WSDLInterface Components
@@ -85,9 +113,10 @@
}
- //////////////////////////(3)Pump the Bindings///////////////////////////////
-
-
+
+
+
+ //////////////////////////(3)Pump the Bindings///////////////////////////////
//pump the Bindings: Get the Bindings map from WSDL4J and create a new map of
//WSDLBinding elements
@@ -231,14 +260,29 @@
///////////////////////////Util Methods ////////////////////////////////////
/**
- * Will return the URI for the MEP.
+ * Will return the URI for the MEP. if null will retun the IN_OUT as default
+ * pattern.
*/
private String getRelaventMEPForTheMessageStyle(OperationType operationType){
-
- //TODO
- throw new UnsupportedOperationException("Fill the impl");
-
-
+
+ if(null != operationType){
+
+ if(operationType.equals(OperationType.REQUEST_RESPONSE))
+ return WSDLConstants.MEP_URI_IN_OUT;
+
+ if(operationType.equals(OperationType.ONE_WAY))
+ return WSDLConstants.MEP_URI_IN_ONLY;
+
+ if(operationType.equals(OperationType.NOTIFICATION))
+ return WSDLConstants.MEP_URI_OUT_ONLY;
+
+ if(operationType.equals(OperationType.SOLICIT_RESPONSE))
+ return WSDLConstants.MEP_URI_OUT_IN;
+ }
+
+ //Either operation type is null of its none of the above.
+ throw new WSDLProcessingException("Invalid Operation Type(MEP) :Operation Type should be either of REQUESTRESPONCE, ONEWAY, NOTIFICATION, SOLICITRESPONCE");
+
}
}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/Component.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/Component.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/Component.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/Component.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/Component.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/Component.java Fri Dec 17 04:47:00 2004
@@ -17,6 +17,10 @@
import java.util.HashMap;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface Component {
/**
* Returns the properties that are specific to this WSDL Component.
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensibleComponent.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensibleComponent.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensibleComponent.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensibleComponent.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensibleComponent.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensibleComponent.java Fri Dec 17 04:47:00 2004
@@ -18,6 +18,10 @@
import java.util.List;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface ExtensibleComponent extends Component{
/**
* Will add a <code>WSDLFeature</code> to the feature list.
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/ExtensionElement.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2001-2004 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 ExtensionElement {
+ public Element getElement();
+
+ public void setElement(Element element);
+}
\ No newline at end of file
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/FaultReference.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/FaultReference.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/FaultReference.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/FaultReference.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/FaultReference.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/FaultReference.java Fri Dec 17 04:47:00 2004
@@ -15,6 +15,10 @@
*/
package org.apache.wsdl;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface FaultReference extends Component{
/**
* Returns the direction of the Fault according the MEP
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/MessageReference.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/MessageReference.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/MessageReference.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/MessageReference.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/MessageReference.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/MessageReference.java Fri Dec 17 04:47:00 2004
@@ -15,6 +15,10 @@
*/
package org.apache.wsdl;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface MessageReference extends ExtensibleComponent{
public String getDirection();
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLBinding.java Fri Dec 17 04:47:00 2004
@@ -21,6 +21,10 @@
import javax.xml.namespace.QName;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WSDLBinding extends ExtensibleComponent{
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLConstants.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLConstants.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLConstants.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLConstants.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLConstants.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLConstants.java Fri Dec 17 04:47:00 2004
@@ -15,6 +15,10 @@
*/
package org.apache.wsdl;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WSDLConstants {
public static final String WSDL2_0_NAMESPACE =
@@ -33,4 +37,26 @@
//TODO Verify weather the value is right with the spec.
public static final String WSDL_MESSAGE_DIRECTION_OUT = "out";
+
+ //////////////////////////////////////////////////////////////////
+ ///////////////Message Exchange Pattern Constants/////////////////
+ //////////////////////////////////////////////////////////////////
+
+ public static final String MEP_URI_IN_ONLY = "http://www.w3.org/2004/08/wsdl/in-only";
+
+ public static final String MEP_URI_ROBUST_IN_ONLY = "http://www.w3.org/2004/08/wsdl/robust-in-only";
+
+ public static final String MEP_URI_IN_OUT = "http://www.w3.org/2004/08/wsdl/in-out";
+
+ public static final String MEP_URI_IN_OPTIONAL_OUT = "http://www.w3.org/2004/08/wsdl/in-opt-out";
+
+ public static final String MEP_URI_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/out-only";
+
+ public static final String MEP_URI_ROBUST_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/robust-out-only";
+
+ public static final String MEP_URI_OUT_IN = "http://www.w3.org/2004/08/wsdl/out-in";
+
+ public static final String MEP_URI_OUT_OPTIONL_IN = "http://www.w3.org/2004/08/wsdl/out-opt-in";
+
+
}
Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLDefinitions.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLDefinitions.java?view=auto&rev=122638
==============================================================================
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLDescription.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLDescription.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLDescription.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,174 @@
+/*
+ * Copyright 2001-2004 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 java.util.ArrayList;
+import java.util.HashMap;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLDescription {
+ /**
+ * Returns a Map of <code>WSDLBindings</code> Objects keyed by the <code>QName</code>
+ * of the Binding.
+ */
+ public HashMap getBindings();
+
+ /**
+ * Sets the whole new set of Bindings to the WSDLDefinition.
+ */
+ public void setBindings(HashMap bindings);
+
+ /**
+ * The WSDLBinding Will be added to the map keyed with its own QName.
+ * If the WSDLBinding is null it will not be added.
+ * If the WSDLBinding is not null and Binding name is null then
+ * WSDLProcessingException will be thrown
+ * @param binding <code>WSDLBinding</code> Object
+ */
+ public void addBinding(WSDLBinding binding);
+
+ /**
+ * Retrives the <code>WSDLBinding</code> by its QName. Wil return null
+ * if <code>WSDLBinding</code> is not found.
+ * @param qName The QName of the Binding.
+ */
+ public WSDLBinding getBinding(QName qName);
+
+ /**
+ * The Interface component will be added to the map keyed with its own name.
+ * If the Interface is null it will not be added.
+ * If the interface name is null an WSDLProcessingException will be thrown
+ * @param interfaceComponent
+ */
+ public void addInterface(WSDLInterface interfaceComponent);
+
+ /**
+ * The Interface Component will be returned if it exsists,
+ * otherwise null will be returned.
+ * @param qName qName of the Interface.
+ * @return The Interface Component with the relavent QName
+ */
+ public WSDLInterface getInterface(QName qName);
+
+ public HashMap getServices();
+
+ public void setServices(HashMap services);
+
+ /**
+ * Will return the <code>WSDLService </code> if found otherwise return null.
+ * @param qName <code>QName</code> of the Service
+ * @return The Service with the relavent QName
+ */
+ public WSDLService getService(QName qName);
+
+ /**
+ * Will add the <code>WSDLService</code> to the Map.
+ * If object is null it will not be added.
+ * If the <code>WSDLService</code> name is null a <code>WSDLProcessingException</code>
+ * will be thrown.(its required)
+ * @param service
+ */
+ public void addService(WSDLService service);
+
+ public String getTargetNameSpace();
+
+ public void setTargetNameSpace(String targetNameSpace);
+
+ public HashMap getWsdlInterfaces();
+
+ public void setWsdlInterfaces(HashMap wsdlInterfaces);
+
+ public Object[] getTypes();
+
+ public void setTypes(Object[] types);
+
+ /**
+ * Gets the name attrebute of the WSDL 1.1 Definitions Element
+ * @return
+ */
+ public QName getWSDL1DefinitionName();
+
+ /**
+ * Sets the name attrebute of the WSDL 1.1 Definitions Element
+ * @param wsdl1DefinitionName
+ */
+ public void setWSDL1DefinitionName(QName wsdl1DefinitionName);
+
+ /**
+ * Will return all the Namespaces associated with the Definition
+ * Component and will be keyed by the Napespace Prefix.
+ * @return
+ */
+ public HashMap getNamespaces();
+
+ /**
+ * Sets the Namespaces associated with the Difinition Component
+ * and they should be keyed by its Namespace Prefix.
+ * @param namespaces
+ */
+ public void setNamespaces(HashMap namespaces);
+
+ /**
+ * Will return the Namespace URI as a String if there exists an
+ * Namespace URI associated with the given prefix, in the Definition
+ * Component, Will return null if not found.
+ * @param prefix Prefix defined in the Definitions elemet in the WSDL file
+ * @return The Namespace URI for the prefix.
+ */
+ public String getNamespace(String prefix);
+
+ /**
+ * Returns the WSDL Imports in an <code>ArrayList</code>
+ * @return
+ */
+ public ArrayList getImports();
+
+ /**
+ * Sets the imports as an <code>ArrayList</code>
+ * @param imports
+ */
+ public void setImports(ArrayList imports);
+
+ /**
+ * Adds an import to the list.
+ * @param wsdlImport
+ */
+ public void addImports(WSDLImport wsdlImport);
+
+ /**
+ * Returns the Includes as an <code>ArrayList</code>
+ * @return
+ */
+ public ArrayList getIncludes();
+
+ /**
+ * Sets the includes as an <code>Arraylist</code>
+ * @param includes
+ */
+ public void setIncludes(ArrayList includes);
+
+ /**
+ * Adds the WSDL Include to the list.
+ * @param wsdlInclude
+ */
+ public void addInclude(WSDLInclude wsdlInclude);
+}
\ No newline at end of file
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLEndpoint.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLEndpoint.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLEndpoint.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLEndpoint.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLEndpoint.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLEndpoint.java Fri Dec 17 04:47:00 2004
@@ -17,6 +17,11 @@
import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WSDLEndpoint extends Component{
public WSDLBinding getBinding();
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFault.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFault.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFault.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFault.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFault.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFault.java Fri Dec 17 04:47:00 2004
@@ -17,6 +17,10 @@
import org.w3c.dom.Element;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WSDLFault extends Component{
public Element getElement();
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFeature.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFeature.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFeature.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFeature.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFeature.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLFeature.java Fri Dec 17 04:47:00 2004
@@ -16,6 +16,10 @@
package org.apache.wsdl;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WSDLFeature extends Component{
public String getName();
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLImport.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLImport.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLImport.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2001-2004 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;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLImport extends Component{
+ /**
+ * Gets the location URI of the Include.
+ * @return
+ */
+ public String getLocation();
+
+ /**
+ * Sets the location URI of the Include.
+ * @param loaction
+ */
+ public void setLocation(String location);
+
+ /**
+ * Returns the namespace URI
+ * @return
+ */
+ public String getNamespace();
+
+ /**
+ * Sets the namespace URI.
+ * @param namespace
+ */
+ public void setNamespace(String namespace);
+}
\ No newline at end of file
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInclude.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInclude.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInclude.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2001-2004 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;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLInclude extends Component{
+ /**
+ * Gets the location URI of the Include.
+ * @return
+ */
+ public String getLoaction();
+
+ /**
+ * Sets the location URI of the Include.
+ * @param loaction
+ */
+ public void setLoaction(String loaction);
+}
\ No newline at end of file
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInterface.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInterface.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInterface.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInterface.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInterface.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLInterface.java Fri Dec 17 04:47:00 2004
@@ -21,6 +21,10 @@
import javax.xml.namespace.QName;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WSDLInterface extends ExtensibleComponent{
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLOperation.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLOperation.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLOperation.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLOperation.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLOperation.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLOperation.java Fri Dec 17 04:47:00 2004
@@ -19,7 +19,13 @@
import javax.xml.namespace.QName;
-public interface WSDLOperation extends ExtensibleComponent {
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLOperation extends ExtensibleComponent{
+
public List getInfaults();
@@ -55,4 +61,5 @@
public String getTargetnemespace();
+
}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLProperty.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLProperty.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLProperty.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLProperty.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLProperty.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLProperty.java Fri Dec 17 04:47:00 2004
@@ -15,6 +15,11 @@
*/
package org.apache.wsdl;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WSDLProperty extends Component{
public Object getConstraint();
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLService.java Fri Dec 17 04:47:00 2004
@@ -19,6 +19,11 @@
import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface WSDLService extends Component{
public HashMap getEndpoints();
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLTypes.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLTypes.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/WSDLTypes.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2001-2004 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 java.util.HashMap;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLTypes {
+ /**
+ * Sets the <code>ExtensionElement</code>s as a <code>HashMap</code>
+ * @return
+ */
+ public HashMap getTypes();
+
+ /**
+ * Returns all the <code>ExtensionElement</code>s as a <code>HashMap</code>
+ * @param types
+ */
+ public void setTypes(HashMap types);
+
+ /**
+ * Adds the <code>ExtensionElement</code> to the map keyed with the <code>QName</code> *
+ * @param qName
+ * @param element
+ */
+ public void addElement(QName qName, ExtensionElement element);
+
+ /**
+ * Will return the Element with the given <code>QName</code>
+ * Returns null if not found.
+ * @param qName
+ * @return
+ */
+ public ExtensionElement getElement(QName qName);
+}
\ No newline at end of file
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java Fri Dec 17 04:47:00 2004
@@ -19,11 +19,37 @@
import org.apache.wsdl.Component;
import org.apache.wsdl.WSDLConstants;
+import org.w3c.dom.Document;
+
+
+
+/**
+ * @author Chathura Herath
+ *
+ */
public class ComponentImpl implements WSDLConstants, Component{
protected HashMap componentProperties = new HashMap();
+ protected Document documentation = null;
+
+ /**
+ * Returns the Documentation Element as a
+ * <code>Document</code>.
+ * @return documentation
+ */
+ public Document getDocumentation() {
+ return documentation;
+ }
+
+ /**
+ * Will set the Documentation element for the Component.
+ * @param documentation Component Docuemntation
+ */
+ public void setDocumentation(Document documentation) {
+ this.documentation = documentation;
+ }
/**
* Returns the properties that are specific to this WSDL Component.
*
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java Fri Dec 17 04:47:00 2004
@@ -22,6 +22,10 @@
import org.apache.wsdl.WSDLFeature;
import org.apache.wsdl.WSDLProperty;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class ExtensibleComponentImpl extends ComponentImpl implements ExtensibleComponent {
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2001-2004 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.ExtensionElement;
+import org.w3c.dom.Element;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class ExtensionElementImpl implements ExtensionElement {
+
+ private Element element;
+
+ public Element getElement() {
+ return element;
+ }
+ public void setElement(Element element) {
+ this.element = element;
+ }
+}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java Fri Dec 17 04:47:00 2004
@@ -17,6 +17,10 @@
import org.apache.wsdl.FaultReference;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class FaultReferenceImpl extends ComponentImpl implements FaultReference {
//TODO make it a QNAME
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java Fri Dec 17 04:47:00 2004
@@ -18,6 +18,10 @@
import org.apache.wsdl.MessageReference;
+/**
+ * @author Chathura Herath
+ *
+ */
public class MessageReferenceImpl extends ExtensibleComponentImpl implements MessageReference {
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java Fri Dec 17 04:47:00 2004
@@ -17,7 +17,13 @@
import org.apache.wsdl.WSDLProperty;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WDSLPropertyImpl extends ComponentImpl implements WSDLProperty {
+
+
private String uri;
//TODO replace with the data binding object structure
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java Fri Dec 17 04:47:00 2004
@@ -23,48 +23,55 @@
import org.apache.wsdl.WSDLBinding;
import org.apache.wsdl.WSDLInterface;
-public class WSDLBindingImpl
- extends ExtensibleComponentImpl
- implements WSDLBinding {
-
- private QName name;
-
- private URI targetNameSpace;
-
- private WSDLInterface boundInterface;
-
- private List faults;
-
- private List operations;
-
- public WSDLInterface getBoundInterface() {
- return boundInterface;
- }
- public void setBoundInterface(WSDLInterface boundInterface) {
- this.boundInterface = boundInterface;
- }
- public List getFaults() {
- return faults;
- }
- public void setFaults(List faults) {
- this.faults = faults;
- }
- public QName getName() {
- return name;
- }
- public void setName(QName name) {
- this.name = name;
- }
- public List getOperations() {
- return operations;
- }
- public void setOperations(List operations) {
- this.operations = operations;
- }
- public URI getTargetNameSpace() {
- return targetNameSpace;
- }
- public void setTargetNameSpace(URI targetNameSpace) {
- this.targetNameSpace = targetNameSpace;
- }
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLBindingImpl extends ExtensibleComponentImpl implements WSDLBinding {
+
+ private QName name;
+
+ private URI targetNameSpace;
+
+ private WSDLInterface boundInterface;
+
+ private List faults;
+
+ private List operations;
+
+
+
+
+
+
+ public WSDLInterface getBoundInterface() {
+ return boundInterface;
+ }
+ public void setBoundInterface(WSDLInterface boundInterface) {
+ this.boundInterface = boundInterface;
+ }
+ public List getFaults() {
+ return faults;
+ }
+ public void setFaults(List faults) {
+ this.faults = faults;
+ }
+ public QName getName() {
+ return name;
+ }
+ public void setName(QName name) {
+ this.name = name;
+ }
+ public List getOperations() {
+ return operations;
+ }
+ public void setOperations(List operations) {
+ this.operations = operations;
+ }
+ public URI getTargetNameSpace() {
+ return targetNameSpace;
+ }
+ public void setTargetNameSpace(URI targetNameSpace) {
+ this.targetNameSpace = targetNameSpace;
+ }
}
Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLDefinitionsImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLDefinitionsImpl.java?view=auto&rev=122638
==============================================================================
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,313 @@
+/*
+ * Copyright 2001-2004 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 thWSDLInterfaceImple 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 java.util.ArrayList;
+import java.util.HashMap;
+
+import javax.xml.namespace.QName;
+
+import org.apache.wsdl.WSDLBinding;
+import org.apache.wsdl.WSDLDescription;
+import org.apache.wsdl.WSDLImport;
+import org.apache.wsdl.WSDLInclude;
+import org.apache.wsdl.WSDLInterface;
+import org.apache.wsdl.WSDLService;
+
+
+
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLDescriptionImpl extends ComponentImpl implements WSDLDescription {
+
+ /**
+ * The name token of WSDL 1.1 Definition.
+ */
+ private QName wsdl1DefinitionName ;
+
+ //TODO local name and the naspace name to be made static or through a Constant class.
+
+ // The attrebute information items
+
+ //TODO required; thus check it up
+ private String targetNameSpace;
+
+ //private NamespaceMappings[] namespaceDefinitions;
+
+ //TODO The object structure of some external xml data binding is going to be pluged here eventually.
+
+ private Object[] types;
+
+ /**
+ * This List will be a list of <code>WSDLInterface</code> objects.
+ */
+ private HashMap wsdlInterfaces = new HashMap();
+
+ /**
+ * This <code>HashMap </code> is a Map of <code>WSDLBinding </code> objects.
+ */
+ private HashMap bindings = new HashMap();
+
+ /**
+ * This <code>HashMap </code> is a list of <code>WSDLService </code> objects.
+ * Support of multiple is backed by the requirements in the specification.
+ */
+ private HashMap services = new HashMap();
+
+ /**
+ * WSDL imports
+ */
+ private ArrayList imports = new ArrayList();
+
+
+ /**
+ * WSDL Includes.
+ */
+ private ArrayList includes = new ArrayList();
+
+ /**
+ * Will keep a map of all the Namespaces associated with the
+ * Definition Component and will be keyed by the Namespace prefix.
+ */
+ private HashMap namespaces = new HashMap();
+
+ /**
+ * Returns a Map of <code>WSDLBindings</code> Objects keyed by the <code>QName</code>
+ * of the Binding.
+ */
+ public HashMap getBindings() {
+ return bindings;
+ }
+
+
+ /**
+ * Sets the whole new set of Bindings to the WSDLDefinition.
+ */
+ public void setBindings(HashMap bindings) {
+// if(this.bindings.size() > 0) throw new WSDLProcessingException("WSDLBimding Map already contains " +
+// "one or more bindings. Trying to assign a new map will loose those Bindings.");
+ this.bindings = bindings;
+ }
+
+
+ /**
+ * The WSDLBinding Will be added to the map keyed with its own QName.
+ * If the WSDLBinding is null it will not be added.
+ * If the WSDLBinding is not null and Binding name is null then
+ * WSDLProcessingException will be thrown
+ * @param binding <code>WSDLBinding</code> Object
+ */
+ public void addBinding(WSDLBinding binding){
+
+ if(null == binding) return;
+
+ if( null == binding.getName())
+ throw new WSDLProcessingException("The WSDLBinding name cannot be null(Required)");
+
+ this.bindings.put(binding.getName(), binding);
+ }
+
+ /**
+ * Retrives the <code>WSDLBinding</code> by its QName. Wil return null
+ * if <code>WSDLBinding</code> is not found.
+ * @param qName The QName of the Binding.
+ */
+ public WSDLBinding getBinding(QName qName){
+ return (WSDLBinding)this.bindings.get(qName);
+ }
+
+
+
+ /**
+ * The Interface component will be added to the map keyed with its own name.
+ * If the Interface is null it will not be added.
+ * If the interface name is null an WSDLProcessingException will be thrown
+ * @param interfaceComponent
+ */
+ public void addInterface(WSDLInterface interfaceComponent){
+ if(null == interfaceComponent) return;
+ if(null == interfaceComponent.getName())
+ throw new WSDLProcessingException("PortType/Interface name cannot be null(Required) ");
+
+ this.wsdlInterfaces.put(interfaceComponent.getName(), interfaceComponent);
+ }
+
+
+ /**
+ * The Interface Component will be returned if it exsists,
+ * otherwise null will be returned.
+ * @param qName qName of the Interface.
+ * @return The Interface Component with the relavent QName
+ */
+ public WSDLInterface getInterface(QName qName){
+
+ return (WSDLInterface)this.wsdlInterfaces.get(qName);
+ }
+
+
+ public HashMap getServices() {
+ return services;
+ }
+ public void setServices(HashMap services) {
+ this.services = services;
+ }
+
+ /**
+ * Will return the <code>WSDLService </code> if found otherwise return null.
+ * @param qName <code>QName</code> of the Service
+ * @return The Service with the relavent QName
+ */
+ public WSDLService getService(QName qName){
+ return (WSDLService)this.services.get(qName);
+
+ }
+
+
+ /**
+ * Will add the <code>WSDLService</code> to the Map.
+ * If object is null it will not be added.
+ * If the <code>WSDLService</code> name is null a <code>WSDLProcessingException</code>
+ * will be thrown.(its required)
+ * @param service
+ */
+ public void addService(WSDLService service){
+ if(null == service) return;
+
+ if(null == service.getName()) throw new WSDLProcessingException("The WSDLService name cannot be null (Required)");
+
+ this.services.put(service.getName(), service);
+ }
+
+ public String getTargetNameSpace() {
+ return targetNameSpace;
+ }
+ public void setTargetNameSpace(String targetNameSpace) {
+ this.targetNameSpace = targetNameSpace;
+ }
+
+ public HashMap getWsdlInterfaces() {
+ return wsdlInterfaces;
+ }
+ public void setWsdlInterfaces(HashMap wsdlInterfaces) {
+ this.wsdlInterfaces = wsdlInterfaces;
+ }
+ public Object[] getTypes() {
+ return types;
+ }
+ public void setTypes(Object[] types) {
+ this.types = types;
+ }
+ /**
+ * Gets the name attrebute of the WSDL 1.1 Definitions Element
+ * @return
+ */
+ public QName getWSDL1DefinitionName() {
+ return wsdl1DefinitionName;
+ }
+
+ /**
+ * Sets the name attrebute of the WSDL 1.1 Definitions Element
+ * @param wsdl1DefinitionName
+ */
+ public void setWSDL1DefinitionName(QName wsdl1DefinitionName) {
+ this.wsdl1DefinitionName = wsdl1DefinitionName;
+ }
+ /**
+ * Will return all the Namespaces associated with the Definition
+ * Component and will be keyed by the Napespace Prefix.
+ * @return
+ */
+ public HashMap getNamespaces() {
+ return namespaces;
+ }
+
+ /**
+ * Sets the Namespaces associated with the Difinition Component
+ * and they should be keyed by its Namespace Prefix.
+ * @param namespaces
+ */
+ public void setNamespaces(HashMap namespaces) {
+ this.namespaces = namespaces;
+ }
+
+
+ /**
+ * Will return the Namespace URI as a String if there exists an
+ * Namespace URI associated with the given prefix, in the Definition
+ * Component, Will return null if not found.
+ * @param prefix Prefix defined in the Definitions elemet in the WSDL file
+ * @return The Namespace URI for the prefix.
+ */
+ public String getNamespace(String prefix){
+ if(null == prefix){
+ return null;
+ }
+
+ return (String) this.namespaces.get(prefix);
+ }
+
+ /**
+ * Returns the WSDL Imports in an <code>ArrayList</code>
+ * @return
+ */
+ public ArrayList getImports() {
+ return imports;
+ }
+
+ /**
+ * Sets the imports as an <code>ArrayList</code>
+ * @param imports
+ */
+ public void setImports(ArrayList imports) {
+ this.imports = imports;
+ }
+
+ /**
+ * Adds an import to the list.
+ * @param wsdlImport
+ */
+ public void addImports(WSDLImport wsdlImport){
+ this.imports.add(wsdlImport);
+ }
+
+ /**
+ * Returns the Includes as an <code>ArrayList</code>
+ * @return
+ */
+ public ArrayList getIncludes() {
+ return includes;
+ }
+
+ /**
+ * Sets the includes as an <code>Arraylist</code>
+ * @param includes
+ */
+ public void setIncludes(ArrayList includes) {
+ this.includes = includes;
+ }
+
+ /**
+ * Adds the WSDL Include to the list.
+ * @param wsdlInclude
+ */
+ public void addInclude(WSDLInclude wsdlInclude){
+ this.includes.add(wsdlInclude);
+ }
+
+}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java Fri Dec 17 04:47:00 2004
@@ -20,6 +20,12 @@
import org.apache.wsdl.WSDLBinding;
import org.apache.wsdl.WSDLEndpoint;
+
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WSDLEndpointImpl extends ComponentImpl implements WSDLEndpoint {
private QName name;
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java Fri Dec 17 04:47:00 2004
@@ -18,6 +18,10 @@
import org.apache.wsdl.WSDLFault;
import org.w3c.dom.Element;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WSDLFaultImpl extends ComponentImpl implements WSDLFault {
//TODO its a NCName so parse it. and this is required
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java Fri Dec 17 04:47:00 2004
@@ -17,6 +17,10 @@
import org.apache.wsdl.WSDLFeature;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WSDLFeatureImpl extends ComponentImpl implements WSDLFeature {
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLImportImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLImportImpl.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLImportImpl.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2001-2004 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.WSDLImport;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLImportImpl extends ComponentImpl implements WSDLImport {
+
+ private String location;
+
+ private String namespace;
+
+
+
+ /**
+ * Gets the location URI of the Include.
+ * @return
+ */
+ public String getLocation() {
+ return location;
+ }
+
+ /**
+ * Sets the location URI of the Include.
+ * @param loaction
+ */
+ public void setLocation(String location) {
+ this.location = location;
+ }
+
+ /**
+ * Returns the namespace URI
+ * @return
+ */
+ public String getNamespace() {
+ return namespace;
+ }
+
+ /**
+ * Sets the namespace URI.
+ * @param namespace
+ */
+ public void setNamespace(String namespace) {
+ this.namespace = namespace;
+ }
+}
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2001-2004 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.WSDLInclude;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLIncludeImpl extends ComponentImpl implements WSDLInclude {
+
+ /**
+ * URI of the include Location.
+ */
+ private String loaction;
+
+ /**
+ * Gets the location URI of the Include.
+ * @return
+ */
+ public String getLoaction() {
+ return loaction;
+ }
+
+ /**
+ * Sets the location URI of the Include.
+ * @param loaction
+ */
+ public void setLoaction(String loaction) {
+ this.loaction = loaction;
+ }
+
+
+}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java Fri Dec 17 04:47:00 2004
@@ -22,212 +22,210 @@
import javax.xml.namespace.QName;
+
import org.apache.wsdl.WSDLInterface;
import org.apache.wsdl.WSDLOperation;
-public class WSDLInterfaceImpl
- extends ExtensibleComponentImpl
- implements WSDLInterface {
-
- private QName name;
-
- private HashMap superInterfaces = new HashMap();
-
- private List faults = new LinkedList();
-
- private HashMap operations = new HashMap();
- private String styleDefault;
- public HashMap getDefinedOperations() {
-
- return this.operations;
-
- }
- /**
- * Will return a map of all this <code>WSDLOperation</code>s that
- * are defined and inherited from super interfaces.
- */
- public HashMap getAllOperations() {
-
- HashMap all = (HashMap) this.operations.clone();
-
- if (this.superInterfaces.size() == 0) {
- return all;
- } else {
- Iterator superIterator = this.superInterfaces.values().iterator();
- Iterator operationIterator;
- WSDLInterface superInterface;
- WSDLOperation superInterfaceOperation;
- Iterator thisIterator = all.values().iterator();
- WSDLOperation thisOperation;
- boolean tobeAdded = false;
- while (superIterator.hasNext()) {
- superInterface = (WSDLInterface) superIterator.next();
- operationIterator =
- superInterface.getAllOperations().values().iterator();
- while (operationIterator.hasNext()) {
- superInterfaceOperation =
- (WSDLOperation) operationIterator.next();
- tobeAdded = true;
- while (thisIterator.hasNext()) {
- thisOperation = (WSDLOperation) thisIterator.next();
-
- if (thisOperation.getName()
- == superInterfaceOperation.getName()
- && !tobeAdded) {
- if (thisOperation
- .getTargetnemespace()
- .equals(
- superInterfaceOperation
- .getTargetnemespace())) {
- //Both are the same Operation; the one inherited and
- //the one that is already in the map(may or maynot be inherited)
- tobeAdded = false;
- } else {
- //same name but target namespces dont match
- //TODO Think this is an error
- throw new WSDLProcessingException(
- "The Interface "
- + this.getName()
- + " has more than one Operation that has the same name but not the same interface ");
- }
- }
- }
- if (tobeAdded) {
- //This one is not in the list already developped
- all.put(
- superInterfaceOperation.getName(),
- superInterfaceOperation);
- }
-
- }
- }
- return all;
-
- }
- }
- /**
- * @return
- */
- public List getFaults() {
- return faults;
- }
-
- /**
- * @return
- */
- public QName getName() {
- return name;
- }
-
- /**
- * @return
- */
- public HashMap getOperations() {
- return operations;
- }
-
- /**
- * Retruns the <code>WSDLOperation</code>
- */
- public WSDLOperation getOperation(String nCName) {
- Object temp = this.operations.get(nCName);
- if (null == temp)
- throw new WSDLProcessingException(
- "No Operation found with the QName with ncname/ ncname with "
- + nCName);
- return (WSDLOperation) temp;
- }
-
- /**
- * @return
- */
- public HashMap getSuperInterfaces() {
- return superInterfaces;
- }
- public WSDLInterface getSuperInterface(QName qName) {
- return (WSDLInterface) this.superInterfaces.get(qName);
- }
-
- /**
- * The Targetnamespace is that of the namespace URI of the QName of
- * this component.
- * @return URI as a String if the name is set otherwise will return null.
- */
- public String getTargetnamespace() {
- if (null == this.name)
- return null;
-
- return this.name.getNamespaceURI();
- }
-
- /**
- * @param list
- */
- public void setFaults(List list) {
- faults = list;
- }
-
- /**
- * @param qName
- */
- public void setName(QName qName) {
- name = qName;
- }
-
- /**
- * @param list
- */
- public void setOperations(HashMap list) {
- operations = list;
- }
-
- /**
- * The operation is added by its ncname. If operation is null
- * it will not be added. If the Operation name is null a
- * <code>WSDLProcessingException</code> will be thrown.
- * @param nCName
- * @param operation
- */
- public void setOperation(WSDLOperation operation) {
- if (null == operation)
- return;
-
- if (null == operation.getName())
- throw new WSDLProcessingException("The Operation name cannot be null (required)");
- this.operations.put(operation.getName(), operation);
- }
-
- /**
- * @param list
- */
- public void setSuperInterfaces(HashMap list) {
- superInterfaces = list;
- }
-
- /**
- * The Inteface will be added to the list of super interfaces keyed with
- * the QName.
- * @param qName The QName of the Inteface
- * @param interfaceComponent WSDLInterface Object
- */
- public void addSuperInterface(
- QName qName,
- WSDLInterface interfaceComponent) {
- this.superInterfaces.put(qName, interfaceComponent);
- }
-
- /**
- * Will return the StyleDefault if exist , otherwise will return null
- * @return
- */
+/**
+ * @author Chathura Herath
+ *
+ */
+public class WSDLInterfaceImpl extends ExtensibleComponentImpl implements WSDLInterface {
+
+
+ private QName name;
+
+
+ private HashMap superInterfaces = new HashMap();
+
+ private List faults = new LinkedList();
+
+ private HashMap operations = new HashMap();
+
+
+
+ private String styleDefault;
+
+
+
+
+
+
+ public HashMap getDefinedOperations(){
+
+ return this.operations;
+
+ }
+ /**
+ * Will return a map of all this <code>WSDLOperation</code>s that
+ * are defined and inherited from super interfaces.
+ */
+ public HashMap getAllOperations(){
+
+ HashMap all = (HashMap)this.operations;
+
+
+ if(this.superInterfaces.size() ==0 ){
+ return all;
+ }else{
+ Iterator superIterator = this.superInterfaces.values().iterator();
+ Iterator operationIterator;
+ WSDLInterface superInterface;
+ WSDLOperation superInterfaceOperation;
+ Iterator thisIterator = all.values().iterator();
+ WSDLOperation thisOperation;
+ boolean tobeAdded = false;
+ while(superIterator.hasNext()){
+ superInterface = (WSDLInterface)superIterator.next();
+ operationIterator = superInterface.getAllOperations().values().iterator();
+ while(operationIterator.hasNext()){
+ superInterfaceOperation = (WSDLOperation)operationIterator.next();
+ tobeAdded = true;
+ while(thisIterator.hasNext()){
+ thisOperation = (WSDLOperation)thisIterator.next();
+
+ if(thisOperation.getName() == superInterfaceOperation.getName() && !tobeAdded){
+ if(thisOperation.getTargetnemespace().equals(superInterfaceOperation.getTargetnemespace())){
+ //Both are the same Operation; the one inherited and
+ //the one that is already in the map(may or maynot be inherited)
+ tobeAdded = false;
+ }
+ else{
+ //same name but target namespces dont match
+ //TODO Think this is an error
+ throw new WSDLProcessingException("The Interface " +this.getName() +" has more than one Operation that has the same name but not the same interface ");
+ }
+ }
+ }
+ if(tobeAdded){
+ //This one is not in the list already developped
+ all.put(superInterfaceOperation.getName(), superInterfaceOperation);
+ }
+
+ }
+ }
+ return all;
+
+ }
+ }
+
+ /**
+ * @return
+ */
+ public List getFaults() {
+ return faults;
+ }
+
+ /**
+ * @return
+ */
+ public QName getName() {
+ return name;
+ }
+
+ /**
+ * @return
+ */
+ public HashMap getOperations() {
+ return operations;
+ }
+
+ /**
+ * Retruns the <code>WSDLOperation</code>
+ */
+ public WSDLOperation getOperation(String nCName){
+ Object temp = this.operations.get(nCName);
+ if(null == temp) throw new WSDLProcessingException("No Operation found with the QName with ncname/ ncname with "+nCName);
+ return (WSDLOperation)temp;
+ }
+
+ /**
+ * @return
+ */
+ public HashMap getSuperInterfaces() {
+ return superInterfaces;
+ }
+
+ public WSDLInterface getSuperInterface(QName qName){
+ return (WSDLInterface)this.superInterfaces.get(qName);
+ }
+
+ /**
+ * The Targetnamespace is that of the namespace URI of the QName of
+ * this component.
+ * @return URI as a String if the name is set otherwise will return null.
+ */
+ public String getTargetnamespace() {
+ if(null == this.name) return null;
+
+ return this.name.getNamespaceURI();
+ }
+
+ /**
+ * @param list
+ */
+ public void setFaults(List list) {
+ faults = list;
+ }
+
+ /**
+ * @param qName
+ */
+ public void setName(QName qName) {
+ name = qName;
+ }
+
+ /**
+ * @param list
+ */
+ public void setOperations(HashMap list) {
+ operations = list;
+ }
+
+
+ /**
+ * The operation is added by its ncname. If operation is null
+ * it will not be added. If the Operation name is null a
+ * <code>WSDLProcessingException</code> will be thrown.
+ * @param nCName
+ * @param operation
+ */
+ public void setOperation(WSDLOperation operation){
+ if(null == operation) return ;
+
+ if(null == operation.getName()) throw new WSDLProcessingException("The Operation name cannot be null (required)");
+ this.operations.put(operation.getName(), operation);
+ }
+
+ /**
+ * @param list
+ */
+ public void setSuperInterfaces(HashMap list) {
+ superInterfaces = list;
+ }
+
+ /**
+ * The Inteface will be added to the list of super interfaces keyed with
+ * the QName.
+ * @param qName The QName of the Inteface
+ * @param interfaceComponent WSDLInterface Object
+ */
+ public void addSuperInterface(QName qName, WSDLInterface interfaceComponent){
+ this.superInterfaces.put(qName, interfaceComponent);
+ }
+
+ /**
+ * Will return the StyleDefault if exist , otherwise will return null
+ * @return
+ */
public String getStyleDefault() {
return styleDefault;
}
-
+
public void setStyleDefault(String styleDefault) {
this.styleDefault = styleDefault;
}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java Fri Dec 17 04:47:00 2004
@@ -23,6 +23,10 @@
import org.apache.wsdl.MessageReference;
import org.apache.wsdl.WSDLOperation;
+/**
+ * @author Chathura Herath
+ *
+ */
public class WSDLOperationImpl extends ExtensibleComponentImpl implements WSDLOperation {
private QName name;
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLProcessingException.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLProcessingException.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLProcessingException.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLProcessingException.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLProcessingException.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLProcessingException.java Fri Dec 17 04:47:00 2004
@@ -15,6 +15,10 @@
*/
package org.apache.wsdl.impl;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public class WSDLProcessingException extends RuntimeException {
public WSDLProcessingException(String message){
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java Fri Dec 17 04:47:00 2004
@@ -23,50 +23,55 @@
import org.apache.wsdl.WSDLInterface;
import org.apache.wsdl.WSDLService;
-public class WSDLServiceImpl extends ComponentImpl implements WSDLService {
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLServiceImpl extends ComponentImpl implements WSDLService {
/**
* The QName that identifies the Service. This namespace of the QName
* should be the target namespace defined in the Definitions component.
*/
private QName name;
-
+
+
/**
* The Interface that this Service is an instance of.
*/
private WSDLInterface serviceInterface;
-
+
/**
*
*/
private HashMap endpoints;
-
+
+
public HashMap getEndpoints() {
return endpoints;
}
public void setEndpoints(HashMap endpoints) {
this.endpoints = endpoints;
}
-
+
/**
* Will add a WSDLEndpoint object to the WOM keyed with NCName;
*/
- public void setEndpoint(WSDLEndpoint endpoint, String nCName) {
+ public void setEndpoint(WSDLEndpoint endpoint, String nCName){
this.endpoints.put(nCName, endpoint);
}
-
+
/**
- * Endpoint will be retrived by its NCName.
- * @param nCName NCName of the Service
- * @return WSDLService Object or will throw an WSDLProcessingException in the case of object not found.
- */
- public WSDLService getEndpoint(String nCName) {
- WSDLService temp = (WSDLService) this.endpoints.get(nCName);
- if (null == temp)
- throw new WSDLProcessingException(
- "Service not found for NCName " + nCName);
- return temp;
- }
+ * Endpoint will be retrived by its NCName.
+ * @param nCName NCName of the Service
+ * @return WSDLService Object or will throw an WSDLProcessingException in the case of object not found.
+ */
+ public WSDLService getEndpoint(String nCName){
+ WSDLService temp = (WSDLService)this.endpoints.get(nCName);
+ if(null == temp) throw new WSDLProcessingException("Service not found for NCName "+nCName);
+ return temp;
+ }
public QName getName() {
return name;
}
@@ -79,12 +84,11 @@
* @return Target Namespace as a <code>String</code>
*/
public String getNamespace() {
- if (null == this.name)
- throw new WSDLProcessingException("Target Namespace not set and the Service Name is null");
-
- return this.name.getNamespaceURI();
+ if(null == this.name) throw new WSDLProcessingException("Target Namespace not set and the Service Name is null");
+
+ return this.name.getNamespaceURI();
}
-
+
public WSDLInterface getServiceInterface() {
return serviceInterface;
}
Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java?view=auto&rev=122639
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java Fri Dec 17 04:47:00 2004
@@ -0,0 +1,69 @@
+/*
+ * Copyright 2001-2004 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 java.util.HashMap;
+
+import javax.xml.namespace.QName;
+
+import org.apache.wsdl.ExtensionElement;
+import org.apache.wsdl.WSDLTypes;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLTypesImpl extends ComponentImpl implements WSDLTypes {
+
+ private HashMap extensionElements = new HashMap();
+
+ /**
+ * Sets the <code>ExtensionElement</code>s as a <code>HashMap</code>
+ * @return
+ */
+ public HashMap getTypes() {
+ return extensionElements;
+ }
+
+ /**
+ * Returns all the <code>ExtensionElement</code>s as a <code>HashMap</code>
+ * @param types
+ */
+ public void setTypes(HashMap types) {
+ this.extensionElements = types;
+ }
+
+ /**
+ * Adds the <code>ExtensionElement</code> to the map keyed with the <code>QName</code> *
+ * @param qName
+ * @param element
+ */
+ public void addElement(QName qName, ExtensionElement element){
+
+ this.extensionElements.put(qName, element);
+ }
+
+ /**
+ * Will return the Element with the given <code>QName</code>
+ * Returns null if not found.
+ * @param qName
+ * @return
+ */
+ public ExtensionElement getElement(QName qName){
+ return (ExtensionElement)this.extensionElements.get(qName);
+ }
+
+}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Style.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Style.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Style.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Style.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Style.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Style.java Fri Dec 17 04:47:00 2004
@@ -15,6 +15,10 @@
*/
package org.apache.wsdl.util;
+/**
+ * @author chathura@opensource.lk
+ *
+ */
public interface Style {
}
Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Utils.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Utils.java?view=diff&rev=122639&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Utils.java&r1=122638&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Utils.java&r2=122639
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Utils.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/util/Utils.java Fri Dec 17 04:47:00 2004
@@ -25,6 +25,9 @@
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
+/**
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
public class Utils {
public static Document newDocument(InputStream in) throws ParserConfigurationException, SAXException, IOException{
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();