@OpenApiAll
public class ProfilingTool
extends com.nomagic.magicreport.engine.Tool
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_NAME
Contains a context name.
|
Constructor and Description |
---|
ProfilingTool() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeclaringElementName(java.lang.String modelName,
java.lang.String propertyName)
Retrieve the name of meta-model which property name is declared.
|
java.util.Collection<java.lang.String> |
getElementProperties(Element element)
Return Collection of element properties name.
|
java.util.Collection<java.lang.String> |
getElementProperties(java.lang.String modelName)
Retrieve Collection of element properties name from meta-model name.
|
java.lang.Object |
getElementProperty(Element element,
java.lang.String propertyName)
Retrieve property value of specified element and property name.
|
java.util.Collection<java.lang.String> |
getGeneralizationName(java.lang.String modelName)
Return generalization model of modelName.
|
java.lang.String |
getHumanPropertyName(java.lang.String propertyName)
Return text representing property name.
|
java.lang.String |
getPropertyTypeName(Element element,
java.lang.String propertyName)
Retrieve type of property.
|
java.lang.String |
getPropertyTypeName(java.lang.String modelName,
java.lang.String propertyName)
Retrieve type of property.
|
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setProperties
public static final java.lang.String CONTEXT_NAME
public java.util.Collection<java.lang.String> getGeneralizationName(java.lang.String modelName)
modelName
- meta-model namepublic java.lang.String getDeclaringElementName(java.lang.String modelName, java.lang.String propertyName)
modelName
- meta-model namepropertyName
- property namepublic java.lang.String getPropertyTypeName(java.lang.String modelName, java.lang.String propertyName)
modelName
- meta-model namepropertyName
- property namepublic java.lang.String getPropertyTypeName(Element element, java.lang.String propertyName)
element
- target elementpropertyName
- property namepublic java.util.Collection<java.lang.String> getElementProperties(java.lang.String modelName)
modelName
- meta-model namepublic java.util.Collection<java.lang.String> getElementProperties(Element element)
element
- target elementpublic java.lang.Object getElementProperty(Element element, java.lang.String propertyName)
element
- target elementpropertyName
- property namepublic java.lang.String getHumanPropertyName(java.lang.String propertyName)
propertyName
- property namepropertyName