1 27 package org.htmlparser.tags; 28 29 import org.htmlparser.util.NodeList; 30 31 34 public class SelectTag extends CompositeTag 35 { 36 39 private static final String [] mIds = new String [] {"SELECT"}; 40 41 44 private static final String [] mEnders = new String [] {"INPUT", "TEXTAREA", "SELECT"}; 45 46 49 private static final String [] mEndTagEnders = new String [] {"FORM", "BODY", "HTML"}; 50 51 54 public SelectTag () 55 { 56 } 57 58 62 public String [] getIds () 63 { 64 return (mIds); 65 } 66 67 71 public String [] getEnders () 72 { 73 return (mEnders); 74 } 75 76 80 public String [] getEndTagEnders () 81 { 82 return (mEndTagEnders); 83 } 84 85 public OptionTag [] getOptionTags () 86 { 87 NodeList list; 88 OptionTag[] ret; 89 90 list = searchFor (OptionTag.class, true); 91 ret = new OptionTag[list.size()]; 92 list.copyToNodeArray (ret); 93 94 return (ret); 95 } 96 } 97 | Popular Tags |