TaackMetaModelService (taack-ui 0.3.8 API)
Package: taack.base

[Groovy] Class TaackMetaModelService

    • taack.base.TaackMetaModelService


    • @grails.compiler.GrailsCompileStatic
      final class TaackMetaModelService
      extends java.lang.Object

      Service used to display domain class graphs. Depends on dot executable.

      • Properties Summary

      • Methods Summary

          Methods 
          Type Params Return Type Name and description
          java.lang.String buildEnumTransitionGraph(IEnumTransition2 enumTransition2)
          Create a string representing a transition graph for dot executable of an IEnumTransition2.
          java.util.Map<grails.util.Pair<java.lang.String, java.lang.String>, java.util.List<org.grails.datastore.gorm.GormEntity>> listObjectsPointingTo(org.grails.datastore.gorm.GormEntity entity)
          List objects pointing to this entity
          java.lang.String modelGraph(java.lang.Class toClass)
          Create a string representing a graph for dot executable, of classes pointing to the parameter class.
          void replaceEntity(org.grails.datastore.gorm.GormEntity entityFrom, org.grails.datastore.gorm.GormEntity entityTo)
          Helper method to replace an entity by another one.
          java.lang.String svg(java.lang.String graph)
          Call the dot executable to convert graph to SVG.
      • Inherited Methods Summary

          Inherited Methods 
          Methods inherited from class Name
          class java.lang.Object java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
      • Property Detail

        • @org.springframework.beans.factory.annotation.Value(value: ${exe.dot.path}) java.lang.String exeDotPath

        • org.hibernate.SessionFactory sessionFactory

      • Constructor Detail

        • TaackMetaModelService()

      • Method Detail

        • java.lang.String buildEnumTransitionGraph(IEnumTransition2 enumTransition2)

          Create a string representing a transition graph for dot executable of an IEnumTransition2. @return

          Parameters:
          enumTransition2

        • java.util.Map<grails.util.Pair<java.lang.String, java.lang.String>, java.util.List<org.grails.datastore.gorm.GormEntity>> listObjectsPointingTo(org.grails.datastore.gorm.GormEntity entity)

          List objects pointing to this entity

          Parameters:
          entity
          Returns:
          Type name, attribute name, list of objects

        • java.lang.String modelGraph(java.lang.Class toClass)

          Create a string representing a graph for dot executable, of classes pointing to the parameter class. @return

          Parameters:
          toClass

        • void replaceEntity(org.grails.datastore.gorm.GormEntity entityFrom, org.grails.datastore.gorm.GormEntity entityTo)

          Helper method to replace an entity by another one.

          Parameters:
          entityFrom
          entityTo

        • java.lang.String svg(java.lang.String graph)

          Call the dot executable to convert graph to SVG.

          Parameters:
          graph - Dot executable input string
          Returns:
          SVG String