コード例 #1
0
 /**
  * Gets the association name.
  *
  * @param association the association
  * @return the association name
  */
 public String getAssociationName(Association association) {
   EList<Comment> comments = association.getComments();
   for (Comment comment : comments) {
     EList<Stereotype> stereotypes = comment.getStereotypes();
     for (Stereotype stereotype : stereotypes) {
       if (stereotype.getName().equals(FormGeneratorsManager.ALFRESCO_NAME_ASSOCIATION)) {
         return comment.getValue();
       }
     }
   }
   return association.getName();
 }
コード例 #2
0
 /**
  * Gets the layout.
  *
  * @param classe the classe
  * @return the layout
  */
 private String getLayout(AbstractClass classe) {
   String result = null;
   EList<Comment> comments = classe.getComments();
   for (Comment comment : comments) {
     EList<Stereotype> stereotypes = comment.getStereotypes();
     for (Stereotype stereotype : stereotypes) {
       if (StringUtils.trimToEmpty(stereotype.getName()).equals("layout")) {
         result = comment.getValue();
       }
     }
   }
   return result;
 }