Package org.apache.xpath.objects

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


          {
            return convertDoubleToNumber(xobj.num(), javaClass);
          }
          else
          {
            Node child = xobj.nodeset().nextNode();
            if(javaClass.isAssignableFrom(child.getClass()))
              return child;
            else
              return null;
          }
View Full Code Here


          if (lookupKey.equals(exprResult))
            return this.FILTER_ACCEPT;
        }
        else
        {
          NodeIterator nl = xuse.nodeset();
          Node useNode;
          short result = -1;
          /*
          We are walking through all the nodes in this nodeset
          rather than stopping when we find the one we're looking
View Full Code Here

      {
        value = m_selectExpression.execute(transformer.getXPathContext(),
                                                 sourceNode, this);
        if(value.getType() == XObject.CLASS_NODESET)
        {
          org.w3c.dom.traversal.NodeIterator iterator = value.nodeset();
          child = iterator.nextNode();
          if(null == child)
            return;
        }
        else
View Full Code Here

      if (rdebug)
        transformer.getTraceManager().fireSelectedEvent(sourceNode, this,
                                                        "test", selectPattern, selectResult);
     
      Vector keys = transformer.processSortKeys(this, sourceNode);
      NodeIterator sourceNodes = selectResult.nodeset();

      // Sort if we need to.
      if (null != keys)
        sourceNodes = sortNodes(xctxt, keys, sourceNodes);
View Full Code Here

  public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
  {

    Node context = xctxt.getCurrentNode();
    XObject obj = m_functionExpr.execute(xctxt);
    NodeIterator nl = obj.nodeset();
    XNumber score = SCORE_NONE;

    if (null != nl)
    {
      Node n;
View Full Code Here

      {
        value = m_selectExpression.execute(transformer.getXPathContext(),
                                                 sourceNode, this);
        if(value.getType() == XObject.CLASS_NODESET)
        {
          org.w3c.dom.traversal.NodeIterator iterator = value.nodeset();
          child = iterator.nextNode();
          if(null == child)
            return;
        }
        else
View Full Code Here

    KeyManager kmgr = transformer.getKeyManager();

    if (argIsNodeSet)
    {
      Hashtable usedrefs = null;
      NodeIterator ni = arg.nodeset();
      Node pos;
      UnionPathIterator upi = new UnionPathIterator();

      while (null != (pos = ni.nextNode()))
      {
View Full Code Here

      if (rdebug)
        transformer.getTraceManager().fireSelectedEvent(sourceNode, this,
                                                        "test", selectPattern, selectResult);
     
      Vector keys = transformer.processSortKeys(this, sourceNode);
      NodeIterator sourceNodes = selectResult.nodeset();

      // Sort if we need to.
      if (null != keys)
        sourceNodes = sortNodes(xctxt, keys, sourceNodes);
View Full Code Here

            }
            public boolean handlesNullPrefixes() {
                return false;
            }
        });
        Node root = list.nodeset().nextNode();
        if (root instanceof Element) {
            Element element = (Element) root;
            if (element == null) {
                return "";
            }
View Full Code Here

    XNodeSet nodes = new XNodeSet();
    NodeSet nodeSet = nodes.mutableNodeset();

    if (XObject.CLASS_NODESET == argType)
    {
      NodeIterator ni = arg.nodeset();
      StringVector usedrefs = null;
      Node pos = ni.nextNode();

      while (null != pos)
      {
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.