Package org.openiaml.model.model

Examples of org.openiaml.model.model.Function


    // with ActivityParameter from attr instance
    Value value = assertHasFieldValue(ititle);
    assertGenerated(value);
    assertGenerated(assertHasParameter(root, value, run));

    Function cond = assertHasFunction(iterator, "not empty");

    assertGenerated(assertHasSimpleCondition(root, cond, run));
  }
View Full Code Here


  public void testInference() throws JaxenException {
    Frame page = assertHasFrame(root, "container");
    InputTextField source = assertHasInputTextField(page, "source");
    InputTextField target = assertHasInputTextField(page, "target");
    SyncWire wire = assertHasSyncWire(page, source, target);
    Function cond = assertHasFunction(page, "Always False");

    // [inferred]
    // we should have Event 'edit' in source
    Event srcEdit = source.getOnChange();
    Operation srcOp = assertHasOperation(source, "update");
View Full Code Here

    // validate operation is also called
    ActivityOperation validate = assertHasActivityOperation(integer, "validate");
    ECARule runValidate = assertHasRunAction(root, onAccess, validate);

    // the 'fieldValue is set' condition
    Function isSet = assertHasFunction(integer, "fieldValue is set");
    assertHasSimpleCondition(root, isSet, runValidate);

  }
View Full Code Here

    InputTextField field1 = assertHasInputTextField(page1, "field");
    InputTextField field2 = assertHasInputTextField(page2, "field");
    assertNotSame(field1, field2);

    Function cond = assertHasFunction(root, "Always False");
    SimpleCondition cw = assertHasSimpleCondition(root, cond, wire);

    // [already in model]
    // there should be a Function wire from cond to sync
    assertEquals(cw.getFunction(), cond);
View Full Code Here

      ECARule run = assertHasRunAction(root, onAccess, hide);
      assertGenerated(run);

      // only if the input is empty
      Function empty = input.getEmpty();
      assertGenerated(empty);

      assertGenerated(assertHasSimpleCondition(root, empty, run));
    }

    {
      Operation hide = assertHasBuiltinOperation(list, "show");
      assertGenerated(hide);

      ECARule run = assertHasRunAction(root, onAccess, hide);
      assertGenerated(run);

      // only if the input is not empty
      Function empty = input.getNotEmpty();
      assertGenerated(empty);

      assertGenerated(assertHasSimpleCondition(root, empty, run));
    }
View Full Code Here

    // only if the input is empty
    {
      Operation hide = assertHasBuiltinOperation(list, "hide");
      ECARule run = assertHasRunAction(root, onChange, hide);
      Function empty = input.getEmpty();
      assertGenerated(assertHasSimpleCondition(root, empty, run));
    }

    // only if the input is not empty
    {
      Operation show = assertHasBuiltinOperation(list, "show");
      ECARule run = assertHasRunAction(root, onChange, show);
      Function notEmpty = input.getNotEmpty();
      assertGenerated(assertHasSimpleCondition(root, notEmpty, run));
    }

  }
View Full Code Here

    InputForm form = assertHasInputForm(home, "view news");

    DomainIterator instance = assertHasDomainIterator(home, "view news");

    Operation inext = instance.getNext();
    Function hasNext = instance.getHasNext();

    Button next = assertHasButton(form, "Next");

    Event onClick = next.getOnClick();
    assertGenerated(onClick);
View Full Code Here

    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");

    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Operation iprevious = instance.getPrevious();
    Function hasPrevious = instance.getHasPrevious();

    Button previous = assertHasButton(form, "Previous");

    Event onClick = previous.getOnClick();
    assertGenerated(onClick);
View Full Code Here

   * @throws Exception
   */
  public void testContentsOfNotEmpty() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Function empty = instance.getEmpty();

    // we need to reverse 'empty' into Function 'not empty'
    ActivityPredicate notEmpty = assertHasActivityPredicate(instance, "not empty");

    StartNode start = assertHasStartNode(notEmpty);
View Full Code Here

  public void testBuiltinPropertiesAreTyped() throws Exception {
    Frame home = assertHasFrame(root, "Home");

    InputTextField text1 = assertHasInputTextField(home, "text1");
   
    Function f = text1.getEmpty();
    assertNotNull(f);
    assertGenerated(f);
   
    // it should be typed boolean
    EXSDDataType type = (EXSDDataType) f.getType();
    assertEquals("http://www.w3.org/2001/XMLSchema#boolean", type.getDefinition().getURI());
  }
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.Function

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.