// Each element must be a string.
while(enumFieldIter.hasNext()) {
if(! (enumFieldIter.next() instanceof String)) {
throw
new ConcordiaException(
"An " +
ENUM_SCHEMA_FIELD +
" entry is not a string: " +
enumField.toString());
}
}
}
// It is not a JSON array.
else {
throw
new ConcordiaException(
"The " +
ENUM_SCHEMA_FIELD +
" field list must be a JSON array: " +
enumField.toString());
}