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 - dev@tchemit.fr
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEugeneCoreTagValues.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
-
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.documentationtag value on the given model.- Parameters:
model- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.3
- See Also:
EugeneCoreTagValues.Store.documentation
-
getDocumentationTagValue
public String getDocumentationTagValue(ObjectModelElement element)
Obtain the value of theEugeneCoreTagValues.Store.documentationtag value on the given element.- Parameters:
element- element to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.3
- See Also:
EugeneCoreTagValues.Store.documentation
-
getDocumentationTagValue
public String getDocumentationTagValue(ObjectModelPackage aPackage)
Obtain the value of theEugeneCoreTagValues.Store.documentationtag value on the given package.- Parameters:
aPackage- package to seek- Returns:
- the none empty value of the found tag value or
nullif 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
nullsi non spécifié - Since:
- 2.3
-
isGenerateBooleanGetMethods
public boolean isGenerateBooleanGetMethods(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theEugeneCoreTagValues.Store.generateBooleanGetMethodstag 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
nullif 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.constantPrefixtag 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
nullif not found nor empty. - Since:
- 2.3
- See Also:
EugeneCoreTagValues.Store.constantPrefix
-
getAttributeGenericTagValue
public String getAttributeGenericTagValue(ObjectModelAttribute attribute)
Obtain the value of theEugeneCoreTagValues.Store.attributeGenerictag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif 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.orderedboolean tag value.- Parameters:
attribute- attribute to test- Returns:
trueif 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.uniqueboolean tag value.- Parameters:
attribute- attribute to test- Returns:
trueif boolean tag value was found,false otherwise- Since:
- 2.9
- See Also:
EugeneCoreTagValues.Store.unique
-
getDefaultValue
public static String getDefaultValue(ObjectModelAttribute attribute)
Check if the given attribute has theEugeneCoreTagValues.Store.defaultValueboolean tag value.- Parameters:
attribute- attribute to test- Returns:
- default value or
nullif not found. - Since:
- 3.0
- See Also:
EugeneCoreTagValues.Store.defaultValue
-
isSkip
public static boolean isSkip(ObjectModelClassifier classifier, ObjectModelPackage aPackage)
Check if the given classifier has theEugeneCoreTagValues.Store.skipboolean tag value.- Parameters:
classifier- classifier to testaPackage- package to test- Returns:
trueif 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.skipboolean tag value.- Parameters:
aPackage- package to test- Returns:
trueif boolean tag value was found,false otherwise- See Also:
EugeneCoreTagValues.Store.skip
-
getDefaultPackage
public String getDefaultPackage(ObjectModelElement element)
Obtain the value of theEugeneCoreTagValues.Store.defaultPackagetag value on the given element.- Parameters:
element- element to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.3
- See Also:
EugeneCoreTagValues.Store.defaultPackage
-
getConstants
public Set<String> getConstants(ObjectModelClassifier classifier)
Get tag valueEugeneCoreTagValues.Store.constantson givenclassifier.- Parameters:
classifier- classifier to test- Returns:
nullif tag value was not found, set of constants to create.- See Also:
EugeneCoreTagValues.Store.constants
-
isUseRelativeName
public boolean isUseRelativeName(ObjectModel model)
Obtain the value of theEugeneCoreTagValues.Store.useRelativeNametag value on the given model.- Parameters:
model- model to seek- Returns:
truethe none empty value of the found tag value orfalseif not found nor empty.- Since:
- 3.0
- See Also:
EugeneCoreTagValues.Store.useRelativeName
-
getRelativeNameExcludes
public Set<String> getRelativeNameExcludes(ObjectModel model)
Get tag valueEugeneCoreTagValues.Store.relativeNameExcludeson givenmodel.- Parameters:
model- model to seek- Returns:
nullif tag value was not found, set of relative name exclude.- See Also:
EugeneCoreTagValues.Store.relativeNameExcludes
-
-