Index: topia/src/java/org/codelutin/topia/generators/Util.java diff -u topia/src/java/org/codelutin/topia/generators/Util.java:1.9 topia/src/java/org/codelutin/topia/generators/Util.java:1.10 --- topia/src/java/org/codelutin/topia/generators/Util.java:1.9 Tue Jul 26 13:51:58 2005 +++ topia/src/java/org/codelutin/topia/generators/Util.java Tue Jul 26 16:54:24 2005 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.9 $ + * @version $Revision: 1.10 $ * - * Mise a jour: $Date: 2005/07/26 13:51:58 $ + * Mise a jour: $Date: 2005/07/26 16:54:24 $ * par : $Author: thimel $ */ @@ -378,28 +378,35 @@ * @param attr l'attribut dont on souhaite connaitre la class d'association associée * @return Une String représentant la class d'association */ - public static String getAssociationClassName(ObjectModelAttribute attr) { + public static String getQualifiedAssociationClassName(ObjectModelAttribute attr) { if (attr.hasAssociationClass()) { return attr.getAssociationClass().getQualifiedName(); } String packageName; - String output; + String name; String local = attr.getName(); String reverse = null; if (attr.getReverseAttribute() != null) { reverse = attr.getReverseAttribute().getName(); if (local.compareTo(reverse) < 0) { packageName = attr.getClassifier().getPackageName(); - output = capitalize(local) + capitalize(reverse); + name = ((ObjectModelClass)attr.getDeclaringElement()).getQualifiedName() + "_" + capitalize(local) + "_" + ((ObjectModelClass)attr.getReverseAttribute().getDeclaringElement()).getQualifiedName() + "_" + capitalize(reverse); } else { packageName = attr.getReverseAttribute().getClassifier().getPackageName(); - output = capitalize(reverse) + capitalize(local); + name = ((ObjectModelClass)attr.getReverseAttribute().getDeclaringElement()).getQualifiedName() + "_" + capitalize(reverse) + "_" + ((ObjectModelClass)attr.getDeclaringElement()).getQualifiedName() + "_" + capitalize(local); } } else { packageName = attr.getClassifier().getPackageName(); - output = capitalize(local); + name = ((ObjectModelClass)attr.getDeclaringElement()).getQualifiedName() + "_" + capitalize(local); } - return packageName + "._associations_.Assoc" + output; + name = name.replace('.', '_'); + return packageName + "._associations_.Assoc_" + name; } + + public static String getAssociationClassName(ObjectModelAttribute attr) { + String qualifiedName = getQualifiedAssociationClassName(attr); + return qualifiedName.substring(qualifiedName.lastIndexOf('.') +1); + } + } // Util Index: topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java:1.22 topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java:1.23 --- topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java:1.22 Tue Jul 26 14:02:57 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java Tue Jul 26 16:54:24 2005 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.22 $ + * @version $Revision: 1.23 $ * - * Mise a jour: $Date: 2005/07/26 14:02:57 $ + * Mise a jour: $Date: 2005/07/26 16:54:24 $ * par : $Author: thimel $ */ @@ -158,7 +158,7 @@ TopiaAccessController.checkPermission(this, "read"); }*/ if (Util.isAttributeEntity(attribute)) { -/*{ <%=Util.getAssociationClassName(attribute)%> classAssoc = (<%=Util.getAssociationClassName(attribute)%>)getContext().getAssociationManager().getAssociationClass(_nameFor<%=Util.capitalize(attribute.getName())%>_, this, _indexFor<%=Util.capitalize(attribute.getName())%>_); +/*{ <%=Util.getQualifiedAssociationClassName(attribute)%> classAssoc = (<%=Util.getQualifiedAssociationClassName(attribute)%>)getContext().getAssociationManager().getAssociationClass(_nameFor<%=Util.capitalize(attribute.getName())%>_, this, _indexFor<%=Util.capitalize(attribute.getName())%>_); if (classAssoc == null) return null; return classAssoc.get<%=Util.capitalize(attribute.getName())%>(); @@ -195,7 +195,7 @@ if (Util.isAttributeEntity(attribute)) { /*{ List list = new ArrayList(); for (Iterator it = getContext().getAssociationManager().getAssociationClasses(_nameFor<%=Util.capitalize(attribute.getName())%>_, this, _indexFor<%=Util.capitalize(attribute.getName())%>_).iterator(); it.hasNext(); ) - list.add(((<%=Util.getAssociationClassName(attribute)%>)it.next()).get<%=Util.capitalize(attribute.getName())%>()); + list.add(((<%=Util.getQualifiedAssociationClassName(attribute)%>)it.next()).get<%=Util.capitalize(attribute.getName())%>()); List result = <%=Util.getInitValue(attribute)%>; result.addAll(list); }*/ /*On ajoute tout d'un coup pour ne pas violer les contraintes de multiplicité*/ /*{ return Collections.unmodifiableList(result); @@ -261,7 +261,7 @@ TopiaAccessController.checkPermission(this, "read"); }*/ if (Util.isAttributeEntity(attribute)) { -/*{ return ((<%=Util.getAssociationClassName(attribute)%>)getContext().getAssociationManager().getAssociationClassForIndex(_nameFor<%=Util.capitalize(attribute.getName())%>_, this, _indexFor<%=Util.capitalize(attribute.getName())%>_, index)).get<%=Util.capitalize(attribute.getName())%>(); +/*{ return ((<%=Util.getQualifiedAssociationClassName(attribute)%>)getContext().getAssociationManager().getAssociationClassForIndex(_nameFor<%=Util.capitalize(attribute.getName())%>_, this, _indexFor<%=Util.capitalize(attribute.getName())%>_, index)).get<%=Util.capitalize(attribute.getName())%>(); }*/ } else { /*{ return (<%=attribute.getType()%>)<%=attribute.getName()%>.get(index); @@ -325,8 +325,8 @@ } else { if (!attribute.hasAssociationClass()) { /*{ public void set<%=Util.capitalize(attribute.getName())%>(<%=Util.getAttributeType(attribute)%> value) { - <%=Util.getAssociationClassName(attribute)%> oldAssocClass = (<%=Util.getAssociationClassName(attribute)%>)getContext().getAssociationManager().getAssociationClass(_nameFor<%=Util.capitalize(attribute.getName())%>_, this, _indexFor<%=Util.capitalize(attribute.getName())%>_); - <%=Util.getAssociationClassName(attribute)%> newAssocClass = ((oldAssocClass == null) ? new <%=Util.getAssociationClassName(attribute)%>() : oldAssocClass.clone()); + <%=Util.getQualifiedAssociationClassName(attribute)%> oldAssocClass = (<%=Util.getQualifiedAssociationClassName(attribute)%>)getContext().getAssociationManager().getAssociationClass(_nameFor<%=Util.capitalize(attribute.getName())%>_, this, _indexFor<%=Util.capitalize(attribute.getName())%>_); + <%=Util.getQualifiedAssociationClassName(attribute)%> newAssocClass = ((oldAssocClass == null) ? new <%=Util.getQualifiedAssociationClassName(attribute)%>() : oldAssocClass.clone()); if (newAssocClass != null) { newAssocClass.set<%=Util.capitalize(attribute.getName())%>(value); }*/ @@ -380,7 +380,7 @@ /*{ public void add<%=Util.capitalize(attribute.getName())%>(<%=attribute.getType()%> value) throws TopiaException { TopiaAccessController.checkPermission(this, "write"); - <%=Util.getAssociationClassName(attribute)%> association = new <%=Util.getAssociationClassName(attribute)%>(); + <%=Util.getQualifiedAssociationClassName(attribute)%> association = new <%=Util.getQualifiedAssociationClassName(attribute)%>(); association.set<%=Util.capitalize(attribute.getName())%>(value); }*/ if (attribute.getReverseAttribute() != null) { @@ -511,7 +511,7 @@ Iterator it = list.iterator(); while (it.hasNext()) { <%=attribute.getType()%> value = (<%=attribute.getType()%>)it.next(); - <%=Util.getAssociationClassName(attribute)%> association = new <%=Util.getAssociationClassName(attribute)%>(); + <%=Util.getQualifiedAssociationClassName(attribute)%> association = new <%=Util.getQualifiedAssociationClassName(attribute)%>(); }*/ if (attribute.getReverseAttribute() != null) { /*{ association.set<%=Util.capitalize(attribute.getReverseAttribute().getName())%>(this); Index: topia/src/java/org/codelutin/topia/generators/ObjectModelToAssociationClassesGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ObjectModelToAssociationClassesGenerator.java:1.1 topia/src/java/org/codelutin/topia/generators/ObjectModelToAssociationClassesGenerator.java:1.2 --- topia/src/java/org/codelutin/topia/generators/ObjectModelToAssociationClassesGenerator.java:1.1 Tue Jul 26 14:02:57 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelToAssociationClassesGenerator.java Tue Jul 26 16:54:24 2005 @@ -31,7 +31,7 @@ while (itAttributes.hasNext()) { ObjectModelAttribute attribute = (ObjectModelAttribute)itAttributes.next(); if (Util.isAttributeEntity(attribute) && !attribute.hasAssociationClass()) { - String filename = Util.getAssociationClassName(attribute).replace('.', File.separatorChar) + ".java"; + String filename = Util.getQualifiedAssociationClassName(attribute).replace('.', File.separatorChar) + ".java"; File outputFile = getDestinationFile(destDir, filename); if (getOverwrite() || !isNewerThanSource(outputFile)){ StringWriter out = new StringWriter(); @@ -77,8 +77,8 @@ private void generateAssocClassFromAttribute(Writer output, ObjectModelAttribute attribute) throws IOException { - String assocClassName = Util.getAssociationClassName(attribute).substring(Util.getAssociationClassName(attribute).lastIndexOf('.') +1); -/*{package <%=Util.getAssociationClassName(attribute).substring(0, Util.getAssociationClassName(attribute).lastIndexOf('.'))%>; + String assocClassName = Util.getQualifiedAssociationClassName(attribute).substring(Util.getQualifiedAssociationClassName(attribute).lastIndexOf('.') +1); +/*{package <%=Util.getQualifiedAssociationClassName(attribute).substring(0, Util.getQualifiedAssociationClassName(attribute).lastIndexOf('.'))%>; import org.codelutin.topia.annotation.ClassInfo; import org.codelutin.topia.annotation.ClassType; Index: topia/src/java/org/codelutin/topia/generators/ObjectModelToTopiaMetaGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ObjectModelToTopiaMetaGenerator.java:1.5 topia/src/java/org/codelutin/topia/generators/ObjectModelToTopiaMetaGenerator.java:1.6 --- topia/src/java/org/codelutin/topia/generators/ObjectModelToTopiaMetaGenerator.java:1.5 Tue Jul 26 14:02:57 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelToTopiaMetaGenerator.java Tue Jul 26 16:54:24 2005 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * - * Mise a jour: $Date: 2005/07/26 14:02:57 $ + * Mise a jour: $Date: 2005/07/26 16:54:24 $ * par : $Author: thimel $ */ @@ -57,7 +57,11 @@ public void generate(ObjectModel model, File destDir) throws IOException { ObjectModelGenerator gen = null; - + + // On applique le modifier pour ajouter les classes d'associations à générer au modèle + ObjectModelModifier modifier = new TopiaObjectModelModifier(); + model = modifier.modify(model); + Logger.getLogger(getClass().getName() + ".generate").log(Level.FINE, "Generation de ObjectModelToApplicationContextGenerator"); gen = new ObjectModelToApplicationContextGenerator(this); gen.generate(model, destDir); Index: topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityGenerator.java:1.10 topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityGenerator.java:1.11 --- topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityGenerator.java:1.10 Tue Jul 26 14:02:57 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityGenerator.java Tue Jul 26 16:54:24 2005 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ * - * Mise a jour: $Date: 2005/07/26 14:02:57 $ + * Mise a jour: $Date: 2005/07/26 16:54:24 $ * par : $Author: thimel $ */ @@ -46,7 +46,7 @@ public class ObjectModelToEntityGenerator extends TopiaAbstractObjectModelGenerator { // ObjectModelToEntityGenerator - public ObjectModelToEntityGenerator(){ + public ObjectModelToEntityGenerator(){ super(); } @@ -66,15 +66,23 @@ // C L A S S D E C L A R A T I O N ////////////////////////////////////////////////////////////////////// - public String generateMethodInfo(MethodType type, boolean isModifier, ObjectModelAttribute attr) { + public String generateMethodInfo(MethodType type, boolean isModifier, ObjectModelAttribute attr, boolean isAssociationFieldAccessor) { String output = "@MethodInfo (\n"; - output += " type = MethodType." + type; + output += " type = MethodType." + type; if (type == MethodType.FIELD_ACCESSOR) { - output += ",\n field = \"" + attr.getName() + "\""; + if (isAssociationFieldAccessor) { + output += ",\n field = \"" + Util.getAssociationClassName(attr) + "\""; + } else { + output += ",\n field = \"" + attr.getName() + "\""; + } output += ",\n isFieldModifier = " + isModifier + ""; if (Util.isAttributeEntity(attr)) - output += ",\n associationClass = " + Util.getAssociationClassName(attr) + ".class"; - output += ",\n fieldType = " + Util.getFieldClassType(attr); + output += ",\n associationClass = " + Util.getQualifiedAssociationClassName(attr) + ".class"; + if (isAssociationFieldAccessor) { + output += ",\n fieldType = " + Util.getQualifiedAssociationClassName(attr) + ".class"; + } else { + output += ",\n fieldType = " + Util.getFieldClassType(attr); + } } return (output + "\n )"); } @@ -140,13 +148,13 @@ public void generateGetNormalAttributeAccessor(Writer output, ObjectModelAttribute attribute) throws IOException { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, false)%> public <%=Util.getAttributeType(attribute)%> get<%=Util.capitalize(attribute.getName())%>() throws TopiaException; }*/ if (attribute.hasAssociationClass()) { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, true)%> public <%=attribute.getAssociationClass().getQualifiedName()%> get<%=attribute.getAssociationClass().getName()%>() throws TopiaException; }*/ } @@ -159,22 +167,22 @@ /** * @return an unmodifiable collection *) - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, false)%> public <%=Util.getAttributeType(attribute)%> get<%=Util.capitalize(attribute.getName())%>() throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, false)%> public int sizeOf<%=Util.capitalize(attribute.getName())%>() throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, false)%> public Iterator iteratorOn<%=Util.capitalize(attribute.getName())%>() throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, false)%> public boolean containsIn<%=Util.capitalize(attribute.getName())%>(<%=attribute.getType()%> value) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, false)%> public boolean containsAllIn<%=Util.capitalize(attribute.getName())%>(java.util.Collection values) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, false)%> public <%=attribute.getType()%> get<%=Util.capitalize(attribute.getName())%>(int index) throws TopiaException; }*/ @@ -183,7 +191,7 @@ public void generateGetAssociationAttributeAccessor(Writer output, ObjectModelAttribute attribute) throws IOException { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, false, attribute, false)%> public <%=attribute.getType()%> get<%=Util.capitalize(attribute.getName())%>() throws TopiaException; }*/ } @@ -197,15 +205,15 @@ throws IOException { if (!attribute.hasAssociationClass()) { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void set<%=Util.capitalize(attribute.getName())%>(<%=Util.getAttributeType(attribute)%> value) throws TopiaException; }*/ } else { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void set<%=Util.capitalize(attribute.getName())%>(<%=attribute.getAssociationClass().getQualifiedName()%> association) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void set<%=Util.capitalize(attribute.getName())%>(<%=Util.getAttributeType(attribute)%> value, <%=attribute.getAssociationClass().getQualifiedName()%> association) throws TopiaException; }*/ } @@ -215,40 +223,40 @@ throws IOException { if (!Util.isAttributeEntity(attribute)) { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void set<%=Util.capitalize(attribute.getName())%>(int index, <%=attribute.getType()%> value) throws TopiaException; }*/ } /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void remove<%=Util.capitalize(attribute.getName())%>(<%=attribute.getType()%> value) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void clear<%=Util.capitalize(attribute.getName())%>() throws TopiaException; }*/ if (!attribute.hasAssociationClass()) { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void add<%=Util.capitalize(attribute.getName())%>(<%=attribute.getType()%> value) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void add<%=Util.capitalize(attribute.getName())%>(/*<%=Util.getAttributeType(attribute)%>*)java.util.Collection list) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void add<%=Util.capitalize(attribute.getName())%>(/*<%=Util.getAttributeType(attribute)%>*)java.util.Collection list, boolean duplicate) throws TopiaException; }*/ } else { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void set<%=Util.capitalize(attribute.getName())%>(int index, <%=attribute.getAssociationClass().getQualifiedName()%> value) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void add<%=Util.capitalize(attribute.getName())%>(<%=attribute.getType()%> value, <%=attribute.getAssociationClass().getQualifiedName()%> association) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void add<%=Util.capitalize(attribute.getName())%>(<%=attribute.getAssociationClass().getQualifiedName()%> association) throws TopiaException; - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void remove<%=Util.capitalize(attribute.getName())%>(<%=attribute.getAssociationClass().getQualifiedName()%> value) throws TopiaException; }*/ } @@ -259,7 +267,7 @@ public void generateSetAssociationAttributeAccessor(Writer output, ObjectModelAttribute attribute) throws IOException { /*{ - <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute)%> + <%=generateMethodInfo(MethodType.FIELD_ACCESSOR, true, attribute, false)%> public void set<%=Util.capitalize(attribute.getName())%>(<%=attribute.getType()%> value) throws TopiaException; }*/ } @@ -273,7 +281,7 @@ /** <%=operation.getDocumentation()%> *) - <%=generateMethodInfo(MethodType.OPERATION, false, null)%> + <%=generateMethodInfo(MethodType.OPERATION, false, null, false)%> <%=operation.getVisibility()%> <%=operation.getReturnType()%> <%=operation.getName()%> (<%=Util.getMethodParameterDeclaration(operation.getParameters())%>) throws TopiaException}*/ } @@ -293,7 +301,7 @@ /** * Return an XML representation of this entity *) - <%=generateMethodInfo(MethodType.GENERATED, false, null)%> + <%=generateMethodInfo(MethodType.GENERATED, false, null, false)%> public String toXML(); }*/ @@ -307,7 +315,7 @@ /** * Return the model class for this entity as an entry point in the project entities model *) - <%=generateMethodInfo(MethodType.GENERATED, false, null)%> + <%=generateMethodInfo(MethodType.GENERATED, false, null, false)%> public ObjectModelClass getModelElement(); }*/ Index: topia/src/java/org/codelutin/topia/generators/ObjectModelModifier.java diff -u /dev/null topia/src/java/org/codelutin/topia/generators/ObjectModelModifier.java:1.1 --- /dev/null Tue Jul 26 16:54:29 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelModifier.java Tue Jul 26 16:54:24 2005 @@ -0,0 +1,9 @@ +package org.codelutin.topia.generators; + +import org.codelutin.generator.models.object.ObjectModel; + +public interface ObjectModelModifier { + + public ObjectModel modify(ObjectModel model); + +} Index: topia/src/java/org/codelutin/topia/generators/TopiaObjectModelModifier.java diff -u /dev/null topia/src/java/org/codelutin/topia/generators/TopiaObjectModelModifier.java:1.1 --- /dev/null Tue Jul 26 16:54:29 2005 +++ topia/src/java/org/codelutin/topia/generators/TopiaObjectModelModifier.java Tue Jul 26 16:54:24 2005 @@ -0,0 +1,12 @@ +package org.codelutin.topia.generators; + +import org.codelutin.generator.models.object.ObjectModel; + +public class TopiaObjectModelModifier implements ObjectModelModifier { + + public ObjectModel modify(ObjectModel model) { + model.getClasses(); + return model; + } + +}