User: ecrutchfield
Date: 06/07/27 19:09:21
Modified: andromda-cs/src/main/resources/templates/cs Interface.vsl
Log:
Converted from Java to C#. Still needs to be 'turned on' in cartridge.xml.
Revision Changes Path
1.2 +48 -42 cartridges/andromda-cs/src/main/resources/templates/cs/Interface.vsl
Index: Interface.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-cs/src/main/resources/templates/cs/Interface.vsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- Interface.vsl 8 Mar 2006 04:10:51 -0000 1.1
+++ Interface.vsl 28 Jul 2006 02:09:21 -0000 1.2
@@ -1,35 +1,43 @@
-// license-header java merge-point
-/* Autogenerated by AndroMDA C# cartridge (Interface.vsl) - do not edit */
+// Name: ${interface.name}.cs
+// license-header cs merge-point
+//
+// Attention: Generated code! Do not modify by hand!
+// Generated by: Interface.vsl in andromda-cs-cartridge.
+
+using System;
+
#if ($stringUtils.isNotBlank($interface.packageName))
-package $interface.packageName;
+namespace $interface.packageName
+{
#end
-/**
-$interface.getDocumentation(" * ")
- */
+ /// <summary>
+$interface.getDocumentation(" /// ")
+ /// </summary>
public interface $interface.name
#if (!$interface.allGeneralizations.empty)
- extends $interface.generalizationList
+ : $interface.generalizationList
#end
{
#foreach($attribute in $interface.attributes)
#if ($attribute.visibility == "public")
#if ($attribute.static)
- /**
-$attribute.getDocumentation(" * ")
- */
- public static final $attribute.type.fullyQualifiedName $attribute.name = $attribute.defaultValue;
+ /// <summary>
+$attribute.getDocumentation(" /// ")
+ /// </summary>
+ /* C# does not support fields in an interface */
+ /*public static $attribute.type.fullyQualifiedName $attribute.name = $attribute.defaultValue;*/
#else
- /**
-$attribute.getDocumentation(" * ")
- */
- public $attribute.getterSetterTypeName ${attribute.getterName}();
-
- /**
-$attribute.getDocumentation(" * ")
- */
- public void ${attribute.setterName}($attribute.getterSetterTypeName $attribute.name);
+ /// <summary>
+$attribute.getDocumentation(" /// ")
+ /// </summary>
+ $attribute.getterSetterTypeName ${attribute.getterName}();
+
+ /// <summary>
+$attribute.getDocumentation(" /// ")
+ /// </summary>
+ void ${attribute.setterName}($attribute.getterSetterTypeName $attribute.name);
#end
#end
@@ -37,33 +45,31 @@
#foreach ($associationEnd in $interface.associationEnds)
#set ($target = $associationEnd.otherEnd)
#if ($target.navigable)
- /**
- * Get the $target.name
-$target.getDocumentation(" * ")
- */
- public $target.getterSetterTypeName ${target.getterName}();
-
- /**
- * Set the $target.name
- */
- public void ${target.setterName}($target.getterSetterTypeName $target.name);
+ /// <summary>
+ /// Get the $target.name
+$target.getDocumentation(" /// ")
+ /// </summary>
+ $target.getterSetterTypeName ${target.getterName}();
+
+ /// <summary>
+ /// Set the $target.name
+ /// </summary>
+ void ${target.setterName}($target.getterSetterTypeName $target.name);
#end
#end
#foreach ( $operation in $interface.operations)
#if ($operation.visibility == "public")
- /**
-$operation.getDocumentation(" * ")
- */
+ /// <summary>
+$operation.getDocumentation(" /// ")
+ /// </summary>
#set ($returnType = $operation.returnType.fullyQualifiedName)
-#if ($operation.exceptionsPresent)
- public $returnType $operation.signature
- throws $operation.exceptionList;
-#else
- public $returnType $operation.signature;
-#end
+ $returnType $operation.signature;
#end
#end
}
\ No newline at end of file
+#if ($stringUtils.isNotBlank($interface.packageName))
+}
+#end
|