Service Virtualization

SDK parseInState() api question

  • 1.  SDK parseInState() api question

    Posted Aug 06, 2015 12:10 PM

    the sdk java doc says

     

    parseInState(java.lang.String sContent, java.util.Map state)

    Method for taking an incoming String that is expected to have property tags in it (those are the {{key}} things), and parse into a return String the value side of those keys.

     

    the words here are confusing.

     

    the parse verb implies separating a large entity to many smaller entities

     

    >and parse into a return String the value side of those keys.

     

    which I THINK said,

     

    and return a string with the referenced property values substituted

     

    if this is right, I think a better name would have been

     

    String = resolveWithState(String), or

    String = resolveWithProperties(String.. etc)