Package org.xtext.mongobeans.mongoBeans

Examples of org.xtext.mongobeans.mongoBeans.MongoBean


      boolean _not = (!_isMongoType);
      if (_not) {
        this.error("Only MongoBeans and mappable types are allowed", MongoBeansPackage.Literals.MONGO_PROPERTY__TYPE, MongoBeansValidator.ILLEGAL_TYPE);
      }
    } else {
      MongoBean _inlineType = it.getInlineType();
      boolean _equals_1 = Objects.equal(_inlineType, null);
      if (_equals_1) {
        this.error("Type must be set", MongoBeansPackage.Literals.ABSTRACT_FEATURE__NAME, MongoBeansValidator.MISSING_TYPE);
      }
    }
View Full Code Here


   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetInlineType(MongoBean newInlineType, NotificationChain msgs)
  {
    MongoBean oldInlineType = inlineType;
    inlineType = newInlineType;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MongoBeansPackage.MONGO_PROPERTY__INLINE_TYPE, oldInlineType, newInlineType);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

    return this._jvmTypesBuilder.<JvmOperation>operator_add(_members, _method);
  }
 
  protected JvmTypeReference getJvmType(final MongoProperty property) {
    JvmTypeReference _xifexpression = null;
    MongoBean _inlineType = property.getInlineType();
    boolean _notEquals = (!Objects.equal(_inlineType, null));
    if (_notEquals) {
      MongoBean _inlineType_1 = property.getInlineType();
      Set<EObject> _jvmElements = this.associations.getJvmElements(_inlineType_1);
      EObject _head = IterableExtensions.<EObject>head(_jvmElements);
      _xifexpression = this._typeReferenceBuilder.typeRef(((JvmDeclaredType) _head));
    } else {
      _xifexpression = property.getType();
View Full Code Here

      _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);
      QualifiedName _create_1 = QualifiedName.create("pkg", "Bar");
      MongoBean _last = IteratorExtensions.<MongoBean>last(beans);
      QualifiedName _fullyQualifiedName_1 = this._iQualifiedNameProvider.getFullyQualifiedName(_last);
      Assert.assertEquals(_create_1, _fullyQualifiedName_1);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

  public boolean _isLeaf(final MongoOperation operation) {
    return true;
  }
 
  public void _createChildren(final IOutlineNode parentNode, final MongoProperty property) {
    MongoBean _inlineType = property.getInlineType();
    boolean _notEquals = (!Objects.equal(_inlineType, null));
    if (_notEquals) {
      MongoBean _inlineType_1 = property.getInlineType();
      this.createNode(parentNode, _inlineType_1);
    }
  }
View Full Code Here

      this.createNode(parentNode, _inlineType_1);
    }
  }
 
  public boolean _isLeaf(final MongoProperty property) {
    MongoBean _inlineType = property.getInlineType();
    return Objects.equal(_inlineType, null);
  }
View Full Code Here

TOP

Related Classes of org.xtext.mongobeans.mongoBeans.MongoBean

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.