getFieldValue method
Get a field's value by fieldId
. Primitive types will be wrapped in the
appropriate "boxed" types.
Implementation
getFieldValue(int fieldID) {
switch (fieldID) {
case NAME:
return this.name;
case ID:
return this.id;
case OUTPUT_VAR:
return this.output_var;
case DESCRIPTION:
return this.description;
case PROFILES:
return this.profiles;
case BRANCH_INFO:
return this.branch_info;
case DEPENDENCIES:
return this.dependencies;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}