[prev in list] [next in list] [prev in thread] [next in thread]
List: wsf-c-dev
Subject: [Wsf-dev] [Jython] svn commit r67612 -
From: heshan () wso2 ! com
Date: 2010-06-04 14:57:53
Message-ID: E1OKYLJ-0002nL-Kz () wso2 ! org
[Download RAW message or body]
Author: heshan
Date: Fri Jun 4 07:57:53 2010
New Revision: 67612
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=67612
Log:
Java doc comments added.
Modified:
trunk/wsf/jython/server/core/src/main/java/org/wso2/wsf/jython/messagereceiver/PyToOMConverter.java
Modified: trunk/wsf/jython/server/core/src/main/java/org/wso2/wsf/jython/messagereceiver/PyToOMConverter.java
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/jython/server/core/src/main/java/org/ws \
o2/wsf/jython/messagereceiver/PyToOMConverter.java?rev=67612&r1=67611&r2=67612&view=diff
==============================================================================
--- trunk/wsf/jython/server/core/src/main/java/org/wso2/wsf/jython/messagereceiver/PyToOMConverter.java (original)
+++ trunk/wsf/jython/server/core/src/main/java/org/wso2/wsf/jython/messagereceiver/PyToOMConverter.java Fri \
Jun 4 07:57:53 2010 @@ -24,12 +24,27 @@
import org.apache.axis2.databinding.types.NegativeInteger;
import org.python.core.PyInteger;
+/**
+ * Converts Python Objects to java Objects.
+ */
public class PyToOMConverter {
-
+ /**
+ * Converts a given python Object to String.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ */
public static String convertToString(Object pyObject) {
return pyObject.toString();
}
+ /**
+ * Converts a given python Object to Float.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ * @throws org.apache.axis2.AxisFault AxisFault
+ */
public static String convertToFloat(Object pyObject) throws AxisFault {
try {
Float floatObject = (Float) pyObject;
@@ -39,6 +54,13 @@
}
}
+ /**
+ * Converts a given python Object to Integer.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ * @throws org.apache.axis2.AxisFault AxisFault
+ */
public static String convertToInteger(Object pyObject) throws AxisFault {
try {
Integer integer = (Integer) pyObject;
@@ -48,6 +70,13 @@
}
}
+ /**
+ * Converts a given python Object to Int.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ * @throws org.apache.axis2.AxisFault AxisFault
+ */
public static String convertToInt(Object pyObject) throws AxisFault {
try {
Integer integer;
@@ -62,6 +91,13 @@
}
}
+ /**
+ * Converts a given python Object to NonPositiveInteger.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ * @throws org.apache.axis2.AxisFault AxisFault
+ */
public static String convertToNonPositiveInteger(Object pyObject) throws \
AxisFault { try {
NonPositiveInteger integer =
@@ -72,6 +108,13 @@
}
}
+ /**
+ * Converts a given python Object to NonNegativeInteger.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ * @throws org.apache.axis2.AxisFault AxisFault
+ */
public static String convertToNonNegativeInteger(Object pyObject) throws \
AxisFault { try {
NonNegativeInteger integer =
@@ -82,6 +125,13 @@
}
}
+ /**
+ * Converts a given python Object to PositiveInteger.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ * @throws org.apache.axis2.AxisFault AxisFault
+ */
public static String convertToPositiveInteger(Object pyObject) throws AxisFault \
{ try {
PositiveInteger integer = \
ConverterUtil.convertToPositiveInteger(pyObject.toString()); @@ -91,6 +141,13 @@
}
}
+ /**
+ * Converts a given python Object to NegativeInteger.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ * @throws org.apache.axis2.AxisFault AxisFault
+ */
public static String convertToNegativeInteger(Object pyObject) throws AxisFault \
{ try {
NegativeInteger integer = \
ConverterUtil.convertToNegativeInteger(pyObject.toString()); @@ -100,6 +157,13 @@
}
}
+ /**
+ * Converts a given python Object to Long.
+ *
+ * @param pyObject python Object.
+ * @return returns a String.
+ * @throws org.apache.axis2.AxisFault AxisFault
+ */
public static String convertToLong(Object pyObject) throws AxisFault {
try {
Long longvalue = (Long) pyObject;
@@ -109,6 +173,4 @@
}
}
- //public static String convertToDictionary
-
}
_______________________________________________
Wsf-dev mailing list
Wsf-dev@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/wsf-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic