Пример #1
0
 public static void listAll(org.andromda.metafacades.uml.ClassifierFacade classifier) {
   logger.error("dump Content for: " + classifier.getFullyQualifiedName());
   ListSomething("getAbstractions()", "a", classifier.getAbstractions());
   ListSomething("getAllAssociatedClasses() ", "a", classifier.getAllAssociatedClasses());
   ListSomething("getAllProperties() ", "a", classifier.getAllProperties());
   ListSomething(
       "getAllRequiredConstructorParameters() ",
       "a",
       classifier.getAllRequiredConstructorParameters());
   ListSomething("getAssociatedClasses() ", "a", classifier.getAssociatedClasses());
   ListSomething("getAssociationEnds() ", "a", classifier.getAssociationEnds());
   ListSomething("getAttributes() ", "a", classifier.getAttributes());
   ListSomething("getAttributes(true)", "a", classifier.getAttributes(true));
   ListSomething("getAttributes(false)", "a", classifier.getAttributes(false));
   ListSomething("getImplementationOperations() ", "a", classifier.getImplementationOperations());
   ListSomething("getNavigableConnectingEnds() ", "a", classifier.getNavigableConnectingEnds());
   ListSomething("getInstanceAttributes() ", "a", classifier.getInstanceAttributes());
   ListSomething("getInstanceOperations() ", "a", classifier.getInstanceOperations());
   ListSomething("getInterfaceAbstractions() ", "a", classifier.getInterfaceAbstractions());
   ListSomething(
       "getNavigableConnectingEnds(true)", "a", classifier.getNavigableConnectingEnds(true));
   ListSomething(
       "getNavigableConnectingEnds(false)", "a", classifier.getNavigableConnectingEnds(false));
   ListSomething("getOperations() ", "a", classifier.getOperations());
   ListSomething("getProperties() ", "a", classifier.getProperties());
   ListSomething("getProperties(true) ", "a", classifier.getProperties(true));
   ListSomething("getProperties(false) ", "a", classifier.getProperties(false));
   ListSomething(
       "getRequiredConstructorParameters() ", "a", classifier.getRequiredConstructorParameters());
   ListSomething("getStaticAttributes() ", "a", classifier.getStaticAttributes());
   ListSomething("getStaticOperations() ", "a", classifier.getStaticOperations());
 }
Пример #2
0
  public static void listAll(org.andromda.metafacades.uml.AssociationEndFacade classifier) {
    logger.error("dump Content for: " + classifier.getFullyQualifiedName());
    // org.andromda.metafacades.uml.AssociationFacade otherAssoc =
    // classifier.getOtherEnd().getAssociation();
    ClassifierFacade other =
        classifier.getOtherEnd().getAssociation().getAssociationEndB().getType();
    logger.error("other: " + other.getFullyQualifiedName());
    List l = classifier.getOtherEnd().getAssociation().getAssociationEnds();
    Iterator it = l.iterator();
    while (it.hasNext()) {
      AssociationEndFacade end = (AssociationEndFacade) it.next();
      ClassifierFacade attach = end.getType();
      logger.error("end: " + attach.getFullyQualifiedName());
      // logger.error("other Ends: "+it.next().toString());

    }
  }
Пример #3
0
 private static void ListSomething(
     final String header, final String element, final Collection coll) {
   logger.warn(header);
   Iterator it = coll.iterator();
   while (it.hasNext()) {
     Object o = it.next();
     if (o instanceof ClassifierFacade) {
       ClassifierFacade c = (ClassifierFacade) o;
       logger.error("\t" + element + "\t" + c.getName());
     } else if (o instanceof AttributeFacadeLogicImpl) {
       AttributeFacadeLogicImpl c = (AttributeFacadeLogicImpl) o;
       logger.error("\t" + element + "\t" + c.getName());
     } else if (o instanceof AssociationEndFacadeLogicImpl) {
       AssociationEndFacadeLogicImpl c = (AssociationEndFacadeLogicImpl) o;
       logger.error("\t" + element + "\t" + c.getName());
     } else {
       logger.error("unkown type: " + o.toString());
     }
   }
 }