Examples of eClass()


Examples of org.eclipse.uml2.uml.profile.standard.Trace.eClass()

      while(itDep.hasNext()) {
        DirectedRelationship currentDRelationship = itDep.next();
        currentTrace = UMLUtil.getStereotypeApplication(currentDRelationship, Trace.class);

        // Must be a Trace not a subtype (see bug #352563).
        if((currentTrace != null) && (currentTrace.eClass() == StandardPackage.eINSTANCE.getTrace())) {
          EList<NamedElement> clients = currentTrace.getBase_Abstraction().getSuppliers();
          Iterator<NamedElement> it = clients.iterator();
          while(it.hasNext()) {
            Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
            if(currentRequirement != null) {
View Full Code Here

Examples of org.eclipse.xsd.XSDConcreteComponent.eClass()

  private boolean sameType(XSDTypeDefinition t1, XSDTypeDefinition t2)
  {
    XSDConcreteComponent n1 = t1, n2 = t2;
    while (n1 != null && n2 != null)
    {
      if (n1.eClass() != n2.eClass()) break;
      if (n1 instanceof XSDNamedComponent /*&& n2 instanceof XSDNamedComponent*/)
      {
        String s1 = ((XSDNamedComponent)n1).getName();
        String s2 = ((XSDNamedComponent)n2).getName();
        if (s1 == null ? s1 != s2 : !s1.equals(s2)) break;
View Full Code Here

Examples of org.eclipselabs.mongoemf.junit.model.PrimaryObject.eClass()

    // Test : Store the object with the option to use the ID attribute as the MongoDB _id

    HashMap<String, Object> options = new HashMap<String, Object>();
    options.put(Options.OPTION_USE_ID_ATTRIBUTE_AS_PRIMARY_KEY, Boolean.TRUE);

    saveObject(primaryObject, createCollectionURI(primaryObject.eClass()), options);

    // Verify : Check that the object was stored correctly

    ResourceSet resourceSet = createResourceSet();
    Resource resource = resourceSet.getResource(createQueryURI(org.eclipselabs.mongoemf.junit.model.ModelPackage.Literals.PRIMARY_OBJECT, "idAttribute=='" + id + "'"), true);
View Full Code Here

Examples of org.eclipselabs.mongoemf.junit.model.TargetObject.eClass()

    TargetObject targetObject = ModelFactory.eINSTANCE.createTargetObject();
    targetObject.setSingleAttribute("junit");

    // Test : Store the object to MongoDB

    saveObject(targetObject, createObjectURI(targetObject.eClass(), id), null);

    // Verify : Check that the object was stored correctly, and that is has the ID we specified.

    TargetObject actual = EChecker.checkObject(targetObject, createResourceSet());
    assertThat(EChecker.getID(actual), is(id.toString()));
View Full Code Here

Examples of org.emftrace.metamodel.EMFfitModel.TextElement.eClass()

      return false;
   
    for (int i = 0; i < newContent.size(); i++) {
      TextElement oldElement = oldContent.get(i);
      TextElement newElement = newContent.get(i);
      if (oldElement.eClass() != newElement.eClass()){
        return false;
      }
    }
    return true;
  }
View Full Code Here

Examples of org.emftrace.metamodel.LinkModel.LinkTypeCatalog.eClass()

       
        cat.getLinkTypes().add(t1);
        t1.getRefinement().add(t2);
        assertEquals("Result", 2, accessLayer.getElements(project, t1.eClass()).size());
        assertEquals("Result", 1, accessLayer.getElements(project, cat.eClass()).size());
        assertEquals(0, accessLayer.getElements(null, cat.eClass()).size());
    }

    @Test
    public void testGetElementsProjectString()
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.Constraints.TechnicalProperty.eClass()

    
        String label = LabelProvider.getLabel(modelElement);
        Image image = LabelProvider.getImage(modelElement);
        HashMap<String, String> content = new HashMap<String, String>();
    for (EAttribute attribute : modelElement.eClass().getEAllAttributes()) {
      String attributeName = attribute.getName();
      String attributeStringValue = "";
      if (eObject.eGet(attribute) == null ){
        attributeStringValue = "";
      } else if (attribute.isMany()){
View Full Code Here

Examples of org.emftrace.metamodel.QUARCModel.GSS.Element.eClass()

    String label = "\"" + (sourceName == null || sourceName.isEmpty() && source != null ? source.eClass().getName() : sourceName) + "\" ";

    Object weight = ((Rating)object).getWeight();
    label += "-(" + (weight == null ? "" : weight.toString()) + ")";
   
    label += "-> \""+ (targetName == null || targetName.isEmpty() && target != null ? target.eClass().getName() : targetName) + "\"";
    return getString("_UI_Rating_type"+label;
  }


}
View Full Code Here

Examples of org.geotools.data.efeature.EFeatureInfo.eClass()

        String eNsURI = EFeatureUtils.eGetNsURI(eClass);
        //
        // Try to get cached structure
        //
        EFeatureInfo eInfo = get(eNsURI,eFolder,eClass.getName());
        if(eInfo!=null && EcoreUtil.equals(eInfo.eClass(),eClass)) {
            return eInfo;
        }
        //
        // Not found
        //
View Full Code Here

Examples of org.openhab.model.sitemap.Widget.eClass()

    String testLabel = "Label [%s]";
    Widget w = mock(Widget.class);
    Item item = mock(Item.class);
    when(w.getLabel()).thenReturn(testLabel);
    when(w.getItem()).thenReturn("Item");
    when(w.eClass()).thenReturn(SitemapFactory.eINSTANCE.createText().eClass());
    when(registry.getItem("Item")).thenThrow(new ItemNotFoundException("Item"));
    when(item.getState()).thenReturn(new StringType("State"));
    String label = uiRegistry.getLabel(w);
    assertEquals("Label [-]", label);
  }
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.