axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sadeep Jayasumana (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5211) Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper
Date Mon, 12 Dec 2011 10:54:33 GMT
Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper
-------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-5211
                 URL: https://issues.apache.org/jira/browse/AXIS2-5211
             Project: Axis2
          Issue Type: Improvement
          Components: databinding
            Reporter: Sadeep Jayasumana


Currently org.apache.axis2.databinding.typemapping.SimpleTypeMapper class has getSimpleTypeObject(Class
parameter, OMElement value) method. Only usage of the OMElement parameter of this method is
to retrieve the text encapsulated in it by calling value.getText() method. getSimpleTypeObject(Class
parameter, String text) would be a more API-wise cleaner version of this method.

Introducing getSimpleTypeObject(Class parameter, String text) is useful since converting a
String into a simple type (int, long, etc.) is a common requirement. In fact, in many places
of Apache Synapse project this sort of conversions are done using newly written code. If getSimpleTypeObject(Class
parameter, String text) method is introduced to SimpleTypeMapper class, then it can be reused
by number of places including some code in Apache Synpase project without writing new code
for the same purpose.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message