isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case INDEX_ID:
return isSetIndex_id();
case INDEX_NAME:
return isSetIndex_name();
case SCHEMA_ID:
return isSetSchema_id();
case SCHEMA_NAME:
return isSetSchema_name();
case FIELDS:
return isSetFields();
case COMMENT:
return isSetComment();
case INDEX_PARAMS:
return isSetIndex_params();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}