Axis2
  1. Axis2
  2. AXIS2-5211

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: databinding
    • Labels:
      None

      Description

      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.

        Issue Links

          Activity

          Sadeep Jayasumana created issue -
          Sadeep Jayasumana made changes -
          Field Original Value New Value
          Link This issue duplicates AXIS2-5212 [ AXIS2-5212 ]
          Hide
          Sadeep Jayasumana added a comment -

          I have mistakenly created this while creating AXIS2-5212. Sorry for the mistake.

          Show
          Sadeep Jayasumana added a comment - I have mistakenly created this while creating AXIS2-5212 . Sorry for the mistake.
          Sadeep Jayasumana made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Duplicate [ 3 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Sadeep Jayasumana
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development