1 19 20 33 package org.htmlparser.scanners; 34 35 import org.htmlparser.tags.OptionTag; 36 import org.htmlparser.tags.Tag; 37 import org.htmlparser.tags.data.CompositeTagData; 38 import org.htmlparser.tags.data.TagData; 39 40 public class OptionTagScanner extends CompositeTagScanner 41 { 42 private static final String MATCH_NAME[] = { "OPTION" }; 43 private static final String [] ENDERS = { 44 }; 45 private static final String [] END_TAG_ENDERS = { "SELECT", "BODY", "HTML" }; 46 47 public OptionTagScanner() 48 { 49 super(MATCH_NAME[0], ENDERS, END_TAG_ENDERS, false); 50 } 51 52 public OptionTagScanner(String filter) 53 { 54 super(filter, MATCH_NAME, ENDERS, END_TAG_ENDERS, false); 55 } 56 57 public String [] getID() 58 { 59 return MATCH_NAME; 60 } 61 62 public Tag createTag(TagData tagData, CompositeTagData compositeTagData) 63 { 64 return new OptionTag(tagData, compositeTagData); 65 } 66 } | Popular Tags |