/**
* Returns all the types in OCL lib and QVT lib
*/
@SuppressWarnings("unchecked")
private List<Type> getOclQvtTypes() {
Package pack = null;
for (Iterator iter = oclStdLib.getRoots().iterator(); iter.hasNext()
&& pack == null;) {
Object obj = iter.next();
if (obj instanceof Package)
pack = (Package) obj;
}
Library lib = null;
for (Iterator iter = qvtStdLib.getRoots().iterator(); iter.hasNext()
&& lib == null;) {
Object obj = iter.next();
if (obj instanceof Library)
lib = (Library) obj;
}
List<Type> types = new ArrayList<Type>();
types.addAll(pack.getOwnedType());
types.addAll(lib.getOwnedType());
return types;
}