|
TPTP 4.2.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.rule.AbstractAnalysisRule
| Field Summary |
|---|
| Fields inherited from class org.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement |
|---|
DETAIL_PROVIDER |
| Constructor Summary | |
|---|---|
AbstractAnalysisRule()
Constructor |
|
| Method Summary | |
|---|---|
void |
addHistoryResultSet(java.lang.String historyId,
IAnalysisResult result)
Add a new result to the history. |
void |
addParameter(RuleParameter parameter)
Add a new parameter to the rule |
void |
addParameters(java.util.List parameters)
Add a list of new rule parameters to the rule |
abstract void |
analyze(AnalysisHistory history)
Analyze this rule |
java.lang.String |
getIconName()
|
java.lang.String |
getLabelWithVariables()
|
java.util.List |
getOwnedElements()
Rules can never have owned members, so this method is final |
RuleParameter |
getParameter(java.lang.String name)
Return the rule variable data of a named variable or null if no value was found |
int |
getParameterCount()
|
java.util.List |
getParameterList()
|
IAnalysisProvider |
getProvider()
Return the provider, which is top-most owner in the category/rule tree |
IAnalysisQuickFix |
getQuickFix(java.lang.String newId)
Return the quickfox instance for a given quickfix id |
int |
getQuickFixCount()
|
java.util.Iterator |
getQuickFixIterator()
Return an iterator that can be used to crawl a list of quickfix id strings related to this rule |
IAnalysisViewer |
getViewer()
|
int |
getVisibleVariableCount()
Return the number of variables in the rule that are visible in the user interface. |
boolean |
hasQuickFixes()
Determine if the rule has any quickfixes associated with it |
boolean |
isCustom()
Used Internally |
void |
removeHistoryResultSet(java.lang.String historyId)
Remove the result data associated with the specified history id |
void |
setCustom(boolean isCustomRule)
Used Internally |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
|
void |
setQuickFixId(java.lang.String newId)
Allows a custom rule to define its own id |
| Methods inherited from class org.eclipse.tptp.platform.analysis.core.element.AbstractAnalysisElement |
|---|
addDetailProvider, addHistoryResultSet, addOwnedElement, addOwnedElements, deleteHistoryResults, dispose, getDetailProviders, getElementType, getExecutionHistory, getHelpID, getHistoryResults, getId, getLabel, getOwner, getPluginId, getViewerID, preAnalyze, setElementType, setHelpID, setIconName, setId, setInitializationData, setLabel, setOwner, setPluginId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.tptp.platform.analysis.core.element.IAnalysisElement |
|---|
addDetailProvider, addHistoryResultSet, addOwnedElement, addOwnedElements, dispose, getDetailProviders, getElementType, getHelpID, getHistoryResults, getId, getLabel, getOwner, getPluginId, preAnalyze, setElementType, setHelpID, setIconName, setId, setLabel, setOwner, setPluginId |
| Constructor Detail |
public AbstractAnalysisRule()
| Method Detail |
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtensionpublic java.lang.String getLabelWithVariables()
getLabelWithVariables in interface IAnalysisRulepublic java.lang.String getIconName()
getIconName in interface IAnalysisElementgetIconName in class AbstractAnalysisElementpublic boolean hasQuickFixes()
hasQuickFixes in interface IAnalysisRulepublic void setQuickFixId(java.lang.String newId)
setQuickFixId in interface IAnalysisRulenewId - The id for the rulepublic final java.util.Iterator getQuickFixIterator()
getQuickFixIterator in interface IAnalysisRulepublic final IAnalysisQuickFix getQuickFix(java.lang.String newId)
getQuickFix in interface IAnalysisRulenewId - The unique id of the quickfix to retrieve
public final int getQuickFixCount()
getQuickFixCount in interface IAnalysisRulepublic IAnalysisViewer getViewer()
getViewer in interface IAnalysisRulepublic abstract void analyze(AnalysisHistory history)
analyze in interface IAnalysisRulehistory - A reference to the history record for this analysispublic final java.util.List getOwnedElements()
getOwnedElements in interface IAnalysisElementgetOwnedElements in class AbstractAnalysisElementpublic void addParameter(RuleParameter parameter)
addParameter in interface IAnalysisRuleparameter - The parameter to add to the rulepublic void addParameters(java.util.List parameters)
addParameters in interface IAnalysisRuleparameters - A list of RuleParameter instances to add to the rulepublic RuleParameter getParameter(java.lang.String name)
getParameter in interface IAnalysisRulename - The name of the variable
public java.util.List getParameterList()
getParameterList in interface IAnalysisRulepublic int getParameterCount()
getParameterCount in interface IAnalysisRulepublic int getVisibleVariableCount()
getVisibleVariableCount in interface IAnalysisRulepublic final boolean isCustom()
IAnalysisRule
isCustom in interface IAnalysisRulepublic final void setCustom(boolean isCustomRule)
setCustom in interface IAnalysisRuleisCustomRule - public IAnalysisProvider getProvider()
IAnalysisRule
getProvider in interface IAnalysisRule
public void addHistoryResultSet(java.lang.String historyId,
IAnalysisResult result)
addHistoryResultSet in interface IAnalysisRulehistoryId - The id of the history analysis runresult - The result to addpublic void removeHistoryResultSet(java.lang.String historyId)
removeHistoryResultSet in interface IAnalysisElementremoveHistoryResultSet in class AbstractAnalysisElementhistoryId - The id of the history analysis run being removed
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||