You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sadeep Jayasumana (Created) (JIRA)" <ji...@apache.org> on 2011/12/12 12:00:31 UTC

[jira] [Created] (AXIS2-5212) Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper

Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper
-------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-5212
                 URL: https://issues.apache.org/jira/browse/AXIS2-5212
             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


[jira] [Resolved] (AXIS2-5212) Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper

Posted by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved AXIS2-5212.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
                   1.6.2

Patch applied in r1214118. 
                
> Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5212
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5212
>             Project: Axis2
>          Issue Type: Improvement
>          Components: databinding
>            Reporter: Sadeep Jayasumana
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: AXIS2-5212.patch
>
>
> 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


[jira] [Commented] (AXIS2-5212) Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419062#comment-13419062 ] 

Hudson commented on AXIS2-5212:
-------------------------------

Integrated in Synapse - Trunk #4336 (See [https://builds.apache.org/job/Synapse%20-%20Trunk/4336/])
    Incorporating fixes of AXIS2-5212. (Revision 1363672)

     Result = SUCCESS
sadeep : 
Files : 
* /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/bean/BeanUtils.java

                
> Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5212
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5212
>             Project: Axis2
>          Issue Type: Improvement
>          Components: databinding
>            Reporter: Sadeep Jayasumana
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: AXIS2-5212.patch
>
>
> 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


[jira] [Updated] (AXIS2-5212) Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper

Posted by "Sadeep Jayasumana (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sadeep Jayasumana updated AXIS2-5212:
-------------------------------------

    Attachment: AXIS2-5212.patch

Attaching a patch. Please review and commit.
                
> Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5212
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5212
>             Project: Axis2
>          Issue Type: Improvement
>          Components: databinding
>            Reporter: Sadeep Jayasumana
>         Attachments: AXIS2-5212.patch
>
>
> 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


[jira] [Commented] (AXIS2-5212) Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper

Posted by "Sadeep Jayasumana (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167460#comment-13167460 ] 

Sadeep Jayasumana commented on AXIS2-5212:
------------------------------------------

I have run all Axis2 tests with this patch. All of them pass without any issues.
                
> Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5212
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5212
>             Project: Axis2
>          Issue Type: Improvement
>          Components: databinding
>            Reporter: Sadeep Jayasumana
>         Attachments: AXIS2-5212.patch
>
>
> 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


[jira] [Commented] (AXIS2-5212) Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169240#comment-13169240 ] 

Hudson commented on AXIS2-5212:
-------------------------------

Integrated in Axis2 #1180 (See [https://builds.apache.org/job/Axis2/1180/])
    Applied patch for AXIS2-5212.

sagara : 
Files : 
* /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java

                
> Add getSimpleTypeObject(Class parameter, String text) method to org.apache.axis2.databinding.typemapping.SimpleTypeMapper
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5212
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5212
>             Project: Axis2
>          Issue Type: Improvement
>          Components: databinding
>            Reporter: Sadeep Jayasumana
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: AXIS2-5212.patch
>
>
> 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