You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by mc...@apache.org on 2008/04/04 22:46:21 UTC
svn commit: r644902 -
/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/
Author: mcombellack
Date: Fri Apr 4 13:46:20 2008
New Revision: 644902
URL: http://svn.apache.org/viewvc?rev=644902&view=rev
Log:
Update to fix minor spelling mistakes in the JavaDoc and comments
Modified:
incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDL.java
incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGenerator.java
incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java
incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/SchemaBuilder.java
incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLOptionsValidator.java
incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanySchemaGenerator.java
incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyWSDLTypesGenerator.java
Modified: incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDL.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDL.java?rev=644902&r1=644901&r2=644902&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDL.java (original)
+++ incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDL.java Fri Apr 4 13:46:20 2008
@@ -22,7 +22,7 @@
/**
* This class provides the tooling abstraction to Tuscany Java2WSDL and can be
- * invoked from command line with the follwing options as with Axis2 Java2WSDL
+ * invoked from command line with the following options as with Axis2 Java2WSDL
*/
public class Java2WSDL {
/**
Modified: incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGenerator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGenerator.java?rev=644902&r1=644901&r2=644902&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGenerator.java (original)
+++ incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGenerator.java Fri Apr 4 13:46:20 2008
@@ -23,7 +23,7 @@
/**
* This is the Java2WSDL Generator facade that will be used by Tuscany
- * components for java to wsdl conversion.
+ * components for Java to WSDL conversion.
*
*/
public interface Java2WSDLGenerator {
Modified: incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java?rev=644902&r1=644901&r2=644902&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java (original)
+++ incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/Java2WSDLGeneratorImpl.java Fri Apr 4 13:46:20 2008
@@ -42,8 +42,8 @@
* stringed up as a template method. The phases are - User Input Validation -
* WSDL Java Model Generation - Serialization of WSDL Java Model The function of
* each phase is accomplished by delegation to the appropriate classes in Axis2.
- * At the start and end of each phase an event is published to subcribers
- * denoting the start and end of the phase. Such a spliting up of the Java2WSDL
+ * At the start and end of each phase an event is published to subscribers
+ * denoting the start and end of the phase. Such a splitting up of the Java2WSDL
* conversion into phases has been designed to enable interceptors to modify the
* model or apply transformations to the output. Typically the interceptors can
* subscribe to the start and end events of these phases and hence be able to
@@ -126,7 +126,7 @@
throw new IllegalArgumentException("Didn't get back a Document DOM object");
}
- // pretty-print wsdl document
+ // pretty-print WSDL document
OutputFormat format = new OutputFormat(doc);
format.setLineWidth(65);
format.setIndenting(true);
@@ -149,11 +149,11 @@
// load the user options into an easy to access abstraction
genParams = new GenerationParameters(commandLineOptions);
- // if the WSDL Model generation was successul
+ // if the WSDL Model generation was successful
if (buildWSDLDocument()) {
- // multicast event for generation of wsdl model
+ // multicast event for generation of WSDL model
multicastGenPhaseCompletionEvent(WSDLGenListener.WSDL_MODEL_CREATION);
- // if the serialization of the generated (and fixed) model
+ // if the Serialization of the generated (and fixed) model
// is successful
if (serializeWSDLDocument()) {
// multicast event for writing of the WSDL Model to
Modified: incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/SchemaBuilder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/SchemaBuilder.java?rev=644902&r1=644901&r2=644902&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/SchemaBuilder.java (original)
+++ incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/SchemaBuilder.java Fri Apr 4 13:46:20 2008
@@ -234,7 +234,7 @@
boolean inXSDForm = schemaLocationMap.get(dataType.getURI()) != null;
if (inXSDForm) {
- // if schemalocations for xsd has been specified, include them
+ // if schemalocations for XSD has been specified, include them
// External XSDs will be handled in processing the schema TNS of the wrapper elements.
// This is partly because SDO codegen needs some modification in this area
@@ -264,7 +264,7 @@
/**
* Identify the java type (pojo versus sdo) and build the schema accordingly
*
- * @param javaType reference to the classs
+ * @param javaType reference to the class
* @return
* @throws Exception
*/
@@ -303,7 +303,7 @@
* as Foo so this method is to correct that error
*
* @param wrongName
- * @return the right name, using english as the locale for case conversion
+ * @return the right name, using English as the locale for case conversion
*/
public static String getCorrectName(String wrongName) {
if (wrongName.length() > 1) {
@@ -368,12 +368,12 @@
}
private void includeExtXSD(Type dataType) {
- // now we know there is a type for which the xsd must come from outside
+ // now we know there is a type for which the XSD must come from outside
// create a schema for the namespace of this type and add an include in it for
// the xsd that is defined externally
XmlSchema xmlSchema = getXmlSchema(dataType.getURI());
- // ideally there could be more than one external schema defintions for a namespace
+ // ideally there could be more than one external schema definitions for a namespace
// and hence schemalocations will be a list of locations
// List schemaLocations = (List)schemaLocationMap.get(dataType.getURI());
@@ -529,7 +529,7 @@
}
private String getToken(String s) {
- // get the schema element name eg. <xs:schema or <xsd:schema. We only know that 'schema' will be used
+ // get the schema element name e.g. <xs:schema or <xsd:schema. We only know that 'schema' will be used
// but not sure what suffix is used. Hence this method to get the actual element name used
int i = s.indexOf(SCHEMA_ELEMENT_NAME);
int j = s.substring(0,
Modified: incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLOptionsValidator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLOptionsValidator.java?rev=644902&r1=644901&r2=644902&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLOptionsValidator.java (original)
+++ incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLOptionsValidator.java Fri Apr 4 13:46:20 2008
@@ -25,7 +25,7 @@
/**
* This class is an extension from the Axis2 implementation in order to handle
- * additional optoins specific to Tuscany. This class can be done away with once
+ * additional options specific to Tuscany. This class can be done away with once
* Axis2 is also enhanced to support these additional options.
*/
public class TuscanyJava2WSDLOptionsValidator extends Java2WSDLOptionsValidator implements TuscanyJava2WSDLConstants {
Modified: incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanySchemaGenerator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanySchemaGenerator.java?rev=644902&r1=644901&r2=644902&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanySchemaGenerator.java (original)
+++ incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanySchemaGenerator.java Fri Apr 4 13:46:20 2008
@@ -63,7 +63,7 @@
private ClassLoader classLoader;
private String className;
- // to keep loadded method using JAM
+ // to keep loaded method using JAM
private JMethod methods[];
// to store byte code method using Axis 1.x codes
@@ -105,7 +105,7 @@
JamServiceParams jam_service_parms = factory.createServiceParams();
// setting the classLoder
// jam_service_parms.setParentClassLoader(factory.createJamClassLoader(classLoader));
- // it can posible to add the classLoader as well
+ // it can possible to add the classLoader as well
jam_service_parms.addClassLoader(classLoader);
jam_service_parms.includeClass(className);
JamService service = factory.createService(jam_service_parms);
@@ -119,12 +119,12 @@
// JAnnotation[] annotations = jclass.getAnnotations();
/**
- * Schema genertaion done in two stage 1. Load all the methods and
+ * Schema generation done in two stage 1. Load all the methods and
* create type for methods parameters (if the parameters are Bean
* then it will create Complex types for those , and if the
- * parameters are simple type which decribe in SimpleTypeTable
+ * parameters are simple type which describe in SimpleTypeTable
* nothing will happen) 2. In the next stage for all the methods
- * messages and port types will be creteated
+ * messages and port types will be created
*/
methods = jclass.getDeclaredMethods();
@@ -135,7 +135,7 @@
for (int i = 0; i < methods.length; i++) {
String methodName = methods[i].getSimpleName();
JMethod jMethod = methods[i];
- // no need to think abt this method , since that is system
+ // no need to think about this method , since that is system
// config method
if (excludeMethods.contains(jMethod.getSimpleName())) {
continue;
Modified: incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyWSDLTypesGenerator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyWSDLTypesGenerator.java?rev=644902&r1=644901&r2=644902&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyWSDLTypesGenerator.java (original)
+++ incubator/tuscany/java/sca/tools/java2wsdl/src/main/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyWSDLTypesGenerator.java Fri Apr 4 13:46:20 2008
@@ -66,7 +66,7 @@
protected Map schemaLocationMap = null;
- // to keep loadded method using JAM
+ // to keep loaded method using JAM
private JMethod methods[];
// to store byte code method using Axis 1.x codes
@@ -114,7 +114,7 @@
JamServiceParams jam_service_parms = factory.createServiceParams();
// setting the classLoder
// jam_service_parms.setParentClassLoader(factory.createJamClassLoader(classLoader));
- // it can posible to add the classLoader as well
+ // it can possible to add the classLoader as well
jam_service_parms.addClassLoader(generationParams.getClassLoader());
jam_service_parms.includeClass(generationParams.getSourceClassName());
@@ -134,12 +134,12 @@
if (jclass.getQualifiedName().equals(generationParams.getSourceClassName())) {
/**
- * Schema genertaion done in two stage 1. Load all the methods
+ * Schema generation done in two stage 1. Load all the methods
* and create type for methods parameters (if the parameters are
* Bean then it will create Complex types for those , and if the
- * parameters are simple type which decribe in SimpleTypeTable
+ * parameters are simple type which describe in SimpleTypeTable
* nothing will happen) 2. In the next stage for all the methods
- * messages and port types will be creteated
+ * messages and port types will be created
*/
methods = jclass.getDeclaredMethods();
// short the elements in the array
@@ -154,7 +154,7 @@
JMethod jMethod = methods[i];
String methodName = methods[i].getSimpleName();
- // no need to think abt this method , since that is system
+ // no need to think about this method , since that is system
// config method
if (excludeMethods.contains(jMethod.getSimpleName())) {
continue;
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org