[forge-dev] Can you give me an example of an ENUM class in forge?

Lincoln Baxter lbaxter at redhat.com
Wed Jan 2 13:09:58 EST 2013


Best place to ask questions like these are over on forge-dev at lists.jboss.org, but since it's the new year ;)

"java new-enum-type {package} {quoted class body}"

But, if you are writing an addon, the best way to do this is using the JavaParser API, not with the Shell UI. I don't recommend calling plugins via the shell from other plugins.

~Lincoln

----- Original Message -----
From: "Robb Greathouse" <robb.greathouse at jboss.com>
To: "Lincoln Baxter" <lbaxter at redhat.com>
Sent: Thursday, December 27, 2012 8:21:11 PM
Subject: Can you give me an example of an ENUM class in forge?

Hi,

I am trying to generate a class of type enum.  Mean that instead of,

public emun MediaType{


}

instead of

public class MediaType[


}

doing 

entity --named doesn't work  any suggestions?

Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906



More information about the forge-dev mailing list