Traceability

tte.analyzers
Class ExtendedAnalyzer

java.lang.Object
  extended by tte.analyzers.ExtendedAnalyzer

public class ExtendedAnalyzer
extends java.lang.Object


Constructor Summary
ExtendedAnalyzer(org.eclipse.core.runtime.IConfigurationElement aConfigElement)
          Instanciates a new analyzer.
 
Method Summary
 void addConversionMethod(ExtendedAnalyzerConversionMethod method)
          Adds a method to the analyzer.
 void addEditionMethod(ExtendedAnalyzerEditionMethod method)
          Adds a edition method to the analyzer.
 IAnalyzer getAnalyzerOwningClassExecutableExtension()
          Gets an instance of OwningClass of this method.
protected static java.lang.String getAttribute(org.eclipse.core.runtime.IConfigurationElement configElement, java.lang.String name, java.lang.String defaultValue)
          Gets an attribute which name is in parameter, from the configElement.
 ExtendedAnalyzerConversionMethod getConversionMethodWithID(java.lang.String anID)
          Gets the conversion methods which id is the id in parameter.
 ExtendedAnalyzerEditionMethod getEditionMethodWithID(java.lang.String anID)
          Gets the edition methods which id is the id in parameter.
 java.lang.String getID()
          Gets the analyzer's id.
 java.lang.String getName()
          Gets the analyzer's name.
 boolean hasConversionMethods()
          Indicates if the analyzer has conversion methods.
 boolean hasEditionMethods()
          Indicates if the analyzer has edition methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedAnalyzer

public ExtendedAnalyzer(org.eclipse.core.runtime.IConfigurationElement aConfigElement)
Instanciates a new analyzer.

Parameters:
anId - is the analyzer's id
aName - is the analyzer's name
Method Detail

addConversionMethod

public final void addConversionMethod(ExtendedAnalyzerConversionMethod method)
Adds a method to the analyzer.

Parameters:
method - added

addEditionMethod

public final void addEditionMethod(ExtendedAnalyzerEditionMethod method)
Adds a edition method to the analyzer.

Parameters:
method - added

getID

public final java.lang.String getID()
Gets the analyzer's id.

Returns:
the analyzer's id

getName

public final java.lang.String getName()
Gets the analyzer's name.

Returns:
the analyzer's name

hasConversionMethods

public final boolean hasConversionMethods()
Indicates if the analyzer has conversion methods.

Returns:
if the analyzer has conversion methods

hasEditionMethods

public final boolean hasEditionMethods()
Indicates if the analyzer has edition methods.

Returns:
if the analyzer has edition methods

getConversionMethodWithID

public final ExtendedAnalyzerConversionMethod getConversionMethodWithID(java.lang.String anID)
Gets the conversion methods which id is the id in parameter.

Parameters:
anID - corresponds to the searched method's id
Returns:
the analyzer method

getEditionMethodWithID

public final ExtendedAnalyzerEditionMethod getEditionMethodWithID(java.lang.String anID)
Gets the edition methods which id is the id in parameter.

Parameters:
anID - corresponds to the searched method's id
Returns:
the analyzer method

getAnalyzerOwningClassExecutableExtension

public IAnalyzer getAnalyzerOwningClassExecutableExtension()
                                                    throws AnalysisException
Gets an instance of OwningClass of this method.

Returns:
an instance of OwningClass of this method
Throws:
AnalyzerMethodException - if an exception occurs during instanciation of OwningClass
AnalysisException

getAttribute

protected static java.lang.String getAttribute(org.eclipse.core.runtime.IConfigurationElement configElement,
                                               java.lang.String name,
                                               java.lang.String defaultValue)
Gets an attribute which name is in parameter, from the configElement.

Parameters:
configElement - structure of element from the extension analysis
name - of the requested attribute
defaultValue - if the attribute do not have a value
Returns:
the value of the attribute which name is in parameter

Traceability

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.