class UUIDPresent implements AISValidation {

    @Override
    public void validate(AkibanInformationSchema ais, AISValidationOutput output) {
        for(Table t : ais.getTables().values()) {
            if(t.getUuid() == null) {
                output.reportFailure(new AISValidationFailure(missingTable(t)));
            }
            for(Column c: t.getColumnsIncludingInternal()) {
                if(c.getUuid() == null) {
                    output.reportFailure(new AISValidationFailure(missingColumn(t, c)));
                }
            }
        }
    }

}