public boolean hasAttribute(String name) {
        for (int i = 0; i < attributes.length; i++)
            if (name.equals(attributes[i].name))
                return true;
        return false;
    }