Package org.nuiton.eugene
Class EugeneCoreTagValues
- java.lang.Object
-
- org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
-
- org.nuiton.eugene.EugeneCoreTagValues
-
- All Implemented Interfaces:
TagValueMetadatasProvider
@Component(role=TagValueMetadatasProvider.class, hint="eugene") public class EugeneCoreTagValues extends DefaultTagValueMetadatasProvider
Created on 24/09/16. Defines all tag values managed by Eugene. In another library using eugene, please extends this contract to put your own tag values, to get a unique place where to find tag values.- Since:
- 3.0
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EugeneCoreTagValues.Store
-
Field Summary
-
Fields inherited from class org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
matcher, tagValues
-
-
Constructor Summary
Constructors Constructor Description EugeneCoreTagValues()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttributeGenericTagValue(ObjectModelAttribute attribute)
Obtain the value of theEugeneCoreTagValues.Store.attributeGeneric
tag value on the given attribute.String
getConstantPrefixTagValue(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theEugeneCoreTagValues.Store.constantPrefix
tag value on the given model or classifier.String
getDescription()
String
getDocumentationTagValue(ObjectModel model)
Obtain the value of theEugeneCoreTagValues.Store.documentation
tag value on the given model.String
getDocumentationTagValue(ObjectModelElement element)
Obtain the value of theEugeneCoreTagValues.Store.documentation
tag value on the given element.String
getDocumentationTagValue(ObjectModelPackage aPackage)
Obtain the value of theEugeneCoreTagValues.Store.documentation
tag value on the given package.String
getGeneratedAnnotationTagValue(ObjectModelElement element, ObjectModelPackage aPackage, ObjectModel model)
Cherche et renvoie le préfixe i18n à utiliser sur cet element, sinon sur le model.String
getI18nPrefixTagValue(ObjectModelElement element, ObjectModelPackage aPackage, ObjectModel model)
Cherche et renvoie le préfixe i18n à utiliser sur cet element, sinon sur le model.boolean
isGenerateBooleanGetMethods(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theEugeneCoreTagValues.Store.generateBooleanGetMethods
tag value on the given model, package or classifier.static boolean
isOrdered(ObjectModelAttribute attribute)
Check if the given attribute has theEugeneCoreTagValues.Store.ordered
boolean tag value.static boolean
isSkip(ObjectModelClassifier classifier, ObjectModelPackage aPackage)
Check if the given classifier has theEugeneCoreTagValues.Store.skip
boolean tag value.static boolean
isSkip(ObjectModelPackage aPackage)
Check if the given package has theEugeneCoreTagValues.Store.skip
boolean tag value.static boolean
isUnique(ObjectModelAttribute attribute)
Check if the given attribute has theEugeneCoreTagValues.Store.unique
boolean tag value.-
Methods inherited from class org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
getDefinitionForMatcher, getTagValue, getTagValues, validate
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
-
getDocumentationTagValue
public String getDocumentationTagValue(ObjectModel model)
Obtain the value of theEugeneCoreTagValues.Store.documentation
tag value on the given model.- Parameters:
model
- model to seek- Returns:
- the none empty value of the found tag value or
null
if not found nor empty. - Since:
- 2.3
- See Also:
EugeneCoreTagValues.Store.documentation
-
getDocumentationTagValue
public String getDocumentationTagValue(ObjectModelElement element)
Obtain the value of theEugeneCoreTagValues.Store.documentation
tag value on the given element.- Parameters:
element
- element to seek- Returns:
- the none empty value of the found tag value or
null
if not found nor empty. - Since:
- 2.3
- See Also:
EugeneCoreTagValues.Store.documentation
-
getDocumentationTagValue
public String getDocumentationTagValue(ObjectModelPackage aPackage)
Obtain the value of theEugeneCoreTagValues.Store.documentation
tag value on the given package.- Parameters:
aPackage
- package to seek- Returns:
- the none empty value of the found tag value or
null
if not found nor empty. - Since:
- 2.12
- See Also:
EugeneCoreTagValues.Store.documentation
-
getI18nPrefixTagValue
public String getI18nPrefixTagValue(ObjectModelElement element, ObjectModelPackage aPackage, ObjectModel model)
Cherche et renvoie le préfixe i18n à utiliser sur cet element, sinon sur le model.- Parameters:
element
- element to seekaPackage
- package to seekmodel
- model to seek- Returns:
- le préfixe i18n ou
null
si non spécifié - Since:
- 2.3
-
getGeneratedAnnotationTagValue
public String getGeneratedAnnotationTagValue(ObjectModelElement element, ObjectModelPackage aPackage, ObjectModel model)
Cherche et renvoie le préfixe i18n à utiliser sur cet element, sinon sur le model.- Parameters:
element
- element to seekaPackage
- package to seekmodel
- model to seek- Returns:
- le préfixe i18n ou
null
si non spécifié - Since:
- 2.3
-
isGenerateBooleanGetMethods
public boolean isGenerateBooleanGetMethods(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theEugeneCoreTagValues.Store.generateBooleanGetMethods
tag value on the given model, package or classifier. It will first look on the model, then on package and then in the given classifier.- Parameters:
classifier
- classifier to seekaPackage
- package to seekmodel
- model to seek- Returns:
- the none empty value of the found tag value or
null
if not found nor empty. - Since:
- 2.12
- See Also:
EugeneCoreTagValues.Store.generateBooleanGetMethods
-
getConstantPrefixTagValue
public String getConstantPrefixTagValue(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theEugeneCoreTagValues.Store.constantPrefix
tag value on the given model or classifier. It will first look on the model, and then in the given classifier.- Parameters:
classifier
- classifier to seekaPackage
- package to seekmodel
- model to seek- Returns:
- the none empty value of the found tag value or
null
if not found nor empty. - Since:
- 2.3
- See Also:
EugeneCoreTagValues.Store.constantPrefix
-
getAttributeGenericTagValue
public String getAttributeGenericTagValue(ObjectModelAttribute attribute)
Obtain the value of theEugeneCoreTagValues.Store.attributeGeneric
tag value on the given attribute.- Parameters:
attribute
- attribute to seek- Returns:
- the none empty value of the found tag value or
null
if not found nor empty. - Since:
- 3.0
- See Also:
EugeneCoreTagValues.Store.attributeGeneric
-
isOrdered
public static boolean isOrdered(ObjectModelAttribute attribute)
Check if the given attribute has theEugeneCoreTagValues.Store.ordered
boolean tag value.- Parameters:
attribute
- attribute to test- Returns:
true
if boolean tag value was found,false otherwise
- Since:
- 2.9
- See Also:
EugeneCoreTagValues.Store.ordered
-
isUnique
public static boolean isUnique(ObjectModelAttribute attribute)
Check if the given attribute has theEugeneCoreTagValues.Store.unique
boolean tag value.- Parameters:
attribute
- attribute to test- Returns:
true
if boolean tag value was found,false otherwise
- Since:
- 2.9
- See Also:
EugeneCoreTagValues.Store.unique
-
isSkip
public static boolean isSkip(ObjectModelClassifier classifier, ObjectModelPackage aPackage)
Check if the given classifier has theEugeneCoreTagValues.Store.skip
boolean tag value.- Parameters:
classifier
- classifier to testaPackage
- package to test- Returns:
true
if boolean tag value was found,false otherwise
- Since:
- 2.9
- See Also:
EugeneCoreTagValues.Store.skip
-
isSkip
public static boolean isSkip(ObjectModelPackage aPackage)
Check if the given package has theEugeneCoreTagValues.Store.skip
boolean tag value.- Parameters:
aPackage
- package to test- Returns:
true
if boolean tag value was found,false otherwise
- See Also:
EugeneCoreTagValues.Store.skip
-
-