Traceability

tte.analyzers
Class ExtendedAnalyzerConversionMethod

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

public class ExtendedAnalyzerConversionMethod
extends java.lang.Object

Class that represents the analyzer method instanciated from the parsing of an extension to DocumentAnalyzer extension point.


Constructor Summary
ExtendedAnalyzerConversionMethod(org.eclipse.core.runtime.IConfigurationElement aConfigElement, IAnalyzer parentAnalyzer)
          Creates a new instance of analyzer method.
 
Method Summary
 void executeConversion(java.io.File sourceFile, java.io.File destFile, ExtendedAnalyzer extAnalyzer, Document document)
          Runs the conversion.
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.
 java.lang.String getID()
          Gets the id of the method, computed from the name and the version values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedAnalyzerConversionMethod

public ExtendedAnalyzerConversionMethod(org.eclipse.core.runtime.IConfigurationElement aConfigElement,
                                        IAnalyzer parentAnalyzer)
Creates a new instance of analyzer method.

Parameters:
aConfigElement - contains the information from extension parsing to create this method
Method Detail

getID

public final java.lang.String getID()
Gets the id of the method, computed from the name and the version values.

Returns:
the computed id of the method (name_version)

executeConversion

public final void executeConversion(java.io.File sourceFile,
                                    java.io.File destFile,
                                    ExtendedAnalyzer extAnalyzer,
                                    Document document)
                             throws AnalyzerMethodException,
                                    ConversionException
Runs the conversion.

Parameters:
sourceFile - is the file that will be converted into XML
destFile - is the XML file complete during the conversion
documentArguments - is the specific arguments that come from Document definition
Throws:
AnalyzerMethodException - if an exception occurs during instanciation of OwningClass
ConversionException - if an exception occurs during the conversion

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.