Class TagMatcher


  • public class TagMatcher
    extends java.lang.Object
    Uses smart matching to match tags
    Author:
    Kristian Rosenvold
    • Constructor Summary

      Constructors 
      Constructor Description
      TagMatcher​(java.lang.Iterable<java.lang.String> allowedValues)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.String tagName)
      Examines if this tag matches the values in this matcher.
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TagMatcher

        public TagMatcher​(java.lang.Iterable<java.lang.String> allowedValues)
    • Method Detail

      • matches

        public boolean matches​(java.lang.String tagName)
        Examines if this tag matches the values in this matcher. Please note that this is case-insensitive, which is ok for html and xhtml, but not really for xml
        Parameters:
        tagName - The tag name to look for
        Returns:
        true if the tag name matches this mach
      • size

        public int size()