[Htmlparser-developer] Composite Tags != Composite Pattern
Brought to you by:
derrickoswald
From: <tez...@ya...> - 2003-05-29 11:53:13
|
The CompositeTag is quite heavy on tasty [Australian for good] functionality. The way it seems to be implemented here is contrary to the 'Composite' Design Pattern. I'm having difficulty forming a composite of the whole document, say an abstract <PARSE_ROOT> object. Currently I'm doing a hack, knowing there is a table: See Node nodes [] = myParser.extractAllNodesThatAre(TableTag.class); TableTag table = (TableTag)nodes[0]; TableTag htmlComposite = (TableTag) nodes[0]; I need to do this to access the CompositeTag functionality. Is there a simpler way? Would it be useful to have a public CompositeTag getRootTag() {} in Parser? Terry. ===== ------------------------------------------------------------ Terry Alexis Lurie | 'Something witty that doesn't Freelance Computer Engineer | look good with variable United Kingdom | width fonts' - Most nerds __________________________________________________ Yahoo! Plus - For a better Internet experience http://uk.promotions.yahoo.com/yplus/yoffer.html |