1 27 package org.htmlparser; 28 29 import org.htmlparser.lexer.Page; 30 import org.htmlparser.util.NodeList; 31 import org.htmlparser.util.ParserException; 32 import org.htmlparser.visitors.NodeVisitor; 33 34 43 public interface Node 44 extends 45 Cloneable 46 { 47 67 public abstract String toPlainTextString (); 68 69 79 public abstract String toHtml (); 80 81 94 public abstract String toString (); 95 96 132 public abstract void collectInto (NodeList list, NodeFilter filter); 133 134 138 public abstract int elementBegin (); 139 140 144 public abstract int elementEnd (); 145 146 151 public abstract int getStartPosition (); 152 153 157 public abstract void setStartPosition (int position); 158 159 165 public abstract int getEndPosition (); 166 167 171 public abstract void setEndPosition (int position); 172 173 177 public Page getPage (); 178 179 183 public void setPage (Page page); 184 188 public abstract void accept (NodeVisitor visitor); 189 190 200 public abstract Node getParent (); 201 202 206 public abstract void setParent (Node node); 207 208 213 public abstract NodeList getChildren (); 214 215 219 public abstract void setChildren (NodeList children); 220 221 226 public String getText (); 227 228 232 public void setText (String text); 233 234 246 public void doSemanticAction () 247 throws 248 ParserException; 249 250 254 313 public Object clone () 314 throws 315 CloneNotSupportedException ; 316 } 317 | Popular Tags |