Examples of num()


Examples of com.sun.org.apache.xpath.internal.objects.XString.num()

    {
      // %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();
    }
 
    /**
     * Get the value of a node as a string.
     * @param n Node to be converted to a string.  May be null.
View Full Code Here

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

        break;
      case XObject.CLASS_BOOLEAN:
        value = object.bool() ? Boolean.TRUE : Boolean.FALSE;
        break;
      case XObject.CLASS_NUMBER:
        value = new Double(object.num());
        break;
      default:
        value = object.str();
        break;
      }
View Full Code Here

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

          break;
        case XObject.CLASS_BOOLEAN:
          value = object.bool() ? Boolean.TRUE : Boolean.FALSE;
          break;
        case XObject.CLASS_NUMBER:
          value = new Double(object.num());
          break;
        default:
          value = object.str();
          break;
      }
View Full Code Here

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

      XObject score = m_mainExp.execute(xctxt);

      if (DEBUG_MATCHES)
      {
        DTM dtm = xctxt.getDTM(context);
        System.out.println("score: " + score.num() + " for "
                           + dtm.getNodeName(context) + " for xpath "
                           + this.getPatternString());
      }

      return score.num();
View Full Code Here

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

        System.out.println("score: " + score.num() + " for "
                           + dtm.getNodeName(context) + " for xpath "
                           + this.getPatternString());
      }

      return score.num();
    }
    finally
    {
      xctxt.popCurrentNode();
      xctxt.popCurrentExpressionNode();
View Full Code Here

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

            return xobj.str();
          else if(javaClass == Boolean.TYPE)
            return new Boolean(xobj.bool());
          else
          {
            return convertDoubleToNumber(xobj.num(), javaClass);
          }
        }
        // break; Unreachable
       
      case XObject.CLASS_STRING:
View Full Code Here

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

          }
          else if(javaClass == Boolean.TYPE)
            return new Boolean(xobj.bool());
          else
          {
            return convertDoubleToNumber(xobj.num(), javaClass);
          }
        }
        // break; Unreachable
       
      case XObject.CLASS_RTREEFRAG:
View Full Code Here

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

          {
            return new Boolean(xobj.bool());
          }
          else if(javaClass.isPrimitive())
          {
            return convertDoubleToNumber(xobj.num(), javaClass);
          }
          else
          {
            DTMIterator iter = ((XRTreeFrag) xobj).asNodeIterator();
            int rootHandle = iter.nextNode();
View Full Code Here

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

          {
            return new Boolean(xobj.bool());
          }
          else if(javaClass.isPrimitive())
          {
            return convertDoubleToNumber(xobj.num(), javaClass);
          }
          else
          {
            DTMIterator iter = xobj.iter();
            int childHandle = iter.nextNode();
View Full Code Here

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

                Vector vector = new Vector();
                Object resultObject = null;
                if ( result.getType()== XObject.CLASS_BOOLEAN ) {
                    resultObject = new Boolean( result.bool());
                } else if ( result.getType()== XObject.CLASS_NUMBER ) {
                    resultObject = new Double( result.num());
                } else if ( result.getType()== XObject.CLASS_STRING ) {
                    resultObject = result.str();
                }

                vector.add( resultObject );
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.