Class ProfilingTool

java.lang.Object
java.util.Observable
com.nomagic.magicreport.engine.Tool
com.nomagic.magicdraw.magicreport.tools.ProfilingTool
All Implemented Interfaces:
com.nomagic.magicreport.engine.ITool, com.nomagic.magicreport.IVariable, Serializable, Cloneable

@OpenApiAll public class ProfilingTool extends com.nomagic.magicreport.engine.Tool
Contains utilities functions for profiling MagicDraw meta-model. Context name of this class is "profiling".
Since:
November 27, 2007
See Also:
  • Field Details

  • Constructor Details

    • ProfilingTool

      public ProfilingTool()
  • Method Details

    • getGeneralizationName

      public Collection<String> getGeneralizationName(String modelName)
      Return generalization model of modelName.
      Parameters:
      modelName - meta-model name
      Returns:
      generalization model
    • getDeclaringElementName

      public String getDeclaringElementName(String modelName, String propertyName)
      Retrieve the name of meta-model which property name is declared.
      Parameters:
      modelName - meta-model name
      propertyName - property name
      Returns:
      name of meta-model
    • getPropertyTypeName

      public String getPropertyTypeName(String modelName, String propertyName)
      Retrieve type of property.
      Parameters:
      modelName - meta-model name
      propertyName - property name
      Returns:
      name of property type
    • getPropertyTypeName

      public String getPropertyTypeName(Element element, String propertyName)
      Retrieve type of property.
      Parameters:
      element - target element
      propertyName - property name
      Returns:
      name of property type
    • getElementProperties

      public Collection<String> getElementProperties(String modelName)
      Retrieve Collection of element properties name from meta-model name.
      Parameters:
      modelName - meta-model name
      Returns:
      collection of element properties
    • getElementProperties

      public Collection<String> getElementProperties(Element element)
      Return Collection of element properties name.
      Parameters:
      element - target element
      Returns:
      collection of element properties
    • getElementProperty

      public Object getElementProperty(Element element, String propertyName)
      Retrieve property value of specified element and property name.
      Parameters:
      element - target element
      propertyName - property name
      Returns:
      an Object of element property name.
    • getHumanPropertyName

      public String getHumanPropertyName(String propertyName)
      Return text representing property name.
      Parameters:
      propertyName - property name
      Returns:
      a human name of given propertyName