padre-master/org.eclipse.epsilon.eol.engine/src/org/eclipse/epsilon/eol/compile/m3/Metamodel.java
package org.eclipse.epsilon.eol.compile.m3;

import java.util.ArrayList;
import java.util.List;

public class Metamodel extends Package {

	protected List<String> warnings = new ArrayList<String>();
	protected List<String> errors = new ArrayList<String>();
	
	public List<String> getWarnings() {
		return warnings;
	}
	
	public List<String> getErrors() {
		return errors;
	}
	
	public MetaClass getMetaClass(String name) {
		for (MetaType type : metaTypes) {
			if (type instanceof MetaClass && type.getName().equals(name)) {
				return (MetaClass) type;
			}
		}
		return null;
	}
	
}
