code: public boolean match( Artifact artifact )
          throws InvalidVersionSpecificationException
      {
          for ( Pattern pattern : patterns )
          {
              if ( pattern.match( artifact ) )
              {
                  for ( Pattern ignorePattern : ignorePatterns )
                  {
                      if ( ignorePattern.match( artifact ) )
                      {
                          return false;
                      }
                  }
                  return true;
              }
          }
          return false;
      }
docs: Check if artifact matches patterns.
  
  @throws InvalidVersionSpecificationException