commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmi...@apache.org
Subject cvs commit: jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/dom DOMNodeIterator.java
Date Sat, 10 Aug 2002 01:48:37 GMT
dmitri      2002/08/09 18:48:36

  Modified:    jxpath/src/java/org/apache/commons/jxpath/ri/model/dom
                        DOMNodeIterator.java
  Log:
  Removed commented out code
  
  Revision  Changes    Path
  1.4       +4 -98     jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodeIterator.java
  
  Index: DOMNodeIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jxpath/src/java/org/apache/commons/jxpath/ri/model/dom/DOMNodeIterator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DOMNodeIterator.java	26 Apr 2002 01:00:38 -0000	1.3
  +++ DOMNodeIterator.java	10 Aug 2002 01:48:36 -0000	1.4
  @@ -178,98 +178,4 @@
       private boolean testChild(){
           return DOMNodePointer.testNode(parent, child, nodeTest);
       }
  -/*
  -    public NodePointer getNodePointer(){
  -        if (child == null){
  -            if (!setPosition(1)){
  -                return null;
  -            }
  -            position = 0;
  -        }
  -
  -        if (children){
  -            return new DOMNodePointer(parent, child);
  -        }
  -        else {
  -            return new DOMNodePointer(parent.getParent(), child);
  -        }
  -    }
  -
  -    public int getPosition(){
  -        return position;
  -    }
  -
  -    public boolean setPosition(int position){
  -        while (this.position < position){
  -            if (!next()){
  -                return false;
  -            }
  -        }
  -        while (this.position > position){
  -            if (!previous()){
  -                return false;
  -            }
  -        }
  -//        System.err.println(getNodePointer().asPath() + " SET POSITION: " + position);
  -        return true;
  -    }
  -
  -    private boolean previous(){
  -        position--;
  -        if (!reverse){
  -            child = child.getPreviousSibling();
  -            while (child != null && !testChild()){
  -                child = child.getPreviousSibling();
  -            }
  -        }
  -        else {
  -            child = child.getNextSibling();
  -            while (child != null && !testChild()){
  -                child = child.getNextSibling();
  -            }
  -        }
  -        return child != null;
  -    }
  -
  -    private boolean next(){
  -        position++;
  -        if (!reverse){
  -            if (position == 1){
  -                if (children){
  -                    child = node.getFirstChild();
  -                }
  -                else {
  -                    child = node.getNextSibling();
  -                }
  -            }
  -            else {
  -                child = child.getNextSibling();
  -            }
  -            while (child != null && !testChild()){
  -                child = child.getNextSibling();
  -            }
  -        }
  -        else {
  -            if (position == 1){
  -                if (children){
  -                    child = node.getLastChild();
  -                }
  -                else {
  -                    child = node.getPreviousSibling();
  -                }
  -            }
  -            else {
  -                child = child.getPreviousSibling();
  -            }
  -            while (child != null && !testChild()){
  -                child = child.getPreviousSibling();
  -            }
  -        }
  -        return child != null;
  -    }
  -
  -    private boolean testChild(){
  -        return DOMNodePointer.testNode(parent, child, nodeTest);
  -    }
  -    */
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message