Author: keith
Date: Tue Apr 22 19:22:15 2008
New Revision: 15988
Log:
Code reformating changes
Modified:
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/SchemaGenerator.java
Modified:
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/SchemaGenerator.java
==============================================================================
---
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/SchemaGenerator.java
(original)
+++
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/SchemaGenerator.java
Tue Apr 22 19:22:15 2008
@@ -53,6 +53,7 @@
/**
* This class is used to genarate the XMLSchema for input and output
messages on JavaScript
* services
+ *
* @param schemaTargetNamespace The schema Target Namespace for this
service
*/
public SchemaGenerator(String schemaTargetNamespace) {
@@ -75,11 +76,12 @@
/**
* This method creates a XmlSchemaElement for the input message
- * @param message The in AxisMessage
- * @param input The input objets
+ *
+ * @param message The in AxisMessage
+ * @param input The input objets
* @param functionName The operation name
- * @param params The parameters of the function as a String array
- * @param methodName The JavaScript method name
+ * @param params The parameters of the function as a String array
+ * @param methodName The JavaScript method name
* @return XmlSchemaElement A XmlSchemaElement corresponding to the input
message
* @throws MashupFault Thrown in case an exception occurs while genarating
the schema
*/
@@ -92,11 +94,12 @@
/**
* This method creates a XmlSchemaElement for the output message
- * @param message The out AxisMessage
- * @param output The output objets
+ *
+ * @param message The out AxisMessage
+ * @param output The output objets
* @param functionName The operation name
- * @param params The output parameter of the function as a String array
- * @param methodName The JavaScript method name
+ * @param params The output parameter of the function as a String
array
+ * @param methodName The JavaScript method name
* @return XmlSchemaElement A XmlSchemaElement corresponding to the output
message
* @throws MashupFault Thrown in case an exception occurs while genarating
the schema
*/
@@ -143,11 +146,12 @@
/**
* A Native object in JavaScript means that it corresponds to a complex
Type in XML schema.
* Hence this method returns XmlSchemaElement which has a complex Type
- * @param axisMessage The corresponding AxisMessage
+ *
+ * @param axisMessage The corresponding AxisMessage
* @param nativeObject The JsvsScript NativeObject that holds the type
information
- * @param elementName The element Name of this complex type
- * @param params A String array which hold the parameter names
- * @param methodName The JavaScript nethod name
+ * @param elementName The element Name of this complex type
+ * @param params A String array which hold the parameter names
+ * @param methodName The JavaScript nethod name
* @return XmlSchemaElement which wrappes the nativeObject
* @throws MashupFault Thrown in case an exception occurs
*/
@@ -169,6 +173,7 @@
/**
* Given a set of params returns a JavaScript nativeObject object that
holds those parameters
+ *
* @param params A String array that holds the parameters
* @return NativeObject that wrapps the parameters
*/
@@ -182,12 +187,13 @@
/**
* This method creates a XmlSchemaElement for the message
- * @param message The AxisMessage
- * @param object Object that represents the parameters
+ *
+ * @param message The AxisMessage
+ * @param object Object that represents the parameters
* @param functionName The operation name
- * @param elementName The element Name to be used
- * @param params The parameters of the function as a String array
- * @param methodName The JavaScript method name
+ * @param elementName The element Name to be used
+ * @param params The parameters of the function as a String array
+ * @param methodName The JavaScript method name
* @return XmlSchemaElement A XmlSchemaElement corresponding to the message
* @throws MashupFault Thrown in case an exception occurs while genarating
the schema
*/
@@ -241,11 +247,12 @@
/**
* Given a String this function creates a complex Type for it
- * @param axisMessage The AxisMessage
+ *
+ * @param axisMessage The AxisMessage
* @param functionName The operation name
- * @param params The parameters as a String array
- * @param name The name of the complex type
- * @param type The type
+ * @param params The parameters as a String array
+ * @param name The name of the complex type
+ * @param type The type
* @return XmlSchemaElement the created complex Type
* @throws MashupFault Thrown in case an exception occurs
*/
@@ -288,11 +295,12 @@
/**
* Given a JavaScript native object creates a complex type
+ *
* @param axisMessage The AxisMessage
* @param elementName The name of the element
* @param inputObject The JavaScript NativeObject
- * @param params An array holding the parameters
- * @param method The JavaScript method name
+ * @param params An array holding the parameters
+ * @param method The JavaScript method name
* @return XmlSchemaComplexType whcih represents the JavaScript
NativeObject
* @throws MashupFault Thrown in case an exception occurs
*/
@@ -308,8 +316,8 @@
if (length > 0) {
throw new MashupFault(
"The number of parameters defined in the
annotation for " +
- method +
- " does not match the number of parameters
defined for the function");
+ method + " does not match the number of
parameters defined " +
+ "for the function");
} else {
return null;
}
@@ -366,7 +374,8 @@
/**
* Given a name and a type creates an XmlSchemaElement for it
- * @param name The name of the elemnt
+ *
+ * @param name The name of the elemnt
* @param paramType The type of the element
* @return XmlSchemaElement representing the name and the type
* @throws MashupFault Thrown in case an exception occurs
@@ -455,12 +464,13 @@
}
/**
- * If the inputType annotations match the pattern of enumeration create
the appropriate schema element to handle
- * that.
+ * If the inputType annotations match the pattern of enumeration create
the appropriate schema
+ * element to handle that.
*
* @param name - The name of the parameter
* @param enums - Array of enumeration values
- * @return XmlSchemaSimpleType - An XmlSchemaSimpleType which has a
restriction and the enumaration.
+ * @return XmlSchemaSimpleType - An XmlSchemaSimpleType which has a
restriction and the
+ * enumaration.
*/
private XmlSchemaSimpleType handleEnumeration(String name, String[] enums)
{
XmlSchemaSimpleTypeRestriction simpleTypeRestriction = new
XmlSchemaSimpleTypeRestriction();
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev