From: Chad B. <cwb...@us...> - 2005-01-31 15:08:31
|
User: cwbrandon Date: 05/01/31 07:08:21 Modified: src/java/org/andromda/core/metafacade MetafacadeMapping.java Log: add key for mapping properties. Revision Changes Path 1.24 +16 -1 andromda/src/java/org/andromda/core/metafacade/MetafacadeMapping.java Index: MetafacadeMapping.java =================================================================== RCS file: /cvsroot/andromda/andromda/src/java/org/andromda/core/metafacade/MetafacadeMapping.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -w -r1.23 -r1.24 --- MetafacadeMapping.java 31 Jan 2005 05:25:36 -0000 1.23 +++ MetafacadeMapping.java 31 Jan 2005 15:08:20 -0000 1.24 @@ -3,6 +3,7 @@ import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; +import java.util.Iterator; import java.util.List; import java.util.Map; @@ -238,6 +239,20 @@ this.mappingClassName, this.context, this.stereotypes); + if (this.hasMappingProperties()) + { + Iterator mappingPropertyIterator = this.mappingProperties + .iterator(); + while (mappingPropertyIterator.hasNext()) + { + Property property = (Property)mappingPropertyIterator + .next(); + key = MetafacadeMappingsUtils.constructKey(key, property + .getName()); + key = MetafacadeMappingsUtils.constructKey(key, property + .getValue()); + } + } } return key; } @@ -291,7 +306,7 @@ * Stores and provides access to the mapping element's nested * <property/>. */ - class Property + static class Property { private String name; private String value; |