public class EnumConfig extends Object
Constructor and Description |
---|
EnumConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addEnumValue(EnumValue enumValue) |
List<String> |
getComments()
Set comments for this enumeration.
|
String |
getEnumNameByValue(String value) |
List<EnumValue> |
getEnumValues()
Specify the enum constants.
|
String |
getJavadoc() |
String |
getJavadoc(String prepend) |
String |
getName()
Set the name of the generated enum.
|
String |
getRootPackage()
Allows you to override the default root package.
|
String |
getSubPackage()
When you define a sub-package, the resulting enum's package becomes "
|
EnumType |
getType()
The JPA enum type.
|
String |
getUserType()
Specifiy the user type implementation to use to be given to hibernate
Example: name="com.youcompany.hibernate.support.CustomDateUserType" |
boolean |
hasEnum() |
boolean |
hasName() |
boolean |
hasRootPackage() |
boolean |
hasSubPackage() |
boolean |
hasType() |
boolean |
hasUserType() |
boolean |
hasValues() |
boolean |
isCustomType() |
boolean |
isOrdinal() |
boolean |
isString() |
void |
setComments(List<String> comments) |
void |
setEnumValues(List<EnumValue> enumValues) |
void |
setName(String name) |
void |
setRootPackage(String rootPackage) |
void |
setSubPackage(String subPackage) |
void |
setType(EnumType type) |
void |
setUserType(String userType) |
public String getName()
public boolean hasName()
public String getRootPackage()
public boolean hasRootPackage()
public String getSubPackage()
public boolean hasSubPackage()
public EnumType getType()
public boolean hasType()
public void addEnumValue(EnumValue enumValue)
public boolean hasValues()
public boolean hasEnum()
public String getJavadoc()
public String getUserType()
public boolean hasUserType()
public boolean isOrdinal()
public boolean isCustomType()
public boolean isString()
public void setName(String name)
public void setRootPackage(String rootPackage)
public void setSubPackage(String subPackage)
public void setType(EnumType type)
public void setUserType(String userType)
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.