static protected EPackage.Registry builtInModelRegistry = null;
static public EPackage.Registry getBuiltInModelRegistry() {
if (builtInModelRegistry == null) {
EPackageRegistryImpl registry = new EPackageRegistryImpl();
for (Iterator iter = TypeHelperImpl.getBuiltInModels().iterator(); iter.hasNext();) {
EPackage ePackage = (EPackage)iter.next();
registry.put(ePackage.getNsURI(), ePackage);
}
registry.put(EcorePackage.eNS_URI, EcorePackage.eINSTANCE);
registry.put(XMLTypePackage.eNS_URI, XMLTypePackage.eINSTANCE);
registry.put(ChangePackage.eNS_URI, ChangePackage.eINSTANCE);
registry.put(XMLNamespacePackage.eNS_URI, XMLNamespacePackage.eINSTANCE);
registry.put(SDOPackage.eNS_URI, SDOPackage.eINSTANCE);
builtInModelRegistry = registry;
}
return builtInModelRegistry;
}