|
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
public abstract class AbstractAnalysisElement
This class handles code common to all analysis elements. Under normal circumstances this class will never be used directly by user code
| Field Summary | |
|---|---|
static int |
CATEGORY_ELEMENT_TYPE
The type identifier for category elements |
static java.lang.String |
COMBO_VALUE
The name of the combo value extension point for rule parameters |
static java.lang.String |
DETAIL_PROVIDER
The name of the extension point used to specify detail providers for a rule |
static int |
PROVIDER_ELEMENT_TYPE
The type identifier for provider elements |
static int |
PROVIDER_MANAGER_ELEMENT_TYPE
The type identifier for provider manager elements |
static int |
RESULT_ELEMENT_TYPE
The type identifier for result elements |
static int |
RULE_ELEMENT_TYPE
The type identifier for rule elements |
| Constructor Summary | |
|---|---|
AbstractAnalysisElement(int newElementType)
Constructor |
|
| Method Summary | |
|---|---|
void |
addDetailProvider(RuleDetailProvider details)
Add a new detail provider to this element. |
void |
addHistoryResultSet(java.lang.String historyId)
Add this element to the history result set |
void |
addOwnedElement(AbstractAnalysisElement element)
Add an IAnalysisElement instance to the list of owned elements |
void |
addOwnedElements(java.util.Collection c)
Add a collection of IAnalysisElement instances to the list of owned elements |
void |
addParameter(AnalysisParameter parameter)
Add a new analysis parameter |
void |
addParameters(java.util.List parameters)
Add a list of parameters |
void |
deleteHistoryResults(java.lang.String historyId)
Delete the results from a given history |
void |
dispose()
Called when the element is about to be disposed. |
java.util.List |
getDetailProviders()
This method returns a list of detail provider definitions specified for this element. |
int |
getElementType()
Return the element type. |
java.util.Map |
getExecutionHistory()
|
java.util.Map |
getExternalDataMap()
|
java.lang.String |
getHelpID()
|
java.util.List |
getHistoryResults(java.lang.String historyId)
Return an unmodifiable copy of the analysis results for a given history Clients should not try to modify the returned list otherwise an exception will be thrown |
java.lang.String |
getIconName()
|
java.lang.String |
getId()
|
java.lang.String |
getLabel()
|
java.util.List |
getOwnedElements()
|
AbstractAnalysisElement |
getOwner()
|
java.lang.String |
getOwnerId()
Returns the unique id of the analysis element that owns this element |
AnalysisParameter |
getParameter(java.lang.String name)
|
int |
getParameterCount()
Returns the number of parameters associated with the current analysis element |
java.util.List |
getParameterList()
|
java.lang.String |
getPluginId()
|
AbstractAnalysisProvider |
getProvider()
|
AnalysisProviderManager |
getProviderManager()
|
java.lang.String |
getViewerID()
|
int |
getVisibleParameterCount()
Returns the number of parameters that are displayable for the current analysis element |
void |
postAnalyze()
Perform any tear down required after analysis ends. |
void |
preAnalyze()
Perform any set up required before analysis starts. |
void |
removeHistoryResultSet(java.lang.String historyId)
Remove the result data associated with the specified history id |
void |
removeHistoryResultSet(java.lang.String historyId,
AbstractAnalysisResult result)
Do not use. |
void |
setElementType(int newElementType)
Set the element type. |
void |
setExternalDataMap(java.util.Map externalMap)
INTERNAL USE ONLY Set the map of ExternalMap instances. |
void |
setHelpID(java.lang.String newHelpID)
Internal use only. |
void |
setIconName(java.lang.String newIconName)
Allows an element to configure its own icon name |
void |
setId(java.lang.String newId)
Internal use only. |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config)
|
void |
setLabel(java.lang.String newLabel)
|
void |
setOwner(AbstractAnalysisElement newOwner)
Tell this element who its owner is. |
void |
setOwnerId(java.lang.String ownerId)
Internal Use. |
void |
setPluginId(java.lang.String newPluginId)
Used Internally. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PROVIDER_MANAGER_ELEMENT_TYPE
public static final int PROVIDER_ELEMENT_TYPE
public static final int CATEGORY_ELEMENT_TYPE
public static final int RULE_ELEMENT_TYPE
public static final int RESULT_ELEMENT_TYPE
public static final java.lang.String COMBO_VALUE
public static final java.lang.String DETAIL_PROVIDER
| Constructor Detail |
|---|
public AbstractAnalysisElement(int newElementType)
newElementType - The type of element being created, must be one of:
PROVIDER_MANAGER_ELEMENT_TYPE, PROVIDER_ELEMENT_TYPE,
CATEGORY_ELEMENT_TYPE, RULE_ELEMENT_TYPE, RESULT_ELEMENT_TYPE| Method Detail |
|---|
public final void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config)
IExecutableExtension.setInitializationData(org.eclipse.core.runtime.IConfigurationElement, java.lang.String, java.lang.Object)public void dispose()
public final AbstractAnalysisElement getOwner()
public final void setOwner(AbstractAnalysisElement newOwner)
owner - The element that owns this elementpublic java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId - The unique identifier of the ownerpublic java.util.List getOwnedElements()
public final void addOwnedElement(AbstractAnalysisElement element)
element - THe new element to addpublic final void addOwnedElements(java.util.Collection c)
c - The collection of elements to addpublic final void addHistoryResultSet(java.lang.String historyId)
historyId - The id of the history analysis run
public final void removeHistoryResultSet(java.lang.String historyId,
AbstractAnalysisResult result)
historyId - result - public void removeHistoryResultSet(java.lang.String historyId)
historyId - The id of the history analysis run being removedpublic final java.util.List getHistoryResults(java.lang.String historyId)
historyId - The id of the history analysis run to return
public final void deleteHistoryResults(java.lang.String historyId)
historyId - The id of the history whose results will be removespublic java.lang.String getLabel()
public final void setLabel(java.lang.String newLabel)
public final void setIconName(java.lang.String newIconName)
newIconName - The path name of the icon to use for this elementpublic java.lang.String getIconName()
IAnalysisElement.getIconName()public final java.lang.String getPluginId()
public final void setPluginId(java.lang.String newPluginId)
pluginId - public void preAnalyze()
public void postAnalyze()
public final int getElementType()
public final void setElementType(int newElementType)
elementType - The new element type.public final java.lang.String getId()
public final void setId(java.lang.String newId)
id - The new id for the elementpublic final java.lang.String getHelpID()
public final void setHelpID(java.lang.String newHelpID)
id - The new id for the element's context-sensitive helppublic final java.lang.String getViewerID()
public java.lang.String toString()
toString in class java.lang.Objectpublic final java.util.Map getExecutionHistory()
public final void addDetailProvider(RuleDetailProvider details)
detail - The definition of a detail providerpublic final java.util.List getDetailProviders()
public void setExternalDataMap(java.util.Map externalMap)
externalMap - The map of ExternalData to store for this elementpublic final java.util.Map getExternalDataMap()
public final void addParameter(AnalysisParameter parameter)
parameter - The AnalysisParameter to addpublic final void addParameters(java.util.List parameters)
parameters - The list of AnalysisParameters to addpublic final AnalysisParameter getParameter(java.lang.String name)
public final java.util.List getParameterList()
public final int getParameterCount()
public final int getVisibleParameterCount()
public final AnalysisProviderManager getProviderManager()
public final AbstractAnalysisProvider getProvider()
|
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 | ||||||||