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