1 27 package org.htmlparser.tags; 28 29 import org.htmlparser.scanners.StyleScanner; 30 31 34 public class StyleTag extends CompositeTag 35 { 36 39 private static final String [] mIds = new String [] {"STYLE"}; 40 41 44 private static final String [] mEndTagEnders = new String [] {"BODY", "HTML"}; 45 46 49 public StyleTag () 50 { 51 setThisScanner (new StyleScanner ()); 52 } 53 54 58 public String [] getIds () 59 { 60 return (mIds); 61 } 62 63 67 public String [] getEndTagEnders () 68 { 69 return (mEndTagEnders); 70 } 71 72 76 public String getStyleCode () 77 { 78 return (getChildrenHTML ()); 79 } 80 81 85 public String toString() 86 { 87 String guts; 88 StringBuffer ret; 89 90 ret = new StringBuffer (); 91 92 guts = toHtml (); 93 guts = guts.substring (1, guts.length () - 1); 94 ret.append ("Style node :\n"); 95 ret.append (guts); 96 ret.append ("\n"); 97 98 return (ret.toString ()); 99 } 100 } 101 | Popular Tags |