[Htmlparser-cvs] htmlparser/src/org/htmlparser/nodeDecorators AbstractNodeDecorator.java,1.11,1.12
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-10-05 13:50:26
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/nodeDecorators In directory sc8-pr-cvs1:/tmp/cvs-serv9618/nodeDecorators Modified Files: AbstractNodeDecorator.java Log Message: Add bean like accessors for positions on Node, AbstractNode and AbstractNodeDecorator. Handle null page in Cursor. Add smartquotes mode in Lexer and CompositeTagScannerHelper. Add simple name constructor in Attribute. Remove emptyxmltag member, replace with computing accessors in TagNode. Removed ScriptScannerHelper and moved scanning logic to ScriptScanner. Reworked extractImageLocn in ImageScanner Implement extractXMLData in TagScanner. Made virtual tags zero length in TagData. Added push() to IteratorImpl. Added single node constructor to NodeList. Numerous and various test adjustments. Still 133 failures. Index: AbstractNodeDecorator.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/nodeDecorators/AbstractNodeDecorator.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** AbstractNodeDecorator.java 22 Sep 2003 02:39:59 -0000 1.11 --- AbstractNodeDecorator.java 5 Oct 2003 13:49:49 -0000 1.12 *************** *** 61,64 **** --- 61,100 ---- } + /** + * Gets the starting position of the node. + * @return The start position. + */ + public int getStartPosition () + { + return (delegate.getStartPosition ()); + } + + /** + * Sets the starting position of the node. + * @param position The new start position. + */ + public void setStartPosition (int position) + { + delegate.setStartPosition (position); + } + + /** + * Gets the ending position of the node. + * @return The end position. + */ + public int getEndPosition () + { + return (delegate.getEndPosition ()); + } + + /** + * Sets the ending position of the node. + * @param position The new end position. + */ + public void setEndPosition (int position) + { + delegate.setEndPosition (position); + } + public boolean equals(Object arg0) { return delegate.equals(arg0); |