1 27 package org.htmlparser.tags; 28 29 32 public class TitleTag extends CompositeTag 33 { 34 37 private static final String [] mIds = new String [] {"TITLE"}; 38 39 42 private static final String [] mEnders = new String [] {"TITLE","BODY"}; 43 44 47 private static final String [] mEndTagEnders = new String [] {"HEAD", "HTML"}; 48 49 52 public TitleTag () 53 { 54 } 55 56 60 public String [] getIds () 61 { 62 return (mIds); 63 } 64 65 69 public String [] getEnders () 70 { 71 return (mEnders); 72 } 73 74 78 public String [] getEndTagEnders () 79 { 80 return (mEndTagEnders); 81 } 82 83 86 public String getTitle() 87 { 88 return toPlainTextString(); 89 } 90 91 public String toString() 92 { 93 return "TITLE: " + getTitle(); 94 } 95 } 96 | Popular Tags |