class Suggestion {

    /** index name. */
    private final String name;
    /** freetext search suggestions. */
    private String[] freetext;
    /** references search suggestions. */
    private String[] refs;
    /** definitions search suggestions. */
    private String[] defs;

    /**
     * Create a new suggestion.
     * @param name index name.
     */
    public Suggestion(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String[] getFreetext() {
        return freetext;
    }

    public String[] getRefs() {
        return refs;
    }

    public String[] getDefs() {
        return defs;
    }

    public void setFreetext(String[] freetext) {
        this.freetext = freetext;
    }

    public void setRefs(String[] refs) {
        this.refs = refs;
    }

    public void setDefs(String[] defs) {
        this.defs = defs;
    }

    /**
     * @return true if at least one of the properties has some content, false otherwise
     */
    public boolean isUsable() {<FILL_FUNCTION_BODY>}
}

        return (freetext != null && freetext.length > 0)
                || (defs != null && defs.length > 0)
                || (refs != null && refs.length > 0);
    
<no_super_class>