public boolean satisfy(TagNode tagNode) {
        if (tagNode != null ) {
            for(Map.Entry<String, String>entry: tagNode.getAttributes().entrySet()) {
                if ( (attNameRegex == null || attNameRegex.matcher(entry.getKey()).find()) && (attValueRegex == null || attValueRegex.matcher( entry.getValue() ).find())) {
                    return true;
                }
            }
        }
        return false;
    }