Examples of eAllContents()


Examples of org.eclipse.uml2.Package.eAllContents()

                (Package)EcoreUtil.getObjectByType(
                    resource.getContents(),
                    UML2Package.eINSTANCE.getPackage());
            if (model != null)
            {
                for (final TreeIterator elementIterator = model.eAllContents();
                    elementIterator.hasNext() && modelElement == null;)
                {
                    final Object object = elementIterator.next();
                    if (pred.evaluate(object))
                    {
View Full Code Here

Examples of org.eclipse.uml2.uml.Constraint.eAllContents()

        out(it.next().getClass().toString());
      }

    }
    Constraint invariant = helper.createInvariant("x<5");
    Iterator<EObject> it = invariant.eAllContents();
    while (it.hasNext()){
      EObject o = it.next();
      out(o.getClass().toString());
      if ( o instanceof ASTNode ){
        out("found AST Node" + ((ASTNode) o).getStartPosition());
View Full Code Here

Examples of org.openiaml.model.model.InternetApplication.eAllContents()

        resetInferenceCache();
        infer(root, true, reloader);
       
        // now iterate over its contents       
        handleEObject(root, rc);
        TreeIterator<EObject> it = root.eAllContents();
        while (it.hasNext()) {
          handleEObject(it.next(), rc);
        }
      } catch (ModelLoadException e) {
        // ignore
View Full Code Here

Examples of org.openiaml.model.model.InternetApplication.eAllContents()

   
    // get the rewritten model
    InternetApplication model = (InternetApplication) action.getModel();
   
    // none of the contained elements should have an ID containing '.' or 'model'
    Iterator<EObject> it = model.eAllContents();
    while (it.hasNext()) {
      EObject obj = it.next();
      if (obj instanceof GeneratedElement) {
        assertFalse("Object " + obj + " contains an invalid ID", ((GeneratedElement) obj).getId().contains("."));
        assertFalse("Object " + obj + " contains an invalid ID", ((GeneratedElement) obj).getId().contains("model"));
View Full Code Here

Examples of org.xtext.mongobeans.mongoBeans.MongoFile.eAllContents()

      _builder.append("}");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      MongoFile _parse = this._parseHelper.parse(_builder);
      TreeIterator<EObject> _eAllContents = _parse.eAllContents();
      final Iterator<MongoBean> beans = Iterators.<MongoBean>filter(_eAllContents, MongoBean.class);
      QualifiedName _create = QualifiedName.create("pkg", "Foo");
      MongoBean _head = IteratorExtensions.<MongoBean>head(beans);
      QualifiedName _fullyQualifiedName = this._iQualifiedNameProvider.getFullyQualifiedName(_head);
      Assert.assertEquals(_create, _fullyQualifiedName);
View Full Code Here

Examples of org.xtext.mongobeans.mongoBeans.MongoFile.eAllContents()

      _builder.append("char character");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      MongoFile _parse = this._parseHelper.parse(_builder);
      TreeIterator<EObject> _eAllContents = _parse.eAllContents();
      final Iterator<MongoProperty> properties = Iterators.<MongoProperty>filter(_eAllContents, MongoProperty.class);
      MongoProperty _head = IteratorExtensions.<MongoProperty>head(properties);
      this._validationTestHelper.assertError(_head, MongoBeansPackage.Literals.MONGO_PROPERTY, MongoBeansValidator.ILLEGAL_TYPE);
      MongoProperty _last = IteratorExtensions.<MongoProperty>last(properties);
      this._validationTestHelper.assertError(_last, MongoBeansPackage.Literals.MONGO_PROPERTY, MongoBeansValidator.ILLEGAL_TYPE);
View Full Code Here

Examples of org.xtext.mongobeans.mongoBeans.MongoFile.eAllContents()

      _builder.append("String dbObject");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      MongoFile _parse = this._parseHelper.parse(_builder);
      TreeIterator<EObject> _eAllContents = _parse.eAllContents();
      Iterator<MongoProperty> _filter = Iterators.<MongoProperty>filter(_eAllContents, MongoProperty.class);
      final MongoProperty property = IteratorExtensions.<MongoProperty>head(_filter);
      this._validationTestHelper.assertError(property, MongoBeansPackage.Literals.MONGO_PROPERTY, MongoBeansValidator.ILLEGAL_PROPERTY_NAME);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
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.