Class TopiaCoreTagValues

java.lang.Object
org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
org.nuiton.topia.templates.TopiaCoreTagValues
All Implemented Interfaces:
org.nuiton.eugene.models.extension.tagvalue.provider.TagValueMetadatasProvider

@Component(role=org.nuiton.eugene.models.extension.tagvalue.provider.TagValueMetadatasProvider.class, hint="topia-core") public class TopiaCoreTagValues extends org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
All extra tag values usable in topia generators.
Since:
2.5
Author:
Tony Chemit - chemit@codelutin.com
  • Constructor Details

    • TopiaCoreTagValues

      public TopiaCoreTagValues()
  • Method Details

    • getDescription

      public String getDescription()
    • getAnnotationTagValue

      public String getAnnotationTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaCoreTagValues.Store.annotation 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:
      2.5
      See Also:
    • getContextableTagValue

      public boolean getContextableTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model)
      Obtain the value of the TopiaCoreTagValues.Store.contextable tag value on the given classifier or model.
      Parameters:
      classifier - classifier to seek
      aPackage - FIXME
      model - model to seek
      Returns:
      the boolean value of the found tag value or false if not found nor empty.
      Since:
      2.5
      See Also:
    • getNotGenerateToStringTagValue

      public boolean getNotGenerateToStringTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier clazz, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model)
      Obtain the value of the TopiaCoreTagValues.Store.notGenerateToString tag value on the given class.
      Parameters:
      clazz - class to seek
      aPackage - FIXME
      model - model to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getDaoImplementationTagValue

      public String getDaoImplementationTagValue(org.nuiton.eugene.models.object.ObjectModel model)
      Obtains the value of the TopiaCoreTagValues.Store.daoImplementation 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.5
      See Also:
    • getPersistenceContextSuperClassTagValue

      public String getPersistenceContextSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModel model)
      Obtains the value of the TopiaCoreTagValues.Store.persistenceContextSuperClass tag value on the model.
      Parameters:
      model - model to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      3.0
      See Also:
    • getApplicationContextSuperClassTagValue

      public String getApplicationContextSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModel model)
      Obtains the value of the TopiaCoreTagValues.Store.applicationContextSuperClass tag value on the model.
      Parameters:
      model - model to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      3.0
      See Also:
    • getDaoSuperClassTagValue

      public String getDaoSuperClassTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model)
      Obtains the value of the TopiaCoreTagValues.Store.daoSuperClass tag value on the given classifier or on the model.
      Parameters:
      model - model to seek
      aPackage - FIXME
      classifier - FIXME
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      3.0
      See Also:
    • getEntitySuperClassTagValue

      public String getEntitySuperClassTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model)
      Obtains the value of the TopiaCoreTagValues.Store.entitySuperClass tag value on the given classifier or on the model.
      Parameters:
      model - model to seek
      aPackage - FIXME
      classifier - FIXME
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      3.0
      See Also:
    • getGenerateOperatorForDAOHelperTagValue

      public boolean getGenerateOperatorForDAOHelperTagValue(org.nuiton.eugene.models.object.ObjectModel model)
      Cherche si le tagvalue TopiaCoreTagValues.Store.generateOperatorForDAOHelper a été activé dans le model.
      Parameters:
      model - le modele utilisé
      Returns:
      true si le tag value trouvé dans le modèle, false sinon.
      Since:
      2.5
      See Also:
    • getSerialVersionUIDTagValue

      public String getSerialVersionUIDTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier aClass)
      Récupère le tagvalue TopiaCoreTagValues.Store.serialVersionUID sur la classe donnée.
      Parameters:
      aClass - le modele utilisé
      Returns:
      la valeur du tag value sur la classe
      Since:
      3.0
      See Also:
    • isGeneratePropertyChangeSupport

      public boolean isGeneratePropertyChangeSupport(org.nuiton.eugene.models.object.ObjectModelClass clazz, org.nuiton.eugene.models.object.ObjectModel model)
    • isEntity

      public boolean isEntity(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage)
      Check if the given classifier has the TopiaCoreTagValues.Store.entity stereotype.
      Parameters:
      aPackage - FIXME
      classifier - classifier to test
      Returns:
      true if stereotype was found, false otherwise
      Since:
      2.5
      See Also:
    • isPrimaryKey

      @Deprecated public boolean isPrimaryKey(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Deprecated.
      since 3.0, not used in ToPIA
      Check if the given attribute has the TopiaCoreTagValues.Store.primaryKey stereotype.
      Parameters:
      attribute - attribute to test
      Returns:
      true if stereotype was found, false otherwise
      Since:
      2.5
      See Also:
    • getDeprecatedModelTagValueMessage

      public String getDeprecatedModelTagValueMessage(org.nuiton.eugene.models.object.ObjectModel model, String deprecatedTagValue, String newTagValue, String value)