Package org.nuiton.eugene
Enum EugeneCoreTagValues.Store
- java.lang.Object
-
- java.lang.Enum<EugeneCoreTagValues.Store>
-
- org.nuiton.eugene.EugeneCoreTagValues.Store
-
- All Implemented Interfaces:
Serializable
,Comparable<EugeneCoreTagValues.Store>
,TagValueMetadata
- Enclosing class:
- EugeneCoreTagValues
public static enum EugeneCoreTagValues.Store extends Enum<EugeneCoreTagValues.Store> implements TagValueMetadata
-
-
Enum Constant Summary
Enum Constants Enum Constant Description attributeGeneric
To add a generic to an attribute.constantPrefix
Tag value to add on constants enumeration (or other incoming dev) a prefix to constant to generate.documentation
Tag value to add on constants enumeration (or other incoming dev) a prefix to constant to generate.generateBooleanGetMethods
Tag value to generate alsogetXXX
methods for a boolean property.generatedAnnotation
Tag value to specify the @Generated annotation class name.i18n
Tag value to specify the i18n prefix to use where generating i18n keys.ordered
Stereotype to mark an attribute with multiplicity as ordered.skip
Stereotype to skip generation for some templates.unique
Stereotype to mark an attribute with multiplicity as unique.version
Tag value to add the version of the model from outside (says in the properties file associated to the model)..
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultValue()
String
getDescription()
Get the i18n documentation key.Class<EqualsTagValueNameMatcher>
getMatcherClass()
String
getName()
Get the stereotype name.Set<Class<?>>
getTargets()
Define the types of object model api which can use this tag value.Class<?>
getType()
boolean
isDeprecated()
static EugeneCoreTagValues.Store
valueOf(String name)
Returns the enum constant of this type with the specified name.static EugeneCoreTagValues.Store[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
version
public static final EugeneCoreTagValues.Store version
Tag value to add the version of the model from outside (says in the properties file associated to the model).. Actually, the eugene api does not use to modify the model. ItaTa is only used while reading the properties associated with a model and if found is directly set to theversion
field of the model.- Since:
- 2.3
-
documentation
public static final EugeneCoreTagValues.Store documentation
Tag value to add on constants enumeration (or other incoming dev) a prefix to constant to generate. You can globaly use it on the complete model or to a specific classifier.- Since:
- 2.5
-
constantPrefix
public static final EugeneCoreTagValues.Store constantPrefix
Tag value to add on constants enumeration (or other incoming dev) a prefix to constant to generate. You can globaly use it on the complete model or to a specific classifier.- Since:
- 2.3
-
i18n
public static final EugeneCoreTagValues.Store i18n
Tag value to specify the i18n prefix to use where generating i18n keys. You can globaly use it on the complete model or to a specific classifier.- Since:
- 2.3
-
generatedAnnotation
public static final EugeneCoreTagValues.Store generatedAnnotation
Tag value to specify the @Generated annotation class name. You can globaly use it on the complete model or to a specific classifier.- Since:
- 3.0
-
generateBooleanGetMethods
public static final EugeneCoreTagValues.Store generateBooleanGetMethods
Tag value to generate alsogetXXX
methods for a boolean property.- Since:
- 2.12
-
attributeGeneric
public static final EugeneCoreTagValues.Store attributeGeneric
To add a generic to an attribute.- Since:
- 3.0
-
ordered
public static final EugeneCoreTagValues.Store ordered
Stereotype to mark an attribute with multiplicity as ordered. It means that order of insertion is maintained: in Java, it will lead to a collection typed withList
orLinkedHashSet
orLinkedHashMap
.- Since:
- 2.8
-
unique
public static final EugeneCoreTagValues.Store unique
Stereotype to mark an attribute with multiplicity as unique. It means that uniqueness of elements is maintained in the collection: in Java, it will lead to a collection typed withSet
.
-
skip
public static final EugeneCoreTagValues.Store skip
Stereotype to skip generation for some templates.
-
-
Method Detail
-
values
public static EugeneCoreTagValues.Store[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EugeneCoreTagValues.Store c : EugeneCoreTagValues.Store.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EugeneCoreTagValues.Store valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
Description copied from interface:TagValueMetadata
Get the stereotype name.- Specified by:
getName
in interfaceTagValueMetadata
- Returns:
- the stereotype name
-
getTargets
public Set<Class<?>> getTargets()
Description copied from interface:TagValueMetadata
Define the types of object model api which can use this tag value.- Specified by:
getTargets
in interfaceTagValueMetadata
- Returns:
- the set of target object model element which can accept the tag value.
-
getType
public Class<?> getType()
- Specified by:
getType
in interfaceTagValueMetadata
- Returns:
- the tag value type
-
getMatcherClass
public Class<EqualsTagValueNameMatcher> getMatcherClass()
- Specified by:
getMatcherClass
in interfaceTagValueMetadata
-
getDescription
public String getDescription()
Description copied from interface:TagValueMetadata
Get the i18n documentation key.- Specified by:
getDescription
in interfaceTagValueMetadata
- Returns:
- the i18n documentation key
-
getDefaultValue
public String getDefaultValue()
- Specified by:
getDefaultValue
in interfaceTagValueMetadata
- Returns:
- default value for this tag value
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecated
in interfaceTagValueMetadata
- Returns:
true
if this stereotype is deprecated
-
-