Package com.ibm.jscript.types

Examples of com.ibm.jscript.types.FBSValue.stringValue()


    }
  }
  protected void fixDocUrl(ObjectObject o, String baseDocUrl) throws Exception {
    FBSValue params = o.get("doc_url");
    if(!params.isNull()) {
      String url = params.stringValue();
      if(!UrlUtil.isAbsoluteUrl(url) && StringUtil.isNotEmpty(baseDocUrl)) {
        o.put("doc_url", FBSString.get(PathUtil.concat(baseDocUrl, url, '/')));
      }
    }
  }
View Full Code Here


  private void extract(ArrayObject a, ObjectObject parent, String prop) throws Exception {
    FBSValue v = parent.get(prop);
    if(!v.isString()) {
      return;
    }
    String value = v.stringValue();
    int pos=0;
    do {
      int start = value.indexOf("{",pos);
      if(start>=0) {
        int end = value.indexOf("}",start);
View Full Code Here

      int start = value.indexOf("{",pos);
      if(start>=0) {
        int end = value.indexOf("}",start);
        if(end>start+1) {
          FBSValue p = FBSUtility.wrap(value.substring(start+1,end).trim());
          if(!contains(a,p.stringValue())) {
            if(TRACE) {
              System.out.println(StringUtil.format("Missing uri property {0}",p));
            }
            addParam(a, p, FBSString.emptyString, FBSUtility.wrap("string"), FBSString.emptyString);
          }
View Full Code Here

    int count = a.getArrayLength();
    for(int i=0; i<count; i++) {
      FBSValue v = a.getArrayValue(i);
      if(v.isJSObject()) {
        FBSValue n = v.asObject().get("name");
        if(n.isString() && n.stringValue().equals(name)) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

    }
   
    // Now, add the pseudo entries for the POST/PUT content
    FBSValue v = item.get("http_method");
    if(v.isString()) {
      String m = v.stringValue();
      if(m.equalsIgnoreCase("post")||m.equalsIgnoreCase("put")) {
        ObjectObject ct = addParam(a, FBSString.get("post_content_type"), item.get("post_content_type"), FBSUtility.wrap("string"), FBSUtility.wrap("Content-Type header of the payload"));
        ct.put("optional", FBSBoolean.TRUE);
        ObjectObject bd = addParam(a, FBSString.get("post_content"), item.get("post_content"), FBSUtility.wrap("textarea"), FBSUtility.wrap("Text content sent to the service"));
        bd.put("optional", FBSBoolean.TRUE);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.