Examples of IElement


Examples of ca.uhn.fhir.model.api.IElement

      parseChildren(theState, nextName, nextVal, alternateVal);

    }

    if (elementId != null) {
      IElement object = (IElement) theState.getObject();
      if (object instanceof IIdentifiableElement) {
        ((IIdentifiableElement) object).setId(new IdDt(elementId));
      } else if (object instanceof IResource) {
        ((IResource) object).setId(new IdDt(elementId));
      }
View Full Code Here

Examples of com.change_vision.jude.api.inf.model.IElement

  private void displayCode() {
    IPresentation[] presentations = this.diagramViewManager.getSelectedPresentations();
    if (0 >= presentations.length) {
      return;
    }
    IElement model = presentations[0].getModel();
    if (!this.codeTools.isClass(model)) {
      return;
    }
    IClass clazz = (IClass) model;
    if (StringUtils.isEmpty(clazz.getName())) {
View Full Code Here

Examples of de.caterdev.modelling.core.IElement

    }
   
    @Override
    public boolean add(IAssociation association) throws ElementNotContainedException, UnsupportedAssociationException
    {
        IElement startpoint = association.getStartpoint();
        IElement endpoint = association.getEndpoint();
       
        if (!elements.contains(startpoint))
        {
            throw new ElementNotContainedException(this, startpoint);
        }
View Full Code Here

Examples of de.caterdev.modelling.core.IElement

        Map<IElement, IElement> elementMapping = new HashMap<IElement, IElement>();
       
        // add all elements of the process model to the copy
        for (IElement element : input.getElements())
        {
            IElement elementCopy = element.getClass().newInstance();
            elementCopy.setLabel(element.getLabel());
           
            elementMapping.put(element, elementCopy);
            copy.add(elementCopy);
        }
       
        // add the associations between the elements in the model
        for (IAssociation association : input.getAssociations())
        {
            IElement start = elementMapping.get(association.getStartpoint());
            IElement end = elementMapping.get(association.getEndpoint());
           
            copy.add(new Association(association.isDirected(), start, end));
        }
       
        return copy;
View Full Code Here

Examples of de.caterdev.modelling.core.IElement

    }
   
    @Test
    public void testGetLabel() throws Exception
    {
        IElement labeled = new MockElement("label");
       
        assertNotNull(labeled.getLabel());
        assertEquals("label", labeled.getLabel());
    }
View Full Code Here

Examples of melnorme.utilbox.tree.IElement

  public Object[] getElements(Object inputElement) {
    DeeParserResult deeModuleDecl = view.fDeeModule;
    if(deeModuleDecl == null) {
      return IElement.NO_ELEMENTS;
    }
    IElement input = deeModuleDecl.getModuleNode();
    return input.getChildren();
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

    }
   
  }

  private void assertTargetVisible(boolean b) {
    IElement button = getButtonWithText("target");
    assertEquals("Button should be " + (b ? "visible" : "hidden"), b, isDisplayed(button));
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

   * TODO move this implementation into JWebUnit
   *
   * @return the page title
   */
  public String getPageTitle() {
    IElement title = getElementByXPath("//title");
    if (title == null)
      return "null";
    return title.getTextContent();
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

   * @throws Exception
   */
  public void testMapPoints() throws Exception {
    beginAtSitemapThenPage("Home");
   
    IElement map = assertHasMap("Target Map");
   
    if (!doCheckPoints()) return;
   
    // TODO how to check that the map points refer to the correct locations, are visible etc?
    {
      IElement point = assertHasMapPoint(map, "point 1");
      // and this point is not present anywhere else on the page
      assertEquals(point, assertHasMapPoint("point 1"));
    }
    {
      IElement point = assertHasMapPoint(map, "point 2");
      assertEquals(point, assertHasMapPoint("point 2"));
    }
    {
      IElement point = assertHasMapPoint(map, "point 3");
      assertEquals(point, assertHasMapPoint("point 3"));
    }
    {
      IElement point = assertHasMapPoint(map, "point 4");
      assertEquals(point, assertHasMapPoint("point 4"));
    }
    {
      IElement point = assertHasMapPoint(map, "point 5");
      assertEquals(point, assertHasMapPoint("point 5"));
    }
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

  public IElement assertHasMap(String label) {
    // find a label with the given string
    String id = getLabelIDForText(label, "NOT_MAP_TEXT", "contains(@class, 'map')");
   
    // this should contain a 'map' <div>
    IElement wrapper = getElementById(id);
    assertNotNull(wrapper);
   
    // through label.for
    assertNotNull(wrapper.getAttribute("for"));
    IElement map = getElementById(wrapper.getAttribute("for"));
    assertNotNull(map);

    // assert that the map is visible
    assertTrue("Map " + map + "should be displayed", isDisplayed(map));
   
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.