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

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

public class ElementQNameIterator
extends FilterIterator {
    private QName qName;

    public ElementQNameIterator(Iterator iterator, QName qName) {
        super(iterator);
        this.qName = qName;
    }

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

