Package net.sourceforge.coffea.uml2.model.creation

Examples of net.sourceforge.coffea.uml2.model.creation.ModelServiceBuilder$Parser


    }
    return null;
  }

  public IElementService getElementService(String n) {
    IElementService ret = null;
    if (n != null) {
      if ((ret == null) && (types != null)) {
        ITypeService<?, ?> t;
        for (int i = 0; i < types.size(); i++) {
          t = types.get(i);
View Full Code Here


    }
    return ret;
  }

  public IElementService getElementHandler(Element el) {
    IElementService elH = null;
    if(el!=null) {
      String elFullName = ElementService.buildFullyQualifiedName(el);
      if(elFullName!=null) {
        getElementService(elFullName);
      }
View Full Code Here

  public IElementService getElementService(String n) {
    return getOperationService(n);
  }

  public IElementService getElementHandler(Element el) {
    IElementService elH = null;
    if(el!=null) {
      String elFullName = ElementService.buildFullyQualifiedName(el);
      if(elFullName!=null) {
        getElementService(elFullName);
      }
View Full Code Here

  }

  public void setUpUMLModelElement() {
    if (umlModelElement == null) {
      IModelService md = null;
      IGroupService parent = getContainerService();
      Package parentElement = null;
      if (parent instanceof IPackageService) {
        IPackageService pk = (IPackageService) parent;
        parentElement = pk.getUMLElement();
      } else if (parent instanceof IModelService) {
View Full Code Here

    return this.dependenciesServices;
  }

  public void setUpUMLModelElement() {
    if(umlModelElement==null) {
      IGroupService parent = getContainerService();
      String name = null;
      if((syntaxTreeNode!=null)&&(syntaxTreeNode.getName()!=null)) {
        name =
          syntaxTreeNode.getName().getFullyQualifiedName();
      }
View Full Code Here

  }

  public List<IElementService> getElementsHandlers() {
    List<IElementService> ret = new ArrayList<IElementService>();
    if(operationsServices!=null) {
      IMethodService op = null;
      for(int i=0 ; i<operationsServices.size() ; i++) {
        op = operationsServices.get(i);
        if(op!=null) {
          ret.add(op);
        }
View Full Code Here

            );
        }
        ClassDiagramBuilder worker =
          new ClassDiagramBuilder(workbenchWindow,sourceViewId);
        worker.setCoffeeName(proj.getName());
        IModelHandling model =
          worker.buildModelHandler(target);
        // Save the reversed model in the file system
        worker.save(
            target.getPath(),
            worker.getCoffeeName()
View Full Code Here

   * @param name
   * Name of the element to return the handler for
   * @return Element handler responding to the given element name
   */
  protected IElementHandling getElementHandler(String name) {
    IModelHandling mdl = null;
    IElementHandling rt = null;
    if(creator!=null) {
      mdl = creator.getModelHandler();
      if(mdl!=null) {
        rt = mdl.getElementHandler(name);
        if(rt==null) {
          IElementHandling defaultPackageElement =
            mdl.getElementHandler(
                IModelHandling.defaultPackageFileName
            );
          if(defaultPackageElement instanceof IPackageHandling) {
            rt =
              ((IPackageHandling)defaultPackageElement)
View Full Code Here

                lastSelectedElementHandler
                instanceof IPackageHandling
            ) {
              IPackageHandling packH =
                ((IPackageHandling)lastSelectedElementHandler);
              IModelHandling modelH = packH.getModelHandler();
              if(
                  (modelH!=null)
                  /*&&(
                      !modelH.getFullName().equals(
                          packH.getFullName()
 
View Full Code Here

   * @param prj
   * Project which class path must be resolved
   */
  protected void resolveClasspath(IJavaProject prj) {
    if(prj!=null) {
      IModelService mdH = getLatestModelServiceBuilt();
      if(mdH!=null) {
        try {
          IPackageFragment[] packs =
            prj.getPackageFragments();
          IPackageFragment pack = null;
          IClassFile[] classFiles = null;
          IClassFile classFile = null;
          IType type = null;
          String classFullName = null;
          if(packs!=null) {
            for(int i=0 ; i<packs.length ; i++) {
              pack = packs[i];
              if(
                  (pack!=null)
                  &&(
                      !(
                          pack.getKind()
                          ==IPackageFragmentRoot
                          .K_SOURCE
                      )
                  )
              ) {
                classFiles = pack.getClassFiles();
                if(classFiles!=null) {
                  for(int j=0 ; j<classFiles.length ; j++) {
                    classFile = classFiles[j];
                    if(classFile!=null) {
                      type = classFile.getType();
                      if(type!=null) {
                        classFullName =
                          ClassifierService
                          .buildFullyQualifiedName(
                              type
                          );
                        mdH.resolveTypeService(
                            classFullName
                        );
                      }
                    }
                  }
View Full Code Here

TOP

Related Classes of net.sourceforge.coffea.uml2.model.creation.ModelServiceBuilder$Parser

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.