/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Object
 *  java.lang.String
 *  java.util.Iterator
 */
package org.dom4j.tree;

import java.util.Iterator;
import org.dom4j.Element;
import org.dom4j.tree.FilterIterator;

public class ElementNameIterator
extends FilterIterator {
    private String name;

    public ElementNameIterator(Iterator iterator, String string2) {
        super(iterator);
        this.name = string2;
    }

    @Override
    protected boolean matches(Object object) {
        if (object instanceof Element) {
            Element element = (Element)object;
            return this.name.equals((Object)element.getName());
        }
        return false;
    }
}

