Package org.kite9.diagram.builders.krmodel

Examples of org.kite9.diagram.builders.krmodel.Tie


      ClassContentSelector<Y> ccs, boolean traverse, Relationship r, List<Tie> out) {
    for (Class<?> c : in) {
      if (model.withinModel(MemberHandle.convertClassName(c))) {
        for (Y y : ccs.contents(c)) {
          if ((f == null) || (f.accept(y))) {
            out.add(new Tie(subject, r, createNoun(y)));
          }
        }

        if (traverse) {
          packContentInner2(subject, ccs.traverse(c), f, ccs, traverse, r, out);
View Full Code Here


        AnnotatedElement object = h.getAnnotatedItem().hydrate(cl);
        Annotation relation = h.hydrate(cl);
        if ((f==null) || (f.accept(relation.annotationType()))) {
          String annAlias = a.getObjectAlias(relation);
          Relationship rel = new Relationship(annAlias+"(r)", new Relationship(annAlias));
          Tie newTie = new Tie(subject, rel, createNoun(object));
          out.add(newTie);
        }
      }
    }
   
View Full Code Here

        for (Method m : class1.getDeclaredMethods()) {
          for (MemberHandle mh : model.getCalledBy(new MethodHandle(m))) {
            if (mh instanceof MethodHandle) {
              Class<?> dc = ((MethodHandle) mh).hydrateClass(cl);
              if ((f == null) || (f.accept(dc))) {
                ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), new MethodCallRelationship(m,
                    RelationshipType.PASSIVE), createNoun(dc)));
              }
            }
          }
        }
View Full Code Here

        for (Method m : class1.getDeclaredMethods()) {
          for (MemberHandle mh : model.getCalledBy(new MethodHandle(m))) {
            if (mh instanceof MethodHandle) {
              Method dc = ((MethodHandle) mh).hydrate(cl);
              if ((f == null) || (f.accept(dc))) {
                ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.CALLED_BY, createNoun(dc)));
              }
            }
          }
        }
      }
View Full Code Here

          for (MemberHandle mh : model.getCalls(new MethodHandle(m))) {
            if (mh instanceof MethodHandle) {
              Method m2 = ((MethodHandle) mh).hydrate(cl);
              Class<?> dc = ((MethodHandle) mh).hydrateClass(cl);
              if ((f == null) || (f.accept(dc))) {
                ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), new MethodCallRelationship(m2),
                    createNoun(dc)));
              }
            }
          }
        }
View Full Code Here

        for (Method m : class1.getDeclaredMethods()) {
          for (MemberHandle mh : model.getCalls(new MethodHandle(m))) {
            if (mh instanceof MethodHandle) {
              Method m2 = ((MethodHandle) mh).hydrate(cl);
              if ((f == null) || (f.accept(m2))) {
                ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.CALLS, createNoun(m2)));
              }
            }
          }
        }
      }
View Full Code Here

      for (Class<?> class1 : todo) {
        String className = AbstractHandle.convertClassName(class1);
        for (String depName : model.getDependsOnClasses(className)) {
          Class<?> depClass = AbstractHandle.hydrateClass(depName, cl);
          if ((f == null) || (f.accept(depClass))) {
            ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.REQUIRES,
                createNoun(depClass)));
          }
        }
      }
    }
View Full Code Here

      for (Class<?> class1 : todo) {
        String className = AbstractHandle.convertClassName(class1);
        for (String depName : model.getDependedOnClasses(className)) {
          Class<?> depClass = AbstractHandle.hydrateClass(depName, cl);
          if ((f == null) || (f.accept(depClass))) {
            ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.REQUIRED_BY,
                createNoun(depClass)));
          }
        }
      }
    }
View Full Code Here

  }

  public ObjectBuilder withObjects(Object... objects) {
    List<Tie> ties = new ArrayList<Tie>(objects.length);
    for (Object s : objects) {
      ties.add(new Tie(null, null, createNoun(s)));
    }
    ObjectBuilder sb = new ObjectBuilder(ties, model, a);
    return sb;
  }
View Full Code Here

   
    public ClassBuilder withMembers(Class<?>... classes) {
  List<Tie> ties2 = new ArrayList<Tie>(classes.length);
  for (Class<?> c : classes) {
      Package p = c.getPackage();
      Tie t = getTieForRepresentation(p);
      if (t!=null) {
    ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.CLASS, createNoun(c)));
      }
  }
  ClassBuilder ch = new ClassBuilder(ties2, model, a);
  return ch;
    }
View Full Code Here

TOP

Related Classes of org.kite9.diagram.builders.krmodel.Tie

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.