Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags
In directory sc8-pr-cvs1:/tmp/cvs-serv29793/org/htmlparser/tags
Modified Files:
CompositeTag.java
Log Message:
Make SimpleNodeIterator extend NodeIterator and provide elements() method for CompositeTag.
As per request by Dhaval to rationalize (somewhat) the API.
Index: CompositeTag.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/CompositeTag.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** CompositeTag.java 12 May 2003 01:37:46 -0000 1.37
--- CompositeTag.java 18 May 2003 13:50:38 -0000 1.38
***************
*** 63,68 ****
return childTags;
}
!
! public String toPlainTextString() {
StringBuffer stringRepresentation = new StringBuffer();
for (SimpleNodeIterator e=children();e.hasMoreNodes();) {
--- 63,78 ----
return childTags;
}
!
! /**
! * Return the child tags as an iterator.
! * Equivalent to calling getChildren ().elements ().
! * @return An iterator over the children.
! */
! public SimpleNodeIterator elements()
! {
! return (getChildren ().elements ());
! }
!
! public String toPlainTextString() {
StringBuffer stringRepresentation = new StringBuffer();
for (SimpleNodeIterator e=children();e.hasMoreNodes();) {
|