Examples of eAllContents()


Examples of net.opengis.wps10.ProcessOfferingsType.eAllContents()

    }

    public ExecuteProcessRequest createExecuteProcessRequest() throws UnsupportedOperationException
    {
        ProcessOfferingsType processOfferings = getCapabilities().getProcessOfferings();
        if ((processOfferings == null) || !processOfferings.eAllContents().hasNext())
        {
            throw new UnsupportedOperationException(
                "Server does not specify any processes to execute. Cannot be performed.");
        }
View Full Code Here

Examples of org.eclipse.bpmn2.di.BPMNDiagram.eAllContents()

          featureProvider.link(diagram, d);
        }

        // First: add all IDs to our ID mapping table
        for (BPMNDiagram d : diagrams) {
          TreeIterator<EObject> iter = d.eAllContents();
          while (iter.hasNext()) {
            ModelUtil.addID( iter.next() );
          }
        }
       
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAllContents()

   *            the Requirement to delete.
   */
  public void deleteRequirement(NamedElement e) {
    deleteAssociatedStereotype(e, SYSML_REQUIREMENT);
    final EObject root = getRootContainer(e);
    for (final Iterator<EObject> iterator = root.eAllContents(); iterator.hasNext();) {
      final EObject object = iterator.next();
      if (object instanceof Abstraction) {
        final Element supplier = ((Abstraction)object).getSupplier(e.getName());
        if (supplier != null) {
          Stereotype s = ((Abstraction)object).getAppliedStereotype("SysML::Requirements::Satisfy");
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAllContents()

     
      // handle root object
      handleEObject(state, model);
     
      // iterate through its contents
      Iterator<EObject> it = model.eAllContents();
      while (it.hasNext()) {
        EObject obj = it.next();
       
        handleEObject(state, obj);
      }
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAllContents()

     EObject root = ModelLoader.load("test.modeldoc");
    
     Map<String,String> foundModelElements = new HashMap<String,String>();
    
     // find all md:JavadocTagElement
     Iterator<EObject> it = root.eAllContents();
     while (it.hasNext()) {
       EObject obj = it.next();
      
       if (obj instanceof JavadocTagElement) {
         JavadocTagElement tag = (JavadocTagElement) obj;
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAllContents()

      // load the file
      EObject root = ModelLoader.load(f.getAbsolutePath());     
      assertNotNull("Could not load file '" + f + "'", root);
     
      // now find unused features
      TreeIterator<EObject> it = root.eAllContents();
      while (it.hasNext()) {
        EObject e = it.next();
        EClass cls = e.eClass();
        // check all attributes
        for (EAttribute attr : cls.getEAllAttributes()) {
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAllContents()

    return stereotype.getStereotypeApplications();
  }
 
  public static boolean hasTaggedValues(Stereotype st, Element el) {
    EObject test = el.getStereotypeApplication(st);
    TreeIterator<EObject> dafdfa = test.eAllContents();
   
   
    //Element adf = new Element();
    //adf.getValue(stereotype, propertyName)
   
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAllContents()

            public boolean matches(Object object) {
                if (object instanceof EObject) {
                    int count = 0;
                    EObject eObj = (EObject) object;
                    if (all) {
                        TreeIterator<EObject> contents = eObj.eAllContents();
                        while (contents.hasNext()) {
                            if (filter.matches(contents.next())) {
                                count++;
                                if (!all)
                                    break;
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAllContents()

      for (EObject eobject : list) {
        out(eobject.getClass().getName());
      }

      EObject eobject = resource.getContents().get(0);
      out(eobject.eAllContents().toString());

      packageResult = (org.eclipse.uml2.uml.Package) EcoreUtil
          .getObjectByType(resource.getContents(),
              UMLPackage.Literals.PACKAGE);
    } catch (WrappedException we) {
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eAllContents()

  }

  public void highlight(ResourceExpression expr, IHighlightedPositionAcceptor acceptor) {
    EObject resourceExpr = expr.getResourceExpr();
    if(resourceExpr != null) {
      TreeIterator<EObject> all = resourceExpr.eAllContents();
      int counter = 0;
      while(all.hasNext()) {
        counter++;
        EObject x = all.next();
        if(x instanceof LiteralNameOrReference)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.