allInstances.setFinal(true);
allInstances.addLine("new ", arrayType, "{", instanceList, "}");
JavaMethod getName = pSource.newJavaMethod("getName", String.class,
JavaSource.PUBLIC);
getName.newComment().addLine("The enumeration items name.");
getName.addLine("return ", name, ";");
JavaMethod getValue = pSource.newJavaMethod("getValue", String.class,
JavaSource.PUBLIC);
getValue.newComment().addLine("The enumeration items value.");