Package org.nuiton.eugene.java
Class BeanTransformerTagValues
- java.lang.Object
-
- org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
-
- org.nuiton.eugene.java.BeanTransformerTagValues
-
- All Implemented Interfaces:
TagValueMetadatasProvider
@Component(role=org.nuiton.eugene.models.extension.tagvalue.provider.TagValueMetadatasProvider.class, hint="bean") @AutoService(org.nuiton.eugene.models.extension.tagvalue.provider.TagValueMetadatasProvider.class) public class BeanTransformerTagValues extends DefaultTagValueMetadatasProvider
Defines all tag values managed by Java templates.- Since:
- 2.5.6
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBeanTransformerTagValues.Store
-
Field Summary
-
Fields inherited from class org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
matcher, tagValues
-
-
Constructor Summary
Constructors Constructor Description BeanTransformerTagValues()
-
Method Summary
-
Methods inherited from class org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
getDefinitionForMatcher, getTagValue, getTagValues, validate
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
-
getSuperClassTagValue
public String getSuperClassTagValue(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.superClasstag value on the given model or classifier. It will first look on the model, and then in the given classifier.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.superClass
-
getHelperSuperClassTagValue
public String getHelperSuperClassTagValue(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.helperSuperClasstag value on the given model or classifier. It will first look on the model, and then in the given classifier.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.helperSuperClass
-
getClassNamePrefixTagValue
public String getClassNamePrefixTagValue(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.classNamePrefixtag value on the given model or classifier. It will first look on the model, and then in the given classifier.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.classNamePrefix
-
getClassNameSuffixTagValue
public String getClassNameSuffixTagValue(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.classNameSuffixtag value on the given model or classifier. It will first look on the model, and then in the given classifier.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.classNameSuffix
-
getHelperClassNamePrefixTagValue
public String getHelperClassNamePrefixTagValue(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.helperClassNamePrefixtag value on the given model or classifier. It will first look on the model, and then in the given classifier.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.helperClassNamePrefix
-
getHelperClassNameSuffixTagValue
public String getHelperClassNameSuffixTagValue(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.helperClassNameSuffixtag value on the given model or classifier. It will first look on the model, and then in the given classifier. If not filled, then use defaultsvalue.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.helperClassNameSuffix
-
isGenerateHelper
public boolean isGenerateHelper(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.generateHelpertag value on the given model or classifier. It will first look on the model, and then in the given classifier.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.generateHelper
-
isGenerateHelperPredicates
public boolean isGenerateHelperPredicates(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.generateHelperPredicatestag value on the given model or classifier. It will first look on the model, and then in the given classifier. If not filled, then use defaultsvalue.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.generateHelperPredicates
-
isGenerateHelperFunctions
public boolean isGenerateHelperFunctions(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.generateHelperFunctionstag value on the given model or classifier. It will first look on the model, and then in the given classifier. If not filled, then use defaultsvalue.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.generateHelperFunctions
-
isGenerateHelperConstructors
public boolean isGenerateHelperConstructors(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.generateHelperConstructorstag value on the given model or classifier. It will first look on the model, and then in the given classifier. If not filled, then use defaultsvalue.- Parameters:
classifier- classifier to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
BeanTransformerTagValues.Store.generateHelperConstructors
-
isGeneratePropertyChangeSupport
public boolean isGeneratePropertyChangeSupport(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.generatePropertyChangeSupporttag value on the given model, package or classifier. It will first look on the model, then and package and then in the given classifier. If no value found, then will use the default value of the tag value.- 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:
- 3.0
- See Also:
BeanTransformerTagValues.Store.generatePropertyChangeSupport
-
isGenerateNotEmptyCollections
public boolean isGenerateNotEmptyCollections(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Obtain the value of theBeanTransformerTagValues.Store.generateNotEmptyCollectionstag value on the given model, package or classifier. It will first look on the model, then and package and then in the given classifier. If no value found, then will use the default value of the tag value.- 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:
- 3.0
- See Also:
BeanTransformerTagValues.Store.generateNotEmptyCollections
-
isAddJavaBeanAnnotation
public boolean isAddJavaBeanAnnotation(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
Check if the given model, package or classifier has theBeanTransformerTagValues.Store.addJavaBeanAnnotationstereotype.- Parameters:
classifier- classifier to testaPackage- package to testmodel- model to test- Returns:
trueif tag value was found,false otherwise- See Also:
BeanTransformerTagValues.Store.addJavaBeanAnnotation
-
-