private void checkPropertyType(ModelDeclaration model) throws IOException {
assert model != null;
for (PropertyDeclaration prop : model.getDeclaredProperties()) {
if (isValueField(prop)) {
Type type = prop.getType();
if ((type instanceof BasicType) == false) {
throw new IOException(MessageFormat.format(
"Type \"{0}\" can not map to CSV field: {1}.{2} ",
type,
prop.getOwner().getName().identifier,