1 package org.catacomb.act; 2 3 4 public class EnumOption { 5 6 String name; 7 int value; 8 9 public EnumOption(String nm, int val) { 10 name = nm; 11 value = val; 12 } 13 14 15 public String toJavaDeclaration() { 16 return " public final static int " + name + " = " + value + ";\n"; 17 } 18 19 public String toPrefixedCodeComment(String pfx) { 20 return pfx + "." + name + " "; 21 } 22 23 }