summaryrefslogtreecommitdiff
path: root/java/common/Constant.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'java/common/Constant.tpl')
-rw-r--r--java/common/Constant.tpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/java/common/Constant.tpl b/java/common/Constant.tpl
new file mode 100644
index 0000000000..695812ea75
--- /dev/null
+++ b/java/common/Constant.tpl
@@ -0,0 +1,14 @@
+package org.apache.qpidity.transport;
+
+${from genutil import *}
+
+public interface Constant
+{
+${
+constants = spec.query["amqp/constant"]
+
+for c in constants:
+ name = scream(c["@name"])
+ value = c["@value"]
+ out(" public static final int $name = $value;\n")
+}}