[Htmlparser-cvs] htmlparser/src/org/htmlparser Node.java,1.53,1.54
Brought to you by:
derrickoswald
|
From: Derrick O. <der...@us...> - 2005-10-26 22:01:36
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11299/src/org/htmlparser Modified Files: Node.java Log Message: Incorporate patch #1338534 Support get first/last child, previous/next sibling from Ian Macfarlane. No unit tests. Index: Node.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/Node.java,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** Node.java 24 Apr 2005 17:48:27 -0000 1.53 --- Node.java 26 Oct 2005 22:01:23 -0000 1.54 *************** *** 205,209 **** */ void setChildren (NodeList children); ! /** * Returns the text of the node. --- 205,237 ---- */ void setChildren (NodeList children); ! ! /** ! * Get the first child of this node. ! * @return The first child in the list of children contained by this node, ! * <code>null</code> otherwise. ! */ ! Node getFirstChild (); ! ! /** ! * Get the last child of this node. ! * @return The last child in the list of children contained by this node, ! * <code>null</code> otherwise. ! */ ! Node getLastChild (); ! ! /** ! * Get the previous sibling to this node. ! * @return The previous sibling to this node if one exists, ! * <code>null</code> otherwise. ! */ ! Node getPreviousSibling (); ! ! /** ! * Get the next sibling to this node. ! * @return The next sibling to this node if one exists, ! * <code>null</code> otherwise. ! */ ! Node getNextSibling (); ! /** * Returns the text of the node. |