class ColumnTitleValidator implements Validator<String> {

    private Table table;
    private boolean allowNoTitle;

    public ColumnTitleValidator(Table table) {
        this(table, false);
    }

    public ColumnTitleValidator(Table table, boolean allowNoTitle) {
        this.table = table;
        this.allowNoTitle = allowNoTitle;
    }

    @Override
    public void validate(Problems prblms, String string, String t) {<FILL_FUNCTION_BODY>}

    @Override
    public Class<String> modelType() {
        return String.class;
    }

    public boolean isAllowNoTitle() {
        return allowNoTitle;
    }

    public void setAllowNoTitle(boolean allowNoTitle) {
        this.allowNoTitle = allowNoTitle;
    }

    public Table getTable() {
        return table;
    }

    public void setTable(Table table) {
        this.table = table;
    }
}

        if (!allowNoTitle && (t == null || t.isEmpty())) {
            prblms.add(NbBundle.getMessage(ColumnTitleValidator.class, "ColumnTitleValidator.title.empty"));
        } else if (table.hasColumn(t)) {
            prblms.add(NbBundle.getMessage(ColumnTitleValidator.class, "ColumnTitleValidator.title.repeated"));
        }
    
<no_super_class>