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 di...@apache.org on 2005/02/20 04:37:47 UTC
svn commit: r154471 [1/3] - in webservices/axis/trunk/java/modules/wsdl/src:
java/org/apache/axis/wsdl/wsdltowom/ java/org/apache/wsdl/
java/org/apache/wsdl/impl/ java/org/apache/wsdl/util/ test-resources/wsdl/
test/org/apache/wsdl/
Author: dims
Date: Sat Feb 19 19:37:38 2005
New Revision: 154471
URL: http://svn.apache.org/viewcvs?view=rev&rev=154471
Log:
reformatting, cleaning up javadocs, remove commented out code, etc...no logic changes
Modified:
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/Component.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensibleComponent.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensionElement.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/FaultReference.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/MessageReference.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBinding.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingFault.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingMessageReference.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingOperation.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLConstants.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLDescription.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLEndpoint.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFault.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFeature.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLImport.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInclude.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInterface.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLOperation.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLProperty.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLService.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLTypes.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ComponentImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensibleComponentImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/ExtensionElementImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/FaultReferenceImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/MessageReferenceImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WDSLPropertyImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingFaultImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingMessageReferenceImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLBindingOperationImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLDescriptionImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLEndpointImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFaultImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLFeatureImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLImportImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLIncludeImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLInterfaceImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLOperationImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLProcessingException.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLPropertyImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLServiceImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/impl/WSDLTypesImpl.java
webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/util/Utils.java
webservices/axis/trunk/java/modules/wsdl/src/test-resources/wsdl/LoggingFacility.wsdl
webservices/axis/trunk/java/modules/wsdl/src/test-resources/wsdl/SeismicService.wsdl
webservices/axis/trunk/java/modules/wsdl/src/test/org/apache/wsdl/AbstractTestCase.java
webservices/axis/trunk/java/modules/wsdl/src/test/org/apache/wsdl/InterfaceTest.java
webservices/axis/trunk/java/modules/wsdl/src/test/org/apache/wsdl/WOMBuilderTest.java
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilder.java Sat Feb 19 19:37:38 2005
@@ -1,12 +1,12 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,5 +24,12 @@
* @author chathura@opensource.lk
*/
public interface WOMBuilder {
+ /**
+ * Method build
+ *
+ * @param in
+ * @return
+ * @throws WSDLException
+ */
public WSDLDescription build(InputStream in) throws WSDLException;
}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WOMBuilderFactory.java Sat Feb 19 19:37:38 2005
@@ -1,12 +1,12 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -29,41 +29,69 @@
* @author chathura@opensource.lk
*/
public class WOMBuilderFactory {
+ /**
+ * Field WSDL11
+ */
public static final int WSDL11 = 1;
+
+ /**
+ * Field wsdl20
+ */
public static final int wsdl20 = 2;
- public static WOMBuilder getBuilder(int wsdlDocumentType) throws WSDLException {
+ /**
+ * Method getBuilder
+ *
+ * @param wsdlDocumentType
+ * @return
+ * @throws WSDLException
+ */
+ public static WOMBuilder getBuilder(int wsdlDocumentType)
+ throws WSDLException {
if (wsdlDocumentType == WSDL11) {
return new WSDL1ToWOMBuilder();
}
if (wsdlDocumentType == wsdl20) {
return new WSDL2ToWOMBuilder();
}
- throw new WSDLException(WSDLException.INVALID_WSDL, "The document type specified is not valid");
+ throw new WSDLException(WSDLException.INVALID_WSDL,
+ "The document type specified is not valid");
}
+ /**
+ * Method getBuilder
+ *
+ * @param in
+ * @return
+ * @throws WSDLException
+ */
public static WOMBuilder getBuilder(InputStream in) throws WSDLException {
+
// Load the wsdl as a DOM
Document doc;
try {
doc = Utils.newDocument(in);
} catch (ParserConfigurationException e) {
- throw new WSDLException(WSDLException.PARSER_ERROR, "Parser Configuration Exception", e);
+ throw new WSDLException(WSDLException.PARSER_ERROR,
+ "Parser Configuration Exception", e);
} catch (IOException e1) {
- throw new WSDLException(WSDLException.PARSER_ERROR, "WSDL Document read error", e1);
+ throw new WSDLException(WSDLException.PARSER_ERROR,
+ "WSDL Document read error", e1);
} catch (SAXException e2) {
- throw new WSDLException(WSDLException.PARSER_ERROR, "Parser Exception", e2);
+ throw new WSDLException(WSDLException.PARSER_ERROR,
+ "Parser Exception", e2);
}
-
- //Check the target namespace of the WSDL and determine the WSDL version.
+ // Check the target namespace of the WSDL and determine the WSDL version.
int version = getWSDLVersion(doc);
if (version == WSDL11) {
return (WOMBuilder) new WSDL1ToWOMBuilder();
} else if (version == wsdl20) {
return (WOMBuilder) new WSDL2ToWOMBuilder();
}
- throw new WSDLException(WSDLException.OTHER_ERROR, "Unable to Figure out the WSDL vesion of the Document");
+ throw new WSDLException(
+ WSDLException.OTHER_ERROR,
+ "Unable to Figure out the WSDL vesion of the Document");
}
/**
@@ -75,12 +103,17 @@
* @throws WSDLException If the version cannot be determined
*/
private static int getWSDLVersion(Document doc) throws WSDLException {
- //TODO check weather the namespaces are correct and the / problem too
- if (WSDLConstants.WSDL2_0_NAMESPACE.equals(doc.getDocumentElement().getNamespaceURI())) {
+
+ // TODO check weather the namespaces are correct and the / problem too
+ if (WSDLConstants.WSDL2_0_NAMESPACE.equals(
+ doc.getDocumentElement().getNamespaceURI())) {
return wsdl20;
- } else if (WSDLConstants.WSDL1_1_NAMESPACE.equals(doc.getDocumentElement().getNamespaceURI())) {
+ } else if (WSDLConstants.WSDL1_1_NAMESPACE.equals(
+ doc.getDocumentElement().getNamespaceURI())) {
return WSDL11;
}
- throw new WSDLException(WSDLException.OTHER_ERROR, "Unable to Figure out the WSDL vesion of the Document");
+ throw new WSDLException(
+ WSDLException.OTHER_ERROR,
+ "Unable to Figure out the WSDL vesion of the Document");
}
}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL1ToWOMBuilder.java Sat Feb 19 19:37:38 2005
@@ -1,12 +1,12 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -33,29 +33,42 @@
* @author chathura@opensource.lk
*/
public class WSDL1ToWOMBuilder implements WOMBuilder {
+ /**
+ * Method build
+ *
+ * @param in
+ * @return
+ * @throws WSDLException
+ */
public WSDLDescription build(InputStream in) throws WSDLException {
WSDLDescription wsdlDefinitions = new WSDLDescriptionImpl();
- WSDLPump pump = new WSDLPump(wsdlDefinitions, this.readInTheWSDLFile(in));
+ WSDLPump pump = new WSDLPump(wsdlDefinitions,
+ this.readInTheWSDLFile(in));
pump.pump();
return wsdlDefinitions;
}
+ /**
+ * Method readInTheWSDLFile
+ *
+ * @param in
+ * @return
+ * @throws WSDLException
+ */
private Definition readInTheWSDLFile(InputStream in) throws WSDLException {
- WSDLReader reader =
- WSDLFactory.newInstance().newWSDLReader();
+ WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
Document doc;
try {
doc = Utils.newDocument(in);
} catch (ParserConfigurationException e) {
- throw new WSDLException(WSDLException.PARSER_ERROR, "Parser Configuration Error", e);
+ throw new WSDLException(WSDLException.PARSER_ERROR,
+ "Parser Configuration Error", e);
} catch (SAXException e) {
- throw new WSDLException(WSDLException.PARSER_ERROR, "Parser SAX Error", e);
-
+ throw new WSDLException(WSDLException.PARSER_ERROR,
+ "Parser SAX Error", e);
} catch (IOException e) {
throw new WSDLException(WSDLException.INVALID_WSDL, "IO Error", e);
}
return reader.readWSDL(null, doc);
}
-
-
}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDL2ToWOMBuilder.java Sat Feb 19 19:37:38 2005
@@ -1,12 +1,12 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,6 +24,13 @@
* @author chathura@opensource.lk
*/
public class WSDL2ToWOMBuilder implements WOMBuilder {
+ /**
+ * Method build
+ *
+ * @param in
+ * @return
+ * @throws WSDLException
+ */
public WSDLDescription build(InputStream in) throws WSDLException {
throw new UnsupportedOperationException("Fill the implementations");
}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/axis/wsdl/wsdltowom/WSDLPump.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.axis.wsdl.wsdltowom;
import org.apache.wsdl.ExtensionElement;
@@ -61,116 +60,132 @@
* @author chathura@opensource.lk
*/
public class WSDLPump {
-
+ /**
+ * Field BOUND_INTERFACE_NAME
+ */
private static final String BOUND_INTERFACE_NAME = "BoundInterface";
+
+ /**
+ * Field womDefinition
+ */
private WSDLDescription womDefinition;
+ /**
+ * Field wsdl4jParsedDefinition
+ */
private Definition wsdl4jParsedDefinition;
+ /**
+ * Constructor WSDLPump
+ *
+ * @param womDefinition
+ * @param wsdl4jParsedDefinition
+ */
public WSDLPump(WSDLDescription womDefinition,
Definition wsdl4jParsedDefinition) {
this.womDefinition = womDefinition;
this.wsdl4jParsedDefinition = wsdl4jParsedDefinition;
}
+ /**
+ * Method pump
+ */
public void pump() {
- if (null != this.wsdl4jParsedDefinition && null != this.womDefinition) {
- this.populateDefinition(this.womDefinition, this.wsdl4jParsedDefinition);
+ if ((null != this.wsdl4jParsedDefinition)
+ && (null != this.womDefinition)) {
+ this.populateDefinition(this.womDefinition,
+ this.wsdl4jParsedDefinition);
} else {
throw new WSDLProcessingException("Properties not set properly");
}
-
}
+ /**
+ * Method populateDefinition
+ *
+ * @param wsdlDefinition
+ * @param wsdl4JDefinition
+ */
private void populateDefinition(WSDLDescription wsdlDefinition,
Definition wsdl4JDefinition) {
- //Go through the WSDL4J Definition and pump it to the WOM
- wsdlDefinition.setWSDL1DefinitionName(wsdl4JDefinition.getQName());
- wsdlDefinition.setTargetNameSpace(wsdl4JDefinition.getTargetNamespace());
-
- /////////////////////////////////////////////////////////////////////////////
- //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 //
- //1) The Binding refers to the Interface //
- //1) Thw Endpoint refers tot he Bindings //
- // .... //
- // //
- /////////////////////////////////////////////////////////////////////////////
-
+ // Go through the WSDL4J Definition and pump it to the WOM
+ wsdlDefinition.setWSDL1DefinitionName(wsdl4JDefinition.getQName());
+ wsdlDefinition.setTargetNameSpace(
+ wsdl4JDefinition.getTargetNamespace());
- //////////////////////////(1)First pump the Types////////////////////////////
- //Types may get changed inside the Operation pumping.
-
- Types wsdl4jTypes = wsdl4JDefinition.getTypes();
+ // ///////////////////////////////////////////////////////////////////////////
+ // 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 //
+ // 1) The Binding refers to the Interface //
+ // 1) Thw Endpoint refers tot he Bindings //
+ // .... //
+ // //
+ // ///////////////////////////////////////////////////////////////////////////
+ // ////////////////////////(1)First pump the Types////////////////////////////
+ // Types may get changed inside the Operation pumping.
+ Types wsdl4jTypes =
+ wsdl4JDefinition.getTypes();
WSDLTypes wsdlTypes = new WSDLTypesImpl();
- Iterator wsdl4jelmentsIterator = wsdl4jTypes.getExtensibilityElements().iterator();
+ Iterator wsdl4jelmentsIterator =
+ wsdl4jTypes.getExtensibilityElements().iterator();
ExtensibilityElement wsdl4jElement;
ExtensionElement womElement;
while (wsdl4jelmentsIterator.hasNext()) {
wsdl4jElement = (ExtensibilityElement) wsdl4jelmentsIterator.next();
womElement = new ExtensionElementImpl();
- if (null != wsdl4jElement.getRequired())
- womElement.setRequired(wsdl4jElement.getRequired().booleanValue());
- //TODO
-
+ if (null != wsdl4jElement.getRequired()) {
+ womElement.setRequired(
+ wsdl4jElement.getRequired().booleanValue());
+ }
+
+ // TODO
wsdlTypes.addElement(wsdl4jElement.getElementType(), womElement);
}
this.womDefinition.setTypes(wsdlTypes);
-
-
-
- //////////////////////////(2)Pump the Interfaces/////////////////////////////
- //pump the Interfaces: Get the PortTypes from WSDL4J parse OM and pump it to the
- //WOM's WSDLInterface Components
-
- Iterator portTypeIterator = wsdl4JDefinition.getPortTypes().values().iterator();
+ // ////////////////////////(2)Pump the Interfaces/////////////////////////////
+ // pump the Interfaces: Get the PortTypes from WSDL4J parse OM and pump it to the
+ // WOM's WSDLInterface Components
+ Iterator portTypeIterator =
+ wsdl4JDefinition.getPortTypes().values().iterator();
WSDLInterface wsdlInterface;
while (portTypeIterator.hasNext()) {
wsdlInterface = new WSDLInterfaceImpl();
this.populateInterfaces(wsdlInterface,
(PortType) portTypeIterator.next());
wsdlDefinition.addInterface(wsdlInterface);
-
}
-
-
-
- //////////////////////////(3)Pump the Bindings///////////////////////////////
- //pump the Bindings: Get the Bindings map from WSDL4J and create a new map of
- //WSDLBinding elements
-
-
- Iterator bindingIterator = wsdl4JDefinition.getBindings().values().iterator();
+ // ////////////////////////(3)Pump the Bindings///////////////////////////////
+ // pump the Bindings: Get the Bindings map from WSDL4J and create a new map of
+ // WSDLBinding elements
+ Iterator bindingIterator =
+ wsdl4JDefinition.getBindings().values().iterator();
WSDLBinding wsdlBinding;
while (bindingIterator.hasNext()) {
wsdlBinding = new WSDLBindingImpl();
- this.populateBindings(wsdlBinding, (Binding) bindingIterator.next());
+ this.populateBindings(wsdlBinding,
+ (Binding) bindingIterator.next());
wsdlDefinition.addBinding(wsdlBinding);
-
}
-
- //////////////////////////(4)Pump the Service///////////////////////////////
-
- Iterator serviceIterator = wsdl4JDefinition.getServices().values().iterator();
+ // ////////////////////////(4)Pump the Service///////////////////////////////
+ Iterator serviceIterator =
+ wsdl4JDefinition.getServices().values().iterator();
WSDLService wsdlService;
while (serviceIterator.hasNext()) {
wsdlService = new WSDLServiceImpl();
- this.populateServices(wsdlService, (Service) serviceIterator.next());
+ this.populateServices(wsdlService,
+ (Service) serviceIterator.next());
wsdlDefinition.addService(wsdlService);
}
-
}
- //////////////////////////////////////////////////////////////////////////////
- ////////////////////////// Top level Components Copying ////////////////////
-
-
+ // ////////////////////////////////////////////////////////////////////////////
+ // //////////////////////// Top level Components Copying ////////////////////
/**
* Simply Copy information.
@@ -178,157 +193,202 @@
* @param wsdlInterface
* @param wsdl4jPortType
*/
- //FIXME Evaluate a way of injecting features and priperties with a general formatted input
- private void populateInterfaces(WSDLInterface wsdlInterface, PortType wsdl4jPortType) {
+ // FIXME Evaluate a way of injecting features and priperties with a general formatted input
+ private void populateInterfaces(WSDLInterface wsdlInterface,
+ PortType wsdl4jPortType) {
- //Copy the Attrebute information items
- //Copied with the Same QName so it will reqire no Query in Binding pumping.
+ // Copy the Attrebute information items
+ // Copied with the Same QName so it will reqire no Query in Binding pumping.
wsdlInterface.setName(wsdl4jPortType.getQName());
-
-
- Iterator wsdl4JOperationsIterator = wsdl4jPortType.getOperations().iterator();
+ Iterator wsdl4JOperationsIterator =
+ wsdl4jPortType.getOperations().iterator();
WSDLOperation wsdloperation;
while (wsdl4JOperationsIterator.hasNext()) {
wsdloperation = new WSDLOperationImpl();
- this.populateOperations(wsdloperation, (Operation) wsdl4JOperationsIterator.next(), wsdl4jPortType.getQName().getNamespaceURI());
+ this.populateOperations(
+ wsdloperation, (Operation) wsdl4JOperationsIterator.next(),
+ wsdl4jPortType.getQName().getNamespaceURI());
wsdlInterface.setOperation(wsdloperation);
-
}
-
-
}
-
/**
* Pre Condition: The Interface Components must be copied by now.
+ *
+ * @param wsdlBinding
+ * @param wsdl4JBinding
*/
- private void populateBindings(WSDLBinding wsdlBinding, Binding wsdl4JBinding) {
- //Copy attrebutes
+ private void populateBindings(WSDLBinding wsdlBinding,
+ Binding wsdl4JBinding) {
+
+ // Copy attributes
wsdlBinding.setName(wsdl4JBinding.getQName());
QName interfaceName = wsdl4JBinding.getPortType().getQName();
- WSDLInterface wsdlInterface = this.womDefinition.getInterface(interfaceName);
- //FIXME Do We need this eventually???
- if (null == wsdlInterface) throw new WSDLProcessingException("Interface/PortType not found for the Binding :" + wsdlBinding.getName());
+ WSDLInterface wsdlInterface =
+ this.womDefinition.getInterface(interfaceName);
+ // FIXME Do We need this eventually???
+ if (null == wsdlInterface) {
+ throw new WSDLProcessingException(
+ "Interface/PortType not found for the Binding :"
+ + wsdlBinding.getName());
+ }
wsdlBinding.setBoundInterface(wsdlInterface);
-
- Iterator bindingoperationsIterator = wsdl4JBinding.getBindingOperations().iterator();
-
+ Iterator bindingoperationsIterator =
+ wsdl4JBinding.getBindingOperations().iterator();
WSDLBindingOperation wsdlBindingOperation;
while (bindingoperationsIterator.hasNext()) {
wsdlBindingOperation = new WSDLBindingOperationImpl();
- this.populateBindingOperation(wsdlBindingOperation, (BindingOperation) bindingoperationsIterator.next(), wsdl4JBinding.getQName().getNamespaceURI());
+ this.populateBindingOperation(
+ wsdlBindingOperation,
+ (BindingOperation) bindingoperationsIterator.next(),
+ wsdl4JBinding.getQName().getNamespaceURI());
wsdlBinding.addBindingOperation(wsdlBindingOperation);
}
-
-
}
-
- public void populateServices(WSDLService wsdlService, Service wsdl4jService) {
+ /**
+ * Method populateServices
+ *
+ * @param wsdlService
+ * @param wsdl4jService
+ */
+ public void populateServices(WSDLService wsdlService,
+ Service wsdl4jService) {
wsdlService.setName(wsdl4jService.getQName());
- Iterator wsdl4jportsIterator = wsdl4jService.getPorts().values().iterator();
+ Iterator wsdl4jportsIterator =
+ wsdl4jService.getPorts().values().iterator();
wsdlService.setServiceInterface(this.getBoundInterface(wsdlService));
WSDLEndpoint wsdlEndpoint;
while (wsdl4jportsIterator.hasNext()) {
wsdlEndpoint = new WSDLEndpointImpl();
- this.populatePorts(wsdlEndpoint, (Port) wsdl4jportsIterator.next(), wsdl4jService.getQName().getNamespaceURI());
+ this.populatePorts(wsdlEndpoint, (Port) wsdl4jportsIterator.next(),
+ wsdl4jService.getQName().getNamespaceURI());
wsdlService.setEndpoint(wsdlEndpoint);
}
-
}
+ // ///////////////////////////////////////////////////////////////////////////
+ // ////////////////////////// Internal Component Copying ///////////////////
+ // TODO Faults ??
- /////////////////////////////////////////////////////////////////////////////
- //////////////////////////// Internal Component Copying ///////////////////
- //TODO Faults ??
- public void populateOperations(WSDLOperation wsdlOperation, Operation wsdl4jOperation, String nameSpaceOfTheOperation) {
- //Copy Name Attrebute
- wsdlOperation.setName(new QName(nameSpaceOfTheOperation, wsdl4jOperation.getName()));
- //OperationType wsdl4jOperation.getStyle()
+ /**
+ * Method populateOperations
+ *
+ * @param wsdlOperation
+ * @param wsdl4jOperation
+ * @param nameSpaceOfTheOperation
+ */
+ public void populateOperations(WSDLOperation wsdlOperation,
+ Operation wsdl4jOperation,
+ String nameSpaceOfTheOperation) {
+
+ // Copy Name Attrebute
+ wsdlOperation.setName(new QName(nameSpaceOfTheOperation,
+ wsdl4jOperation.getName()));
+ // OperationType wsdl4jOperation.getStyle()
// Create the Input Message and add
Input wsdl4jInputMessage = wsdl4jOperation.getInput();
MessageReference wsdlInputMessage = new MessageReferenceImpl();
wsdlInputMessage.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_IN);
- //Get all the in parts and create a new Element out of it and add it to the Types.
- //TODO
-
+ // Get all the in parts and create a new Element out of it and add it to the Types.
+ // TODO
wsdlInputMessage.setMessageLabel(wsdl4jInputMessage.getName());
- //wsdlInputMessage.setElement(wsdl4jInputMessage.getMessage())
- // wsdlInputMessage.setMessageLabel()
-
- //Create an output message and add
+ // wsdlInputMessage.setElement(wsdl4jInputMessage.getMessage())
+ // wsdlInputMessage.setMessageLabel()
+ // Create an output message and add
Output wsdl4jOutputMessage = wsdl4jOperation.getOutput();
MessageReference wsdlOutputMessage = new MessageReferenceImpl();
- wsdlOutputMessage.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
- //Get all the in parts and create a new Element out of it and add it to the Types.
- //TODO
-
- //wsdlInputMessage.setMessageLabel()
-
- //Set the MEP
- wsdlOperation.setMessageExchangePattern(this.getRelaventMEPForTheMessageStyle(wsdl4jOperation.getStyle()));
+ wsdlOutputMessage.setDirection(
+ WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
+ // Get all the in parts and create a new Element out of it and add it to the Types.
+ // TODO
+ // wsdlInputMessage.setMessageLabel()
+ // Set the MEP
+ wsdlOperation.setMessageExchangePattern(
+ this.getRelaventMEPForTheMessageStyle(wsdl4jOperation.getStyle()));
}
-
- private void populateBindingOperation(WSDLBindingOperation wsdlBindingOperation, BindingOperation wsdl4jBindingOperation, String nameSpaceOfTheBindingOperation) {
- wsdlBindingOperation.setName(new QName(nameSpaceOfTheBindingOperation, wsdl4jBindingOperation.getName()));
-
- BindingInput wsdl4jInputBinding = wsdl4jBindingOperation.getBindingInput();
- WSDLBindingMessageReference wsdlInputBinding = new WSDLBindingMessageReferenceImpl();
-
+ /**
+ * Method populateBindingOperation
+ *
+ * @param wsdlBindingOperation
+ * @param wsdl4jBindingOperation
+ * @param nameSpaceOfTheBindingOperation
+ */
+ private void populateBindingOperation(
+ WSDLBindingOperation wsdlBindingOperation,
+ BindingOperation wsdl4jBindingOperation,
+ String nameSpaceOfTheBindingOperation) {
+ wsdlBindingOperation.setName(
+ new QName(
+ nameSpaceOfTheBindingOperation,
+ wsdl4jBindingOperation.getName()));
+ BindingInput wsdl4jInputBinding =
+ wsdl4jBindingOperation.getBindingInput();
+ WSDLBindingMessageReference wsdlInputBinding =
+ new WSDLBindingMessageReferenceImpl();
wsdlInputBinding.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_IN);
- //TODO
- wsdlBindingOperation.setInput(wsdlInputBinding);
-
-
- BindingOutput wsdl4jOutputBinding = wsdl4jBindingOperation.getBindingOutput();
- WSDLBindingMessageReference wsdlOutputBinding = new WSDLBindingMessageReferenceImpl();
+ // TODO
+ wsdlBindingOperation.setInput(wsdlInputBinding);
+ BindingOutput wsdl4jOutputBinding =
+ wsdl4jBindingOperation.getBindingOutput();
+ WSDLBindingMessageReference wsdlOutputBinding =
+ new WSDLBindingMessageReferenceImpl();
wsdlInputBinding.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
- //TODO
- wsdlBindingOperation.setInput(wsdlOutputBinding);
-
+ // TODO
+ wsdlBindingOperation.setInput(wsdlOutputBinding);
}
-
- public void populatePorts(WSDLEndpoint wsdlEndpoint, Port wsdl4jPort, String targetNamspace) {
+ /**
+ * Method populatePorts
+ *
+ * @param wsdlEndpoint
+ * @param wsdl4jPort
+ * @param targetNamspace
+ */
+ public void populatePorts(WSDLEndpoint wsdlEndpoint, Port wsdl4jPort,
+ String targetNamspace) {
wsdlEndpoint.setName(new QName(targetNamspace, wsdl4jPort.getName()));
+ wsdlEndpoint.setBinding(
+ this.womDefinition.getBinding(wsdl4jPort.getBinding().getQName()));
- wsdlEndpoint.setBinding(this.womDefinition.getBinding(wsdl4jPort.getBinding().getQName()));
- ///Extesibility elements.
+ // /Extesibility elements.
}
-
-
-
- ///////////////////////////Util Methods ////////////////////////////////////
-
+
+ // /////////////////////////Util Methods ////////////////////////////////////
+
/**
* Will return the URI for the MEP. if null will retun the IN_OUT as default
* pattern.
+ *
+ * @param operationType
+ * @return
*/
- private String getRelaventMEPForTheMessageStyle(OperationType operationType) {
-
+ private String getRelaventMEPForTheMessageStyle(
+ OperationType operationType) {
if (null != operationType) {
-
- if (operationType.equals(OperationType.REQUEST_RESPONSE))
+ if (operationType.equals(OperationType.REQUEST_RESPONSE)) {
return WSDLConstants.MEP_URI_IN_OUT;
-
- if (operationType.equals(OperationType.ONE_WAY))
+ }
+ if (operationType.equals(OperationType.ONE_WAY)) {
return WSDLConstants.MEP_URI_IN_ONLY;
-
- if (operationType.equals(OperationType.NOTIFICATION))
+ }
+ if (operationType.equals(OperationType.NOTIFICATION)) {
return WSDLConstants.MEP_URI_OUT_ONLY;
-
- if (operationType.equals(OperationType.SOLICIT_RESPONSE))
+ }
+ if (operationType.equals(OperationType.SOLICIT_RESPONSE)) {
return WSDLConstants.MEP_URI_OUT_IN;
+ }
}
- //TODO
+
+ // TODO
return WSDLConstants.MEP_URI_OUT_IN;
}
@@ -340,7 +400,6 @@
* Porttype exist in the WSDl 1.1 file this will create a dummy Interface
* with the available PortTypes and will return that interface so that it
* will inherit all those interfaces.
- * <p/>
* Eventuall this will have to be fixed using user input since
*
* @param service
@@ -349,26 +408,32 @@
private WSDLInterface getBoundInterface(WSDLService service) {
// Throw an exception if there are no interfaces defined as at yet.
- if (0 == this.womDefinition.getWsdlInterfaces().size())
- throw new WSDLProcessingException("There are no " +
- "Interfaces/PortTypes identified in the current partially built" +
- "WOM");
+ if (0 == this.womDefinition.getWsdlInterfaces().size()) {
+ throw new WSDLProcessingException(
+ "There are no "
+ + "Interfaces/PortTypes identified in the current partially built"
+ + "WOM");
+ }
- //If there is only one Interface available hten return that because normally
+ // If there is only one Interface available hten return that because normally
// that interface must be the one to the service should get bound.
- if (1 == this.womDefinition.getWsdlInterfaces().size())
+ if (1 == this.womDefinition.getWsdlInterfaces().size()) {
return (WSDLInterface) this.womDefinition.getWsdlInterfaces().values().iterator().next();
+ }
- //If there are more than one interface available... For the time being create a
+ // If there are more than one interface available... For the time being create a
// new interface and set all those existing interfaces as superinterfaces of it
// and return.
WSDLInterface newBoundInterface = this.womDefinition.createInterface();
- newBoundInterface.setName(new QName(service.getNamespace(), service.getName().getLocalPart() + BOUND_INTERFACE_NAME));
- Iterator interfaceIterator = this.womDefinition.getWsdlInterfaces().values().iterator();
+ newBoundInterface.setName(new QName(service.getNamespace(),
+ service.getName().getLocalPart()
+ + BOUND_INTERFACE_NAME));
+ Iterator interfaceIterator =
+ this.womDefinition.getWsdlInterfaces().values().iterator();
while (interfaceIterator.hasNext()) {
- newBoundInterface.addSuperInterface((WSDLInterface) interfaceIterator.next());
+ newBoundInterface.addSuperInterface(
+ (WSDLInterface) interfaceIterator.next());
}
return newBoundInterface;
}
-
}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/Component.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/Component.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/Component.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/Component.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import java.util.HashMap;
@@ -24,11 +23,15 @@
public interface Component {
/**
* Returns the properties that are specific to this WSDL Component.
+ *
+ * @return
*/
public HashMap getComponentProperties();
/**
* Sets the properties of the Component if any.
+ *
+ * @param properties
*/
public void setComponentProperties(HashMap properties);
@@ -47,4 +50,4 @@
* @return
*/
public Object getComponentProperty(Object key);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensibleComponent.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensibleComponent.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensibleComponent.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensibleComponent.java Sat Feb 19 19:37:38 2005
@@ -1,24 +1,22 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import java.util.List;
-
/**
* @author chathura@opensource.lk
*/
@@ -26,7 +24,6 @@
/**
* Will add a <code>WSDLFeature</code> to the feature list.
* If feature is null it will not be added.
- * <p/>
* <code>ExtensibleComponent</code>
*
* @param feature
@@ -47,7 +44,7 @@
*
* @param wsdlProperty
*/
- public void addPorperty(WSDLProperty wsdlProperty);
+ public void addProperty(WSDLProperty wsdlProperty);
/**
* Returns the Component Properties. If none exist an empty list will be returned.
@@ -55,4 +52,4 @@
* @return
*/
public List getProperties();
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensionElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensionElement.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensionElement.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/ExtensionElement.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import org.w3c.dom.Element;
@@ -22,11 +21,31 @@
* @author chathura@opensource.lk
*/
public interface ExtensionElement {
+ /**
+ * Method getElement
+ *
+ * @return
+ */
public Element getElement();
+ /**
+ * Method setElement
+ *
+ * @param element
+ */
public void setElement(Element element);
+ /**
+ * Method isRequired
+ *
+ * @return
+ */
public boolean isRequired();
+ /**
+ * Method setRequired
+ *
+ * @param required
+ */
public void setRequired(boolean required);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/FaultReference.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/FaultReference.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/FaultReference.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/FaultReference.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
/**
@@ -34,8 +33,18 @@
*/
public void setDirection(String direction);
+ /**
+ * Method getMessageLabel
+ *
+ * @return
+ */
public String getMessageLabel();
+ /**
+ * Method setMessageLabel
+ *
+ * @param messageLabel
+ */
public void setMessageLabel(String messageLabel);
/**
@@ -51,4 +60,4 @@
* @param ref
*/
public void setRef(String ref);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/MessageReference.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/MessageReference.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/MessageReference.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/MessageReference.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import javax.xml.namespace.QName;
@@ -22,20 +21,46 @@
* @author chathura@opensource.lk
*/
public interface MessageReference extends ExtensibleComponent {
+ /**
+ * Method getDirection
+ *
+ * @return
+ */
public String getDirection();
+ /**
+ * Method setDirection
+ *
+ * @param direction
+ */
public void setDirection(String direction);
-
/**
* This Element refers to the actual message that will get transported. This Element
* Abstracts all the Message Parts that was defined in the WSDL 1.1.
+ *
+ * @return
*/
public QName getElement();
+ /**
+ * Method setElement
+ *
+ * @param element
+ */
public void setElement(QName element);
+ /**
+ * Method getMessageLabel
+ *
+ * @return
+ */
public String getMessageLabel();
+ /**
+ * Method setMessageLabel
+ *
+ * @param messageLabel
+ */
public void setMessageLabel(String messageLabel);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBinding.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBinding.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBinding.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBinding.java Sat Feb 19 19:37:38 2005
@@ -1,52 +1,117 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import javax.xml.namespace.QName;
import java.util.HashMap;
-
/**
* @author chathura@opensource.lk
*/
public interface WSDLBinding extends ExtensibleComponent {
+ /**
+ * Method getBoundInterface
+ *
+ * @return
+ */
public WSDLInterface getBoundInterface();
+ /**
+ * Method setBoundInterface
+ *
+ * @param boundInterface
+ */
public void setBoundInterface(WSDLInterface boundInterface);
+ /**
+ * Method getName
+ *
+ * @return
+ */
public QName getName();
+ /**
+ * Method setName
+ *
+ * @param name
+ */
public void setName(QName name);
+ /**
+ * Method getTargetNameSpace
+ *
+ * @return
+ */
public String getTargetNameSpace();
+ /**
+ * Method getBindingFaults
+ *
+ * @return
+ */
public HashMap getBindingFaults();
+ /**
+ * Method setBindingFaults
+ *
+ * @param bindingFaults
+ */
public void setBindingFaults(HashMap bindingFaults);
+ /**
+ * Method getBindingOperations
+ *
+ * @return
+ */
public HashMap getBindingOperations();
+ /**
+ * Method setBindingOperations
+ *
+ * @param bindingOperations
+ */
public void setBindingOperations(HashMap bindingOperations);
+ /**
+ * Method addBindingOperation
+ *
+ * @param bindingOperation
+ */
public void addBindingOperation(WSDLBindingOperation bindingOperation);
+ /**
+ * Method getBindingOperation
+ *
+ * @param qName
+ * @return
+ */
public WSDLBindingOperation getBindingOperation(QName qName);
+ /**
+ * Method addBindingFaults
+ *
+ * @param bindingFault
+ */
public void addBindingFaults(WSDLBindingFault bindingFault);
+ /**
+ * Method getBindingFault
+ *
+ * @param ref
+ * @return
+ */
public WSDLBindingFault getBindingFault(QName ref);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingFault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingFault.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingFault.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingFault.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import javax.xml.namespace.QName;
@@ -22,7 +21,17 @@
* @author chathura@opensource.lk
*/
public interface WSDLBindingFault {
+ /**
+ * Method getRef
+ *
+ * @return
+ */
public QName getRef();
+ /**
+ * Method setRef
+ *
+ * @param ref
+ */
public void setRef(QName ref);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingMessageReference.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingMessageReference.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingMessageReference.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingMessageReference.java Sat Feb 19 19:37:38 2005
@@ -1,30 +1,49 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
/**
* @author chathura@opensource.lk
*/
public interface WSDLBindingMessageReference extends ExtensibleComponent {
+ /**
+ * Method getDirection
+ *
+ * @return
+ */
public String getDirection();
+ /**
+ * Method setDirection
+ *
+ * @param direction
+ */
public void setDirection(String direction);
+ /**
+ * Method getMessageLabel
+ *
+ * @return
+ */
public String getMessageLabel();
+ /**
+ * Method setMessageLabel
+ *
+ * @param messageLabel
+ */
public void setMessageLabel(String messageLabel);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingOperation.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingOperation.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingOperation.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLBindingOperation.java Sat Feb 19 19:37:38 2005
@@ -1,43 +1,79 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import javax.xml.namespace.QName;
-
/**
* @author chathura@opensource.lk
*/
public interface WSDLBindingOperation extends ExtensibleComponent {
-
-
+ /**
+ * Method getInput
+ *
+ * @return
+ */
public WSDLBindingMessageReference getInput();
+ /**
+ * Method setInput
+ *
+ * @param input
+ */
public void setInput(WSDLBindingMessageReference input);
+ /**
+ * Method getOperation
+ *
+ * @return
+ */
public WSDLOperation getOperation();
+ /**
+ * Method setOperation
+ *
+ * @param operation
+ */
public void setOperation(WSDLOperation operation);
+ /**
+ * Method getOutput
+ *
+ * @return
+ */
public WSDLBindingMessageReference getOutput();
+ /**
+ * Method setOutput
+ *
+ * @param output
+ */
public void setOutput(WSDLBindingMessageReference output);
+ /**
+ * Method getName
+ *
+ * @return
+ */
public QName getName();
+ /**
+ * Method setName
+ *
+ * @param name
+ */
public void setName(QName name);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLConstants.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLConstants.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLConstants.java Sat Feb 19 19:37:38 2005
@@ -1,62 +1,105 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
/**
* @author chathura@opensource.lk
*/
public interface WSDLConstants {
-
+ /**
+ * Field WSDL2_0_NAMESPACE
+ */
public static final String WSDL2_0_NAMESPACE =
"http://www.w3.org/2004/03/wsdl";
+ /**
+ * Field WSDL1_1_NAMESPACE
+ */
public static final String WSDL1_1_NAMESPACE =
"http://schemas.xmlsoap.org/wsdl/";
- public static final String[] WSDL_NAMESPACES =
- {WSDL2_0_NAMESPACE, WSDL1_1_NAMESPACE};
-
- //TODO Verify weather the value is right with the spec.
-
+ /**
+ * Field WSDL_NAMESPACES
+ */
+ public static final String[] WSDL_NAMESPACES = {WSDL2_0_NAMESPACE,
+ WSDL1_1_NAMESPACE};
+
+ // TODO Verify weather the value is right with the spec.
+
+ /**
+ * Field WSDL_MESSAGE_DIRECTION_IN
+ */
public static final String WSDL_MESSAGE_DIRECTION_IN = "in";
- //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";
+ // TODO Verify weather the value is right with the spec.
+ /**
+ * Field WSDL_MESSAGE_DIRECTION_OUT
+ */
+ public static final String WSDL_MESSAGE_DIRECTION_OUT = "out";
+ // ////////////////////////////////////////////////////////////////
+ // /////////////Message Exchange Pattern Constants/////////////////
+ // ////////////////////////////////////////////////////////////////
+
+ /**
+ * Field MEP_URI_IN_ONLY
+ */
+ public static final String MEP_URI_IN_ONLY =
+ "http://www.w3.org/2004/08/wsdl/in-only";
+
+ /**
+ * Field MEP_URI_ROBUST_IN_ONLY
+ */
+ public static final String MEP_URI_ROBUST_IN_ONLY =
+ "http://www.w3.org/2004/08/wsdl/robust-in-only";
+
+ /**
+ * Field MEP_URI_IN_OUT
+ */
+ public static final String MEP_URI_IN_OUT =
+ "http://www.w3.org/2004/08/wsdl/in-out";
+
+ /**
+ * Field MEP_URI_IN_OPTIONAL_OUT
+ */
+ public static final String MEP_URI_IN_OPTIONAL_OUT =
+ "http://www.w3.org/2004/08/wsdl/in-opt-out";
+
+ /**
+ * Field MEP_URI_OUT_ONLY
+ */
+ public static final String MEP_URI_OUT_ONLY =
+ "http://www.w3.org/2004/08/wsdl/out-only";
+
+ /**
+ * Field MEP_URI_ROBUST_OUT_ONLY
+ */
+ public static final String MEP_URI_ROBUST_OUT_ONLY =
+ "http://www.w3.org/2004/08/wsdl/robust-out-only";
+
+ /**
+ * Field MEP_URI_OUT_IN
+ */
+ public static final String MEP_URI_OUT_IN =
+ "http://www.w3.org/2004/08/wsdl/out-in";
+
+ /**
+ * Field MEP_URI_OUT_OPTIONL_IN
+ */
+ public static final String MEP_URI_OUT_OPTIONL_IN =
+ "http://www.w3.org/2004/08/wsdl/out-opt-in";
}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLDescription.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLDescription.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLDescription.java Sat Feb 19 19:37:38 2005
@@ -1,26 +1,24 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.HashMap;
-
/**
* @author chathura@opensource.lk
*/
@@ -28,11 +26,15 @@
/**
* Returns a Map of <code>WSDLBindings</code> Objects keyed by the <code>QName</code>
* of the Binding.
+ *
+ * @return
*/
public HashMap getBindings();
/**
* Sets the whole new set of Bindings to the WSDLDefinition.
+ *
+ * @param bindings
*/
public void setBindings(HashMap bindings);
@@ -51,6 +53,7 @@
* if <code>WSDLBinding</code> is not found.
*
* @param qName The QName of the Binding.
+ * @return
*/
public WSDLBinding getBinding(QName qName);
@@ -72,8 +75,18 @@
*/
public WSDLInterface getInterface(QName qName);
+ /**
+ * Method getServices
+ *
+ * @return
+ */
public HashMap getServices();
+ /**
+ * Method setServices
+ *
+ * @param services
+ */
public void setServices(HashMap services);
/**
@@ -94,27 +107,57 @@
*/
public void addService(WSDLService service);
+ /**
+ * Method getTargetNameSpace
+ *
+ * @return
+ */
public String getTargetNameSpace();
+ /**
+ * Method setTargetNameSpace
+ *
+ * @param targetNameSpace
+ */
public void setTargetNameSpace(String targetNameSpace);
+ /**
+ * Method getWsdlInterfaces
+ *
+ * @return
+ */
public HashMap getWsdlInterfaces();
+ /**
+ * Method setWsdlInterfaces
+ *
+ * @param wsdlInterfaces
+ */
public void setWsdlInterfaces(HashMap wsdlInterfaces);
+ /**
+ * Method getTypes
+ *
+ * @return
+ */
public WSDLTypes getTypes();
+ /**
+ * Method setTypes
+ *
+ * @param types
+ */
public void setTypes(WSDLTypes types);
/**
- * Gets the name attrebute of the WSDL 1.1 Definitions Element
+ * Gets the name attribute of the WSDL 1.1 Definitions Element
*
* @return
*/
public QName getWSDL1DefinitionName();
/**
- * Sets the name attrebute of the WSDL 1.1 Definitions Element
+ * Sets the name attribute of the WSDL 1.1 Definitions Element
*
* @param wsdl1DefinitionName
*/
@@ -243,5 +286,10 @@
*/
public WSDLInclude createInclude();
+ /**
+ * Method createProperty
+ *
+ * @return
+ */
public WSDLProperty createProperty();
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLEndpoint.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLEndpoint.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLEndpoint.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLEndpoint.java Sat Feb 19 19:37:38 2005
@@ -1,34 +1,51 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import javax.xml.namespace.QName;
-
/**
* @author chathura@opensource.lk
*/
public interface WSDLEndpoint extends Component {
+ /**
+ * Method getBinding
+ *
+ * @return
+ */
public WSDLBinding getBinding();
+ /**
+ * Method setBinding
+ *
+ * @param binding
+ */
public void setBinding(WSDLBinding binding);
+ /**
+ * Method getName
+ *
+ * @return
+ */
public QName getName();
+ /**
+ * Method setName
+ *
+ * @param name
+ */
public void setName(QName name);
-
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFault.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFault.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFault.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import org.w3c.dom.Element;
@@ -22,11 +21,31 @@
* @author chathura@opensource.lk
*/
public interface WSDLFault extends Component {
+ /**
+ * Method getElement
+ *
+ * @return
+ */
public Element getElement();
+ /**
+ * Method setElement
+ *
+ * @param element
+ */
public void setElement(Element element);
+ /**
+ * Method getName
+ *
+ * @return
+ */
public String getName();
+ /**
+ * Method setName
+ *
+ * @param name
+ */
public void setName(String name);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFeature.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFeature.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFeature.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLFeature.java Sat Feb 19 19:37:38 2005
@@ -1,31 +1,49 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
-
/**
* @author chathura@opensource.lk
*/
public interface WSDLFeature extends Component {
+ /**
+ * Method getName
+ *
+ * @return
+ */
public String getName();
+ /**
+ * Method setName
+ *
+ * @param name
+ */
public void setName(String name);
+ /**
+ * Method isRequired
+ *
+ * @return
+ */
public boolean isRequired();
+ /**
+ * Method setRequired
+ *
+ * @param required
+ */
public void setRequired(boolean required);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLImport.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLImport.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLImport.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLImport.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
/**
@@ -30,7 +29,7 @@
/**
* Sets the location URI of the Include.
*
- * @param loaction
+ * @param location
*/
public void setLocation(String location);
@@ -47,4 +46,4 @@
* @param namespace
*/
public void setNamespace(String namespace);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInclude.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInclude.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInclude.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInclude.java Sat Feb 19 19:37:38 2005
@@ -1,19 +1,18 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
/**
@@ -25,12 +24,12 @@
*
* @return
*/
- public String getLoaction();
+ public String getLocation();
/**
* Sets the location URI of the Include.
*
- * @param loaction
+ * @param location
*/
- public void setLoaction(String loaction);
-}
\ No newline at end of file
+ public void setLocation(String location);
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInterface.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInterface.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInterface.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLInterface.java Sat Feb 19 19:37:38 2005
@@ -1,37 +1,40 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import javax.xml.namespace.QName;
import java.util.HashMap;
import java.util.List;
-
/**
* @author chathura@opensource.lk
*/
public interface WSDLInterface extends ExtensibleComponent {
-
-
+ /**
+ * Method getDefinedOperations
+ *
+ * @return
+ */
public HashMap getDefinedOperations();
/**
* Will return a map of all this <code>WSDLOperation</code>s that
* are defined and inherited from super interfaces.
+ *
+ * @return
*/
public HashMap getAllOperations();
@@ -52,6 +55,9 @@
/**
* Retruns the <code>WSDLOperation</code>
+ *
+ * @param nCName
+ * @return
*/
public WSDLOperation getOperation(String nCName);
@@ -60,6 +66,12 @@
*/
public HashMap getSuperInterfaces();
+ /**
+ * Method getSuperInterface
+ *
+ * @param qName
+ * @return
+ */
public WSDLInterface getSuperInterface(QName qName);
/**
@@ -90,7 +102,6 @@
* 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);
@@ -115,5 +126,10 @@
*/
public String getStyleDefault();
+ /**
+ * Method setStyleDefault
+ *
+ * @param styleDefault
+ */
public void setStyleDefault(String styleDefault);
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLOperation.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLOperation.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLOperation.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLOperation.java Sat Feb 19 19:37:38 2005
@@ -1,64 +1,143 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
import javax.xml.namespace.QName;
import java.util.List;
-
/**
* @author chathura@opensource.lk
*/
public interface WSDLOperation extends ExtensibleComponent {
-
-
+ /**
+ * Method getInfaults
+ *
+ * @return
+ */
public List getInfaults();
+ /**
+ * Method setInfaults
+ *
+ * @param infaults
+ */
public void setInfaults(List infaults);
+ /**
+ * Method getInputMessage
+ *
+ * @return
+ */
public MessageReference getInputMessage();
+ /**
+ * Method setInputMessage
+ *
+ * @param inputMessage
+ */
public void setInputMessage(MessageReference inputMessage);
+ /**
+ * Method getMessageExchangePattern
+ *
+ * @return
+ */
public String getMessageExchangePattern();
+ /**
+ * Method setMessageExchangePattern
+ *
+ * @param messageExchangePattern
+ */
public void setMessageExchangePattern(String messageExchangePattern);
+ /**
+ * Method getName
+ *
+ * @return
+ */
public QName getName();
+ /**
+ * Method setName
+ *
+ * @param name
+ */
public void setName(QName name);
+ /**
+ * Method getOutfaults
+ *
+ * @return
+ */
public List getOutfaults();
+ /**
+ * Method setOutfaults
+ *
+ * @param outfaults
+ */
public void setOutfaults(List outfaults);
+ /**
+ * Method getOutputMessage
+ *
+ * @return
+ */
public MessageReference getOutputMessage();
+ /**
+ * Method setOutputMessage
+ *
+ * @param outputMessage
+ */
public void setOutputMessage(MessageReference outputMessage);
+ /**
+ * Method isSafe
+ *
+ * @return
+ */
public boolean isSafe();
+ /**
+ * Method setSafety
+ *
+ * @param safe
+ */
public void setSafety(boolean safe);
+ /**
+ * Method getStyle
+ *
+ * @return
+ */
public int getStyle();
+ /**
+ * Method setStyle
+ *
+ * @param style
+ */
public void setStyle(int style);
+ /**
+ * Method getTargetnemespace
+ *
+ * @return
+ */
public String getTargetnemespace();
-
-
-}
\ No newline at end of file
+}
Modified: webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLProperty.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLProperty.java?view=diff&r1=154470&r2=154471
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLProperty.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/java/org/apache/wsdl/WSDLProperty.java Sat Feb 19 19:37:38 2005
@@ -1,35 +1,63 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.apache.wsdl;
-
/**
* @author chathura@opensource.lk
*/
public interface WSDLProperty extends Component {
+ /**
+ * Method getConstraint
+ *
+ * @return
+ */
public Object getConstraint();
+ /**
+ * Method setConstraint
+ *
+ * @param constraint
+ */
public void setConstraint(Object constraint);
+ /**
+ * Method getName
+ *
+ * @return
+ */
public String getName();
+ /**
+ * Method setName
+ *
+ * @param uri
+ */
public void setName(String uri);
+ /**
+ * Method getValue
+ *
+ * @return
+ */
public Object getValue();
+ /**
+ * Method setValue
+ *
+ * @param value
+ */
public void setValue(Object value);
-}
\ No newline at end of file
+}