|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement
org.eclipse.tptp.platform.analysis.core.provider.AbstractAnalysisProvider
public abstract class AbstractAnalysisProvider
Provides common functionality for most analysis providers. Any methods here can be overridden by derivatives of this class
| Field Summary | |
|---|---|
static long |
MAX_SCORE
The maximum (worst) quality score that a provider should produce. |
static int |
PROVIDER_TYPE_CODE
Indicates a provider that measures code quality (i.e. code review) |
static int |
PROVIDER_TYPE_COMPLEXITY
Indicates a provider that measures code complexity |
static int |
PROVIDER_TYPE_COMPLIANCE
Indicates a provider that measures governance/compliance quality |
static int |
PROVIDER_TYPE_STRUCTURAL
Indicates a provider that measures structural quality |
static int |
PROVIDER_TYPE_UNKNOWN
Indicates a provider that measures an unknown quality |
static long |
UNSUPPORTED_SCORE
|
| Fields inherited from class org.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement |
|---|
CATEGORY_ELEMENT_TYPE, COMBO_VALUE, DETAIL_PROVIDER, PROVIDER_ELEMENT_TYPE, PROVIDER_MANAGER_ELEMENT_TYPE, RESULT_ELEMENT_TYPE, RULE_ELEMENT_TYPE |
| Method Summary | |
|---|---|
void |
addTemplate(RuleTemplate template)
INTERNAL USE ONLY Used internally to add new templates to the provider. |
void |
analyze(org.eclipse.core.runtime.IProgressMonitor parentMonitor,
AnalysisHistory history)
Analyze the categories selected by the user |
long |
getAnalysisScore(AnalysisHistory history)
Returns a calculated score of the analysis of this provider on a scale from 0 to 1000 (MAX_SCORE) where 0 is worst and 1000 is best. |
java.util.List |
getDataExporters()
Return a list of data exporters associated with this provider. |
org.eclipse.core.runtime.IProgressMonitor |
getProgressMonitor()
|
java.lang.Object |
getProperty(java.lang.String historyId,
java.lang.String name)
Retrieve the data from a previously set property value |
int |
getProviderQualityType()
This method indicated the type of quality measure that is supplied by this analysis provider. |
java.util.List |
getResources()
Return a list of IResources that were selected through the user interface. |
java.util.List |
getRuleTemplates()
INTERNAL USE ONLY |
IAnalysisViewer |
getViewer()
|
void |
removeProperty(java.lang.String historyId,
java.lang.String name)
Remove a property and it's data from the property table |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
|
void |
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
This method assigns the progress monitor to the provider. |
void |
setProperty(java.lang.String historyId,
java.lang.String name,
java.lang.Object data)
Provides a place to store data that may be common across multiple categories and/or rules. |
| Methods inherited from class org.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement |
|---|
addDetailProvider, addHistoryResultSet, addOwnedElement, addOwnedElements, addParameter, addParameters, deleteHistoryResults, dispose, getDetailProviders, getElementType, getExecutionHistory, getExternalDataMap, getHelpID, getHistoryResults, getIconName, getId, getLabel, getOwnedElements, getOwner, getOwnerId, getParameter, getParameterCount, getParameterList, getPluginId, getProvider, getProviderManager, getViewerID, getVisibleParameterCount, postAnalyze, preAnalyze, removeHistoryResultSet, removeHistoryResultSet, setElementType, setExternalDataMap, setHelpID, setIconName, setId, setInitializationData, setLabel, setOwner, setOwnerId, setPluginId, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PROVIDER_TYPE_UNKNOWN
public static final int PROVIDER_TYPE_CODE
public static final int PROVIDER_TYPE_COMPLEXITY
public static final int PROVIDER_TYPE_STRUCTURAL
public static final int PROVIDER_TYPE_COMPLIANCE
public static final long MAX_SCORE
public static final long UNSUPPORTED_SCORE
| Method Detail |
|---|
public final void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
throws org.eclipse.core.runtime.CoreException
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtensionorg.eclipse.core.runtime.CoreExceptionpublic final IAnalysisViewer getViewer()
public final java.util.List getResources()
public void analyze(org.eclipse.core.runtime.IProgressMonitor parentMonitor,
AnalysisHistory history)
parentMonitor - The progress monitor of the parent taskhistory - A reference to the history record for this analysispublic int getProviderQualityType()
public long getAnalysisScore(AnalysisHistory history)
history - The analysis history for which the quality score is requested
public final void setProperty(java.lang.String historyId,
java.lang.String name,
java.lang.Object data)
historyId - The unique identifier for the analysis run that stores the propertiesname - The name of the property where the data will be storeddata - The data to store
public final java.lang.Object getProperty(java.lang.String historyId,
java.lang.String name)
historyId - The unique identifier for the analysis run that stores the propertiesname - The name of the property where the data is stored
public final void removeProperty(java.lang.String historyId,
java.lang.String name)
historyId - The unique identifier for the analysis run that stores the propertiesname - The name of the property to be removespublic final void addTemplate(RuleTemplate template)
template - The rule template to add to the providerpublic final java.util.List getRuleTemplates()
public final org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
public final void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
progressMonitor - The progress monitor from the analysis providerpublic final java.util.List getDataExporters()
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||