Package org.applause.lang.applauseDsl

Examples of org.applause.lang.applauseDsl.Attribute


   * <!-- end-user-doc -->
   * @generated
   */
  public void setHead(Attribute newHead)
  {
    Attribute oldHead = head;
    head = newHead;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.ENTITY_MEMBER_CALL_TAIL__HEAD, oldHead, head));
  }
View Full Code Here


          boolean _equals = Objects.equal(_name, "String");
          return Boolean.valueOf(_equals);
        }
      };
      final NamedElement stringType = IterableExtensions.<NamedElement>findFirst(_elements_2, _function_1);
      final Attribute firstAttribute = IterableExtensions.<Attribute>head(attributes);
      String _name = firstAttribute.getName();
      Matcher<String> _is_1 = CoreMatchers.<String>is("name");
      Assert.<String>assertThat(_name, _is_1);
      Type _type = firstAttribute.getType();
      Matcher<NamedElement> _is_2 = CoreMatchers.<NamedElement>is(stringType);
      Assert.<Type>assertThat(_type, _is_2);
      final Attribute secondAttribute = IterableExtensions.<Attribute>last(attributes);
      String _name_1 = secondAttribute.getName();
      Matcher<String> _is_3 = CoreMatchers.<String>is("birthdate");
      Assert.<String>assertThat(_name_1, _is_3);
      Type _type_1 = secondAttribute.getType();
      Matcher<NamedElement> _is_4 = CoreMatchers.<NamedElement>is(dateType);
      Assert.<Type>assertThat(_type_1, _is_4);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

      final Model model = this._parseHelper.parse(sequence);
      EList<NamedElement> _elements = model.getElements();
      Iterable<Entity> _filter = Iterables.<Entity>filter(_elements, Entity.class);
      final Entity person = IterableExtensions.<Entity>head(_filter);
      EList<Attribute> _attributes = person.getAttributes();
      final Attribute friends = IterableExtensions.<Attribute>head(_attributes);
      boolean _isMany = friends.isMany();
      Matcher<Boolean> _is = CoreMatchers.<Boolean>is(Boolean.valueOf(true));
      Assert.<Boolean>assertThat(Boolean.valueOf(_isMany), _is);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setHead(Attribute newHead)
  {
    Attribute oldHead = head;
    head = newHead;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.ENTITY_MEMBER_CALL__HEAD, oldHead, head));
  }
View Full Code Here

 
  public Object scope_EntityMemberCallTail_head(final EntityMemberCall ctx, final EReference ref) {
    Object _xblockexpression = null;
    {
      Type _elvis = null;
      Attribute _head = ctx.getHead();
      Type _type = _head.getType();
      if (_type != null) {
        _elvis = _type;
      } else {
        Screen _screen = this.screen(ctx);
        Parameter _inputParameter = _screen.getInputParameter();
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setValue(Attribute newValue)
  {
    Attribute oldValue = value;
    value = newValue;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.ATTRIBUTE_REFERENCE__VALUE, oldValue, value));
  }
View Full Code Here

    String _value = it.getValue();
    return _value;
  }
 
  protected String _evaluateExpression(final EntityMemberCall it) {
    Attribute _head = it.getHead();
    String _evaluateExpression = this.evaluateExpression(_head);
    String _xifexpression = null;
    EntityMemberCallTail _tail = it.getTail();
    boolean _notEquals = (!Objects.equal(_tail, null));
    if (_notEquals) {
View Full Code Here

    String _name = it.getName();
    return _name;
  }
 
  protected String _evaluateExpression(final EntityMemberCallTail it) {
    Attribute _head = it.getHead();
    String _evaluateExpression = this.evaluateExpression(_head);
    String _plus = ("." + _evaluateExpression);
    String _xifexpression = null;
    EntityMemberCallTail _tail = it.getTail();
    boolean _notEquals = (!Objects.equal(_tail, null));
View Full Code Here

TOP

Related Classes of org.applause.lang.applauseDsl.Attribute

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.