code: def get_css_class(self, value):
          
          #print ('get_css_class for {0}'.format(value))
          for idx, pattern in enumerate(self.__patterns):
              if pattern.match(value) is not None:
                  #print ('matched rule {0} and returning {1}'.format(idx, self.__css_classes[idx]))
                  return self.__css_classes[idx]
          return self.__default
docs: Return the css class of first pattern that matches given value.
          If no rules match, the default css class will be returned (see the constructor)