class AttributeName {

    /*
     * NOTE it is VERY important that an AttributeName does NOT contain a TemplateMode, because there is a type
     * of AttributeName (TextAttributeName) that is used for 3 different template modes: TEXT, JAVASCRIPT and CSS
     */

    protected final String prefix;
    protected final String attributeName;
    protected final String[] completeAttributeNames;
    private final int h;





    protected AttributeName(final String prefix, final String attributeName, final String[] completeAttributeNames) {

        super();

        if (attributeName == null || attributeName.trim().length() == 0) {
            throw new IllegalArgumentException("Attribute name cannot be null or empty");
        }

        // Prefix CAN be null (if the attribute is not prefixed)

        this.prefix = prefix;
        this.attributeName = attributeName;
        this.completeAttributeNames = completeAttributeNames;
        this.h = Arrays.hashCode(this.completeAttributeNames);

    }


    public String getAttributeName() {
        return this.attributeName;
    }

    public boolean isPrefixed() {
        return this.prefix != null;
    }

    public String getPrefix() {
        return this.prefix;
    }

    public String[] getCompleteAttributeNames() {
        return this.completeAttributeNames;
    }




    @Override
    public boolean equals(final Object o) {<FILL_FUNCTION_BODY>}




    @Override
    public int hashCode() {
        return this.h;
    }




    @Override
    public String toString() {
        final StringBuilder strBuilder = new StringBuilder();
        strBuilder.append('{');
        strBuilder.append(this.completeAttributeNames[0]);
        for (int i = 1; i < this.completeAttributeNames.length; i++) {
            strBuilder.append(',');
            strBuilder.append(this.completeAttributeNames[i]);
        }
        strBuilder.append('}');
        return strBuilder.toString();
    }

}


        if (this == o) {
            return true;
        }

        if (o == null) {
            return false;
        }

        if (!o.getClass().equals(this.getClass())) {
            return false;
        }

        final AttributeName that = (AttributeName) o;

        if (this.h != that.h) {
            return false;
        }

        if (!this.completeAttributeNames[0].equals(that.completeAttributeNames[0])) {
            // No need to check the other names as we have already checked the class
            return false;
        }

        return true;

    
<no_super_class>