Package org.andromda.core.repository

Examples of org.andromda.core.repository.RepositoryFacadeException


            }
        }
        final URI resourceUri = URI.createURI(uri);
        if (resourceUri == null)
        {
            throw new RepositoryFacadeException("The path '" + uri + "' is not a valid URI");
        }
        return resourceUri;
    }
View Full Code Here


        try
        {
            model = resourceSet.createResource(EMFRepositoryFacadeUtils.createUri(uri));
            if (model == null)
            {
                throw new RepositoryFacadeException("'" + uri + "' is an invalid model");
            }
            model.load(this.getLoadOptions());
            EcoreUtil.resolveAll(model);
        }
        catch (final Exception exception)
        {
            throw new RepositoryFacadeException(exception);
        }
    }
View Full Code Here

        String[] modelUris,
        String[] moduleSearchPaths)
    {
        if (modelUris == null || modelUris.length == 0)
        {
            throw new RepositoryFacadeException("No model specified.");
        }
        final List moduleSearchPathList = new ArrayList();
        if (moduleSearchPaths != null)
        {
            moduleSearchPathList.addAll(Arrays.asList(moduleSearchPaths));
View Full Code Here

        {
            resource.save(null);
        }
        catch (IOException exception)
        {
            throw new RepositoryFacadeException("Could not save model", exception);
        }
    }
View Full Code Here

        // Just to be sure there is a valid "model" inside
        EObject modelPackage = (EObject) EcoreUtil.getObjectByType(model.getContents(), EcorePackage.eINSTANCE
                .getEObject());
        if (!(modelPackage instanceof Model))
        {
            throw new RepositoryFacadeException("Model '" + uri + "' is not a valid EMF UML2 model");
        }
    }
View Full Code Here

                this.modelFacade = (ModelAccessFacade) ComponentContainer.instance().newComponent(
                        UMLModelAccessFacade.class, ModelAccessFacade.class);
            }
            catch (final Throwable throwable)
            {
                throw new RepositoryFacadeException(throwable);
            }
        }
        if (this.model != null)
        {
            this.modelFacade.setModel(this.model);
View Full Code Here

TOP

Related Classes of org.andromda.core.repository.RepositoryFacadeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.