org.eclipse.epsilon.eol.m3.Metamodel Maven / Gradle / Ivy
The newest version!
/*********************************************************************
* Copyright (c) 2008 The University of York.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.epsilon.eol.m3;
import java.util.ArrayList;
import java.util.List;
public class Metamodel extends Package {
protected List warnings = new ArrayList<>();
protected List errors = new ArrayList<>();
public List getWarnings() {
return warnings;
}
public List 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy