TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.analysis.core.element
Interface IAnalysisElement

All Known Subinterfaces:
IAnalysisCategory, IAnalysisProvider, IAnalysisProviderManager, IAnalysisResult, IAnalysisRule
All Known Implementing Classes:
AbstractAnalysisCategory, AbstractAnalysisRule, DefaultAnalysisCategory, RuleCastingPreferCppStyleCast, RuleClassesAssignmentOperator, RuleClassesAvoidOverloading, RuleClassesAvoidPublicProtectedFields, RuleClassesCopyConstructor, RuleClassesDeclareOpEquals, RuleClassesDefaultClassFunctions, RuleClassesImplicitTypeConversion, RuleClassesOperatorDelete, RuleConditionalAssignmentInCondition, RuleConditionalNegationIfCondition, RuleConditionalTernary, RuleDeclarationHideNormalNew, RuleDeclarationInitializeOrder, RuleDeclarationMutipleDeclarations, RuleExceptionsCatchReference, RuleExceptionsDestructorThrow, RuleFunctionCopyConstructAllMembers, RuleFunctionOperatorAssignAllMembers, RuleFunctionOperatorAssignReturn, RuleFunctionOperatorAssignSelfCheck, RuleFunctionOperatorIncrReturn, RuleFunctionOperatorReturnConstObject, RuleFunctionOverloadPointerAndNumber, RuleFunctionPreferInitialization, RuleFunctionPreferPassByReference, RuleFunctionReturningNewObject, RuleFunctionReturnPrivateReference, RuleInheritanceDesctructorVirtual, RuleInheritanceOverrideDefaultParameter, RuleInheritanceOverrideNonVirtual, RuleLoopAssignLoopVariable, RuleLoopContinueStatement, RuleLoopNoConditionForLoop, RuleLoopNoInitIncrForLoop, RuleMemoryDeletePointers, RuleMemoryNewDeleteForm, RulePreprocessorAvoidDefineConst, RulePreprocessorAvoidStdio, RuleStatementAvoidMalloc, RuleStatementPreferPrefix, RuleSwitchBranch, RuleSwitchDefaultLabel, Template_Avoid_Class_Method, Template_Avoid_Class_Method_Arguments, Template_Avoid_Extending_Class, TemplateAvoidCatchingException, TemplateAvoidClass, TemplateAvoidClassInstanceCreation, TemplateAvoidImplementingInterface, TemplateAvoidMethodInvocation, TemplateAvoidNewClass, TemplateAvoidNonSynchronizedClassMethod, TemplateAvoidPackage, TemplateAvoidThrowingException

Deprecated. extend AbstractAnalysisElement instead

public interface IAnalysisElement

The base interface for all analysis elements


Method Summary
 void addDetailProvider(RuleDetailProvider detail)
          Deprecated. Add a new detail provider to this element.
 void addHistoryResultSet(java.lang.String historyId)
          Deprecated. Add this element to the history result set
 void addOwnedElement(AbstractAnalysisElement element)
          Deprecated. Add an IAnalysisElement instance to the list of owned elements
 void addOwnedElements(java.util.Collection c)
          Deprecated. Add a collection of IAnalysisElement instances to the list of owned elements
 void dispose()
          Deprecated. This method is called when the element is about to be disposed.
 java.util.List getDetailProviders()
          Deprecated. This method returns a list of detail provider definitions specified for this element.
 int getElementType()
          Deprecated. Return the element type.
 java.util.Map getExternalDataMap()
          Deprecated.  
 java.lang.String getHelpID()
          Deprecated.  
 java.util.List getHistoryResults(java.lang.String historyId)
          Deprecated. Return the analysis result for a given history
 java.lang.String getIconName()
          Deprecated.  
 java.lang.String getId()
          Deprecated.  
 java.lang.String getLabel()
          Deprecated.  
 java.util.List getOwnedElements()
          Deprecated.  
 AbstractAnalysisElement getOwner()
          Deprecated.  
 java.lang.String getPluginId()
          Deprecated.  
 void preAnalyze()
          Deprecated. Perform any set up required before analysis starts.
 void removeHistoryResultSet(java.lang.String historyId)
          Deprecated. Remove the result data associated with the specified history id
 void setElementType(int elementType)
          Deprecated. Set the element type.
 void setExternalDataMap(java.util.Map externalMap)
          Deprecated. INTERNAL USE ONLY Set the map of ExternalMap instances.
 void setHelpID(java.lang.String id)
          Deprecated. Internal use only.
 void setIconName(java.lang.String newIconName)
          Deprecated. Allows an element to configure its own icon name
 void setId(java.lang.String id)
          Deprecated. Internal use only.
 void setLabel(java.lang.String newLabel)
          Deprecated. Allows an analysis element to configure it own display label
 void setOwner(AbstractAnalysisElement owner)
          Deprecated. Tell this element who its owner is.
 void setPluginId(java.lang.String pluginId)
          Deprecated. Used Internally.
 

Method Detail

dispose

void dispose()
Deprecated. 
This method is called when the element is about to be disposed. The element should do any required clean up at this point


getId

java.lang.String getId()
Deprecated. 
Returns:
The unique identifier for this element

setId

void setId(java.lang.String id)
Deprecated. 
Internal use only. Sets the unique id of this element.

Parameters:
id - The new id for the element

getPluginId

java.lang.String getPluginId()
Deprecated. 
Returns:
The unique id of the plugin that defined the analysis element

setPluginId

void setPluginId(java.lang.String pluginId)
Deprecated. 
Used Internally. Calling this method will have no effect

Parameters:
pluginId -

setIconName

void setIconName(java.lang.String newIconName)
Deprecated. 
Allows an element to configure its own icon name

Parameters:
newIconName - The path name of the icon to use for this element

getIconName

java.lang.String getIconName()
Deprecated. 
Returns:
The file name of the icon to use for this element

getLabel

java.lang.String getLabel()
Deprecated. 
Returns:
The display name to use for this element

setLabel

void setLabel(java.lang.String newLabel)
Deprecated. 
Allows an analysis element to configure it own display label

Parameters:
newLabel - The label

getOwner

AbstractAnalysisElement getOwner()
Deprecated. 
Returns:
The category that owns this element

setOwner

void setOwner(AbstractAnalysisElement owner)
Deprecated. 
Tell this element who its owner is. Used Internally

Parameters:
owner - The element that owns this element

getOwnedElements

java.util.List getOwnedElements()
Deprecated. 
Returns:
A list of IAnalysisElement instances owned by this element

addOwnedElement

void addOwnedElement(AbstractAnalysisElement element)
Deprecated. 
Add an IAnalysisElement instance to the list of owned elements

Parameters:
element - THe new element to add

addOwnedElements

void addOwnedElements(java.util.Collection c)
Deprecated. 
Add a collection of IAnalysisElement instances to the list of owned elements

Parameters:
c - The collection of elements to add

addHistoryResultSet

void addHistoryResultSet(java.lang.String historyId)
Deprecated. 
Add this element to the history result set

Parameters:
historyId - The id of the history analysis run

removeHistoryResultSet

void removeHistoryResultSet(java.lang.String historyId)
Deprecated. 
Remove the result data associated with the specified history id

Parameters:
historyId - The id of the history analysis run being removed

getHistoryResults

java.util.List getHistoryResults(java.lang.String historyId)
Deprecated. 
Return the analysis result for a given history

Parameters:
historyId - The id of the history analysis run to return
Returns:
A list of IAnalysisResult elements for the given history

preAnalyze

void preAnalyze()
Deprecated. 
Perform any set up required before analysis starts. This action happens only once (e.g. when the user clicks the "analyze" button) per analysis run


getElementType

int getElementType()
Deprecated. 
Return the element type. Values returned are: PROVIDER_MANAGER_ELEMENT_TYPE, PROVIDER_ELEMENT_TYPE, CATEGORY_ELEMENT_TYPE, RULE_ELEMENT_TYPE, RESULT_ELEMENT_TYPE

Returns:
The unique element type for this element

setElementType

void setElementType(int elementType)
Deprecated. 
Set the element type. This method can be called only once. Subsequent calls are ignored. Valid values for this method are defined in the following constants: PROVIDER_MANAGER_ELEMENT_TYPE, PROVIDER_ELEMENT_TYPE, CATEGORY_ELEMENT_TYPE, RULE_ELEMENT_TYPE, RESULT_ELEMENT_TYPE

Parameters:
elementType - The new element type.

getHelpID

java.lang.String getHelpID()
Deprecated. 
Returns:
The unique identifier for this element's context-sensitive help

setHelpID

void setHelpID(java.lang.String id)
Deprecated. 
Internal use only. Sets the unique id of this element's context-sensitive help.

Parameters:
id - The new id for the element's context-sensitive help

addDetailProvider

void addDetailProvider(RuleDetailProvider detail)
Deprecated. 
Add a new detail provider to this element. A detail provider can display information about the element. For example it might include a detailed description or a possible solution to a problem indicated by the analysis element.

Parameters:
detail - The definition of a detail provider

getDetailProviders

java.util.List getDetailProviders()
Deprecated. 
This method returns a list of detail provider definitions specified for this element. The list returned contains instances of RuleDetailProvider, which contains the data needed to show a particular detail.

Returns:
The detail providers defined for this element

setExternalDataMap

void setExternalDataMap(java.util.Map externalMap)
Deprecated. 
INTERNAL USE ONLY Set the map of ExternalMap instances.

Parameters:
externalMap - The map of ExternalData to store for this element

getExternalDataMap

java.util.Map getExternalDataMap()
Deprecated. 
Returns:
The map of ExternalData object for this element

TPTP 4.5.0 Platform Project
Public API Specification