Examples of XString


Examples of ch.inftec.ju.util.XString

     */
    public ExportBuilder addTableSorted(String tableName, String... orderColumns) {
      if (orderColumns.length == 0) {
        return this.addTable(tableName);
      } else {
        XString xs = new XString();
        xs.addFormatted("SELECT * FROM %s ORDER BY ", tableName);
        for (String orderColumn : orderColumns) {
          xs.assertText("ORDER BY ", ", ");
          xs.addText(orderColumn);
        }
       
        return this.addTable(tableName, xs.toString());
      }
    }
View Full Code Here

Examples of com.nexirius.util.XString

        if (s == null) {

            return "";
        }

        XString xs = new XString(s);

        xs.replace(File.separator, "/");

        String path = xs.toString();

        if (!path.startsWith("/")) {
            path = "/" + path;
        }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XString

    DTM dtm = xctxt.getDTM(context);
    int doc = dtm.getDocument();
   
    String uri = dtm.getUnparsedEntityURI(name);

    return new XString(uri);
  }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XString

        // is removed from the output string, so don't
        // do anything.
      }
    }

    return new XString(sbuffer.toString());
  }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XString

    public double toNumber(org.w3c.dom.Node n)
    {
      // %REVIEW% You can't get much uglier than this...
      int nodeHandle = getDTMHandleFromNode(n);
      DTM dtm = getDTM(nodeHandle);
      XString xobj = (XString)dtm.getStringValue(nodeHandle);
      return xobj.num();
    }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XString

      {
        sb.append(m_args[i].execute(xctxt).str());
      }
    }

    return new XString(sb.toString());
  }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XString

    if (DTM.NULL != context)
    {
      DTM dtm = xctxt.getDTM(context);
      String qname = dtm.getNodeNameX(context);
      val = (null == qname) ? XString.EMPTYSTRING : new XString(qname);
    }
    else
    {
      val = XString.EMPTYSTRING;
    }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XString

    DTM dtm = xctxt.getDTM(context);
    String s = (context != DTM.NULL) ? dtm.getLocalName(context) : "";
    if(s.startsWith("#") || s.equals("xmlns"))
      return XString.EMPTYSTRING;

    return new XString(s);
  }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XString

      // of Xalan. It's sensitive to the exact encoding of the node
      // handle anyway, so fighting to maintain backward compatability
      // really didn't make sense; it may change again as we continue
      // to experiment with balancing document and node numbers within
      // that value.
      return new XString("N" + Integer.toHexString(which).toUpperCase());
    }
    else
      return XString.EMPTYSTRING;
  }
View Full Code Here

Examples of com.sun.org.apache.xpath.internal.objects.XString

    String s1 = m_arg0.execute(xctxt).str();
    String s2 = m_arg1.execute(xctxt).str();
    int index = s1.indexOf(s2);

    return (-1 == index)
           ? XString.EMPTYSTRING : new XString(s1.substring(0, index));
  }
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.