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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.nomagic.magicreport.engine.ITool
com.nomagic.magicreport.engine.ITool.HTMLString, com.nomagic.magicreport.engine.ITool.RetainedString, com.nomagic.magicreport.engine.ITool.Void
-
Field Summary
Fields inherited from class com.nomagic.magicreport.engine.Tool
context, properties
Fields inherited from interface com.nomagic.magicreport.engine.ITool
VOID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDeclaringElementName
(String modelName, String propertyName) Retrieve the name of meta-model which property name is declared.getElementProperties
(Element element) Return Collection of element properties name.getElementProperties
(String modelName) Retrieve Collection of element properties name from meta-model name.getElementProperty
(Element element, String propertyName) Retrieve property value of specified element and property name.getGeneralizationName
(String modelName) Return generalization model of modelName.getHumanPropertyName
(String propertyName) Return text representing property name.getPropertyTypeName
(Element element, String propertyName) Retrieve type of property.getPropertyTypeName
(String modelName, String propertyName) Retrieve type of property.Methods inherited from class com.nomagic.magicreport.engine.Tool
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setProperties
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.nomagic.magicreport.engine.ITool
clearTool
-
Field Details
-
CONTEXT_NAME
Contains a context name.- See Also:
-
-
Constructor Details
-
ProfilingTool
public ProfilingTool()
-
-
Method Details
-
getGeneralizationName
Return generalization model of modelName.- Parameters:
modelName
- meta-model name- Returns:
- generalization model
-
getDeclaringElementName
Retrieve the name of meta-model which property name is declared.- Parameters:
modelName
- meta-model namepropertyName
- property name- Returns:
- name of meta-model
-
getPropertyTypeName
Retrieve type of property.- Parameters:
modelName
- meta-model namepropertyName
- property name- Returns:
- name of property type
-
getPropertyTypeName
Retrieve type of property.- Parameters:
element
- target elementpropertyName
- property name- Returns:
- name of property type
-
getElementProperties
Retrieve Collection of element properties name from meta-model name.- Parameters:
modelName
- meta-model name- Returns:
- collection of element properties
-
getElementProperties
Return Collection of element properties name.- Parameters:
element
- target element- Returns:
- collection of element properties
-
getElementProperty
Retrieve property value of specified element and property name.- Parameters:
element
- target elementpropertyName
- property name- Returns:
- an Object of element property name.
-
getHumanPropertyName
Return text representing property name.- Parameters:
propertyName
- property name- Returns:
- a human name of given
propertyName
-