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 attributeGenericTo add a generic to an attribute.constantPrefixTag value to add on constants enumeration (or other incoming dev) a prefix to constant to generate.constantsTo add some constants to a class (will create PROPERTY_XXX constants).defaultPackageTag value to specify the default package used to generate.defaultValueStereotype to set default value of an attribute.documentationTag value to add on constants enumeration (or other incoming dev) a prefix to constant to generate.generateBooleanGetMethodsTag value to generate alsogetXXXmethods for a boolean property.i18nTag value to specify the i18n prefix to use whene generating i18n keys.orderedStereotype to mark an attribute with multiplicity as ordered.relativeNameExcludesWhen using relative names, you can define some package starter to exclude.skipStereotype to skip generation for some templates.uniqueStereotype to mark an attribute with multiplicity as unique.useRelativeNameTo use relative name in some generated classes as model (to be able to use same object name in different packages).versionTag 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 StringgetDefaultValue()StringgetDescription()Get the i18n documentation key.Class<EqualsTagValueNameMatcher>getMatcherClass()StringgetName()Get the stereotype name.Set<Class<?>>getTargets()Define the types of object model api which can use this tag value.Class<?>getType()booleanisDeprecated()static EugeneCoreTagValues.StorevalueOf(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 theversionfield 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 whene generating i18n keys. You can globaly use it on the complete model or to a specific classifier.- Since:
- 2.3
-
generateBooleanGetMethods
public static final EugeneCoreTagValues.Store generateBooleanGetMethods
Tag value to generate alsogetXXXmethods 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 withListorLinkedHashSetorLinkedHashMap.- 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.
-
defaultValue
public static final EugeneCoreTagValues.Store defaultValue
Stereotype to set default value of an attribute.
-
skip
public static final EugeneCoreTagValues.Store skip
Stereotype to skip generation for some templates.
-
defaultPackage
public static final EugeneCoreTagValues.Store defaultPackage
Tag value to specify the default package used to generate.- Since:
- 3.0
-
constants
public static final EugeneCoreTagValues.Store constants
To add some constants to a class (will create PROPERTY_XXX constants). You can globally use it on the complete model.- Since:
- 3.0
- See Also:
EugeneCoreTagValues.getConstants(ObjectModelClassifier)
-
useRelativeName
public static final EugeneCoreTagValues.Store useRelativeName
To use relative name in some generated classes as model (to be able to use same object name in different packages). You can globally use it on the complete model.- Since:
- 3.0
- See Also:
EugeneCoreTagValues.isUseRelativeName(ObjectModel)
-
relativeNameExcludes
public static final EugeneCoreTagValues.Store relativeNameExcludes
When using relative names, you can define some package starter to exclude. You can globally use it on the complete model.- Since:
- 3.0
- See Also:
EugeneCoreTagValues.getRelativeNameExcludes(ObjectModel)
-
-
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:TagValueMetadataGet the stereotype name.- Specified by:
getNamein interfaceTagValueMetadata- Returns:
- the stereotype name
-
getTargets
public Set<Class<?>> getTargets()
Description copied from interface:TagValueMetadataDefine the types of object model api which can use this tag value.- Specified by:
getTargetsin interfaceTagValueMetadata- Returns:
- the set of target object model element which can accept the tag value.
-
getType
public Class<?> getType()
- Specified by:
getTypein interfaceTagValueMetadata- Returns:
- the tag value type
-
getMatcherClass
public Class<EqualsTagValueNameMatcher> getMatcherClass()
- Specified by:
getMatcherClassin interfaceTagValueMetadata
-
getDescription
public String getDescription()
Description copied from interface:TagValueMetadataGet the i18n documentation key.- Specified by:
getDescriptionin interfaceTagValueMetadata- Returns:
- the i18n documentation key
-
getDefaultValue
public String getDefaultValue()
- Specified by:
getDefaultValuein interfaceTagValueMetadata- Returns:
- default value for this tag value
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceTagValueMetadata- Returns:
trueif this stereotype is deprecated
-
-