Examples of str()


Examples of org.apache.xpath.objects.XObject.str()

         else
            ps = nk.name;

         IndexQuery iq;
         IndexPattern pattern = new IndexPattern(symbols, ps, nsMap);
         String value = obj.str();

         switch ( op ) {
            case IndexQuery.NEQ: iq = new IndexQueryNEQ(pattern, value); break;
            case IndexQuery.EQ:  iq = new IndexQueryEQ(pattern, value)break;
            case IndexQuery.LEQ: iq = new IndexQueryLEQ(pattern, value); break;
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

        // Return a list of the items contained in the query results.
        ArrayList itemRefs = new ArrayList();
        if (nodeList == null)
        // result is a single, non-node value (ex. it's an atomic number);
        // in this case, just take the string value.
            itemRefs.add(xOb.str());
        else {
            for (int i = 0; i < numItems; i++)
                itemRefs.add(nodeList.item(i));
        }
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

        return null;
       
      case XObject.CLASS_BOOLEAN:
        {
          if(javaClass == java.lang.String.class)
            return xobj.str();
          else
            return xobj.bool() ? Boolean.TRUE : Boolean.FALSE;
        }
        // break; Unreachable
      case XObject.CLASS_NUMBER:
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

        }
        // break; Unreachable
      case XObject.CLASS_NUMBER:
        {
          if(javaClass == java.lang.String.class)
            return xobj.str();
          else if(javaClass == Boolean.TYPE)
            return xobj.bool() ? Boolean.TRUE : Boolean.FALSE;
          else
          {
            return convertDoubleToNumber(xobj.num(), javaClass);
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

       
      case XObject.CLASS_STRING:
        {
          if((javaClass == java.lang.String.class) ||
             (javaClass == java.lang.Object.class))
            return xobj.str();
          else if(javaClass == Character.TYPE)
          {
            String str = xobj.str();
            if(str.length() > 0)
              return new Character(str.charAt(0));
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

          if((javaClass == java.lang.String.class) ||
             (javaClass == java.lang.Object.class))
            return xobj.str();
          else if(javaClass == Character.TYPE)
          {
            String str = xobj.str();
            if(str.length() > 0)
              return new Character(str.charAt(0));
            else
              return null; // ??
          }
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

            DTM dtm = iter.getDTM(rootHandle);
            return dtm.getNode(dtm.getFirstChild(rootHandle));
          }
          else if(javaClass == java.lang.String.class)
          {
            return xobj.str();
          }
          else if(javaClass == Boolean.TYPE)
          {
            return xobj.bool() ? Boolean.TRUE : Boolean.FALSE;
          }
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

            else
              return null;
          }
          else if(javaClass == java.lang.String.class)
          {
            return xobj.str();
          }
          else if(javaClass == Boolean.TYPE)
          {
            return xobj.bool() ? Boolean.TRUE : Boolean.FALSE;
          }
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

                                throw new XPathException(null,"XPath result cannot contain both values and nodes"); // $NLS-AbstractXercesDriver.AnXPathresultcannotcontainbothval.2-1$
                            }
                            if(result!=null) {
                                throw new XPathException(null,"XPath exception cannot return multiple values"); // $NLS-AbstractXercesDriver.AnXPathExceptioncannotreturnmulti.2-1$
                            }
                            result = new XResultUtils.StringValue(res.str());
                        } break;
                        case XObject.CLASS_NODESET: {
                            if(result!=null) {
                                throw new XPathException(null,"XPath result cannot contain both values and nodes"); // $NLS-AbstractXercesDriver.AnXPathresultcannotcontainbothval.3-1$
                            }
View Full Code Here

Examples of org.apache.xpath.objects.XObject.str()

                                throw new XPathException(null,"XPath result cannot contain both values and nodes"); // $NLS-AbstractXercesDriver.AnXPathresultcannotcontainbothval.2-1$
                            }
                            if(result!=null) {
                                throw new XPathException(null,"XPath exception cannot return multiple values"); // $NLS-AbstractXercesDriver.AnXPathExceptioncannotreturnmulti.2-1$
                            }
                            result = new XResultUtils.StringValue(res.str());
                        } break;
                        case XObject.CLASS_NODESET: {
                            if(result!=null) {
                                throw new XPathException(null,"XPath result cannot contain both values and nodes"); // $NLS-AbstractXercesDriver.AnXPathresultcannotcontainbothval.3-1$
                            }
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.