Index: topia/src/java/org/codelutin/topia/generators/Util.java diff -u topia/src/java/org/codelutin/topia/generators/Util.java:1.22 topia/src/java/org/codelutin/topia/generators/Util.java:1.23 --- topia/src/java/org/codelutin/topia/generators/Util.java:1.22 Thu Dec 8 16:48:05 2005 +++ topia/src/java/org/codelutin/topia/generators/Util.java Wed Dec 14 18:47:07 2005 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.22 $ + * @version $Revision: 1.23 $ * - * Mise a jour: $Date: 2005/12/08 16:48:05 $ + * Mise a jour: $Date: 2005/12/14 18:47:07 $ * par : $Author: thimel $ */ @@ -297,16 +297,14 @@ } /** - * Return wether the given attribute is an application Entity + * Return whether the given attribute is an application Entity * * @return a boolean indicationg if the given attribute is an Entity */ public static boolean isAttributeEntity(ObjectModelAttribute attribute) { if (attribute == null) return false; - if (!(attribute.getClassifier() instanceof ObjectModelClassifier)) - return false; - return isEntity((ObjectModelClassifier)attribute.getClassifier()); + return isEntity(attribute.getClassifier()); } /** @@ -480,18 +478,6 @@ } /** - * Renvoie si l'attribut passé en paramètre est premier lexicographiquement - * par rapport à son attribut inverse (si celui ci existe). - * @param attr L'attribut dont on veut savoir s'il est le premier - * @return true, si l'attribut est premier (lexico ou pas de reverse attribute), false dans les autres cas - */ - public static boolean isFirstAttribute(ObjectModelAttribute attr) { - if (attr.getReverseAttribute() == null) - return true; - return (attr.getName().compareTo(attr.getReverseAttribute().getName()) < 0); - } - - /** * Renvoie une chaine de caractères contenant le type des arguments de la * méthode suivi (si includeName) du nom de l'attribut * @param args La liste de arguments à traiter