private List<Error> validateStep(AbstractMetadataStepModel pModel)
{
List<Error> errorList = new List<Error>();
if (pModel != null)
{
foreach (MetadataAttributeModel m in pModel.MetadataAttributeModels)
{
List<Error> temp = validateAttribute(m);
if (temp != null)
errorList.AddRange(temp);
}
}
if (errorList.Count == 0)
return null;
else
return errorList;
}