PropertyDefinitionList propertyDefinitionList = (PropertyDefinitionList) propertyDefinition;
for (Property prop : propertyList.getList()) {
checkProperty(messages, propertyDefinitionList.getMemberDefinition(), prop);
}
} else if (property instanceof PropertyMap) {
PropertyMap propertyMap = (PropertyMap) property;
PropertyDefinitionMap propertyDefinitionMap = (PropertyDefinitionMap) propertyDefinition;
for (Map.Entry<String,Property> entry : propertyMap.getMap().entrySet()) {
Property prop = entry.getValue();
PropertyDefinition definition = propertyDefinitionMap.get(name);
checkProperty(messages,definition,prop);
}
}