From: Robert L. <rle...@us...> - 2007-02-27 12:36:20
|
Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21862/src/ccmtools/generator/java/templates/jet Modified Files: ComponentDefAssemblyClass.jet Added Files: AttributeDefAssemblyImplementation.jet Log Message: now support "set attribute" after "configuration complete" Index: ComponentDefAssemblyClass.jet =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/generator/java/templates/jet/ComponentDefAssemblyClass.jet,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ComponentDefAssemblyClass.jet 27 Feb 2007 08:28:16 -0000 1.8 --- ComponentDefAssemblyClass.jet 27 Feb 2007 12:36:16 -0000 1.9 *************** *** 74,78 **** { try { - // create inner components <% for(Iterator i=component.getAssemblyAttributeInitialisation(); i.hasNext();) --- 74,77 ---- *************** *** 134,138 **** AttributeDef attr = (AttributeDef)i.next(); %> ! <%=attr.generateApplicationImplementation()%> <% } --- 133,137 ---- AttributeDef attr = (AttributeDef)i.next(); %> ! <%=attr.generateAssemblyImplementation(component.getAssemblyAttributeTarget(attr.getIdentifier()))%> <% } --- NEW FILE: AttributeDefAssemblyImplementation.jet --- <%@ jet package="ccmtools.generator.java.templates" class="AttributeDefAssemblyImplementationTemplate" imports="ccmtools.generator.java.metamodel.* " %> <% AttributeDef attr = (AttributeDef) argument; %> public <%=attr.getType().generateJavaMapping()%> <%=attr.getIdentifier()%>() throws CCMException { return this.<%=attr.getIdentifier()%>_; } public void <%=attr.getIdentifier()%>(<%=attr.getType().generateJavaMapping()%> value) throws CCMException { this.<%=attr.getIdentifier()%>_ = value; <% for(String code:attr.assembly_extra_code) { %> <%=code%> <% } %> } |