Examples of Relationship


Examples of OntoUML.Relationship

        if (result == null) result = caseElement(relationalClassifier);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.RELATIONSHIP: {
        Relationship relationship = (Relationship)theEObject;
        T result = caseRelationship(relationship);
        if (result == null) result = caseElement(relationship);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

Examples of OntoUML.Relationship

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setAssociation(Relationship newAssociation) {
    Relationship oldAssociation = association;
    association = newAssociation;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, URMLPackage.BINARY_ASSOCIATION_ATOM__ASSOCIATION, oldAssociation, association));
  }
View Full Code Here

Examples of br.uniriotec.orion.model.forte.resources.Relationship

//    @Test
    public void testGenerateRelationships() {
        System.out.println("\n\n========= Escrever Relacionamentos =========");
        List<Relationship> lista = gerador.generateRelationships();
        Iterator<Relationship> it = lista.iterator();
        Relationship aux;

        while(it.hasNext()){
            aux = it.next();
            System.out.println(aux.getRelacionamentos());
        }
    }
View Full Code Here

Examples of br.uniriotec.orion.model.forte.resources.Relationship

        return false;
      }
  }
   
    private Relationship criaRelacionamentoAuxiliar(String nomeClasse, ObjectProperty obj) {
    Relationship rel = new Relationship();
   
    rel.setNome(lowerFirstChar(nomeClasse)+"_"+obj.getLocalName());
        rel.setPrimeiroTermo(lowerFirstChar(nomeClasse));
        rel.setSegundoTermo(lowerFirstChar(obj.getDomain().getLocalName()));
       
        return rel;
  }
View Full Code Here

Examples of com.alibaba.druid.stat.TableStat.Relationship

        Column rightColumn = getColumn(right);
        if (rightColumn == null) {
            return;
        }

        Relationship relationship = new Relationship();
        relationship.setLeft(leftColumn);
        relationship.setRight(rightColumn);
        relationship.setOperator(operator);

        this.relationships.add(relationship);
    }
View Full Code Here

Examples of com.dotmarketing.portlets.structure.model.Relationship

      String commentStructureName = commentsStructure.getName().replaceAll("\\s", "_").replaceAll("[^a-zA-Z0-9\\_]", "");
      String contentletStructureName = contentletStructure.getName().replaceAll("\\s", "_").replaceAll("[^a-zA-Z0-9\\_]", "");

      // Create the relationship
      Relationship relationship = new Relationship();
      relationship.setCardinality(0);
      relationship.setChildRelationName(commentStructureName);
      relationship.setParentRelationName(contentletStructureName);
      relationship.setChildStructureInode(commentsStructure.getInode());
      relationship.setParentStructureInode(contentletStructure.getInode());
      relationship.setRelationTypeValue(contentletStructureName + "-" + commentStructureName);
      relationship.setParentRequired(false);
      relationship.setChildRequired(false);
      relationship.setFixed(true);
      RelationshipFactory.saveRelationship(relationship);

    }
  }
View Full Code Here

Examples of com.dtrules.samples.chipeligibility.app.dataobjects.Relationship

    ArrayList<Client> sibs = new ArrayList<Client>();
   
    while(job.getCase().getClients().size()<10 && sibs.size()==0 || chance(40)){
      Client child = genClient(job, ageParent-15);
      sibs.add(child);
      Relationship r = new Relationship();
      job.getCase().getRelationships().add(r);
      r.setSource(parent);
      r.setTarget(child);
      r.setType("parent");
     
      r = new Relationship();
      job.getCase().getRelationships().add(r);
      r.setSource(child);
      r.setTarget(parent);
      r.setType("child");
    }
    for(Client sib1 : sibs){
      for(Client sib2 : sibs ){
        if(sib1 != sib2){
          Relationship r = new Relationship();
          job.getCase().getRelationships().add(r);
          r.setSource(sib1);
          r.setTarget(sib2);
          r.setType("sibling");
        }
      }
    }
  }
View Full Code Here

Examples of com.google.dart.engine.index.Relationship

  public Void visitMethodInvocation(MethodInvocation node) {
    SimpleIdentifier name = node.getMethodName();
    Element element = name.getBestElement();
    if (element instanceof MethodElement || element instanceof PropertyAccessorElement) {
      Location location = createLocationFromNode(name);
      Relationship relationship;
      if (node.getTarget() != null) {
        relationship = IndexConstants.IS_INVOKED_BY_QUALIFIED;
      } else {
        relationship = IndexConstants.IS_INVOKED_BY_UNQUALIFIED;
      }
      recordRelationship(element, relationship, location);
    }
    if (element instanceof FunctionElement || element instanceof VariableElement) {
      Location location = createLocationFromNode(name);
      recordRelationship(element, IndexConstants.IS_INVOKED_BY, location);
    }
    // name invocation
    {
      Element nameElement = new NameElementImpl(name.getName());
      Location location = createLocationFromNode(name);
      Relationship kind = element != null ? IndexConstants.NAME_IS_INVOKED_BY_RESOLVED
          : IndexConstants.NAME_IS_INVOKED_BY_UNRESOLVED;
      store.recordRelationship(nameElement, kind, location);
    }
    recordImportElementReferenceWithoutPrefix(name);
    return super.visitMethodInvocation(node);
View Full Code Here

Examples of com.pv.mf.db.mock.metadata.ColumnRelationshipMetadata.Relationship

               }
               updateColumn(metadata, column, method, name);
               saveSetter(metadata, column, method, name);
              
               //determine relation
               Relationship relationship = null;
               if(ann instanceof OneToOne) {
                  relationship = Relationship.ONE_TO_ONE;
               }
               else if(ann instanceof OneToMany) {
                  relationship = Relationship.ONE_TO_MANY;
View Full Code Here

Examples of com.sleepycat.persist.model.Relationship

                    throw new IllegalArgumentException
                        ("Secondary key field does not exist: " +
                         getClassName() + '.' + fieldName);
                }
                Class fieldCls = field.getFieldClass(getCatalog());
                Relationship rel = secKeyMeta.getRelationship();
                if (rel == Relationship.ONE_TO_MANY ||
                    rel == Relationship.MANY_TO_MANY) {
                    if (!PersistKeyCreator.isManyType(fieldCls)) {
                        throw new IllegalArgumentException
                            ("ONE_TO_MANY and MANY_TO_MANY keys must" +
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.