Traceability

tte.analyzers
Class ExtendedAnalyzerEditionMethod

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

public class ExtendedAnalyzerEditionMethod
extends java.lang.Object

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


Constructor Summary
ExtendedAnalyzerEditionMethod(org.eclipse.core.runtime.IConfigurationElement aConfigElement, IAnalyzer parentAnalyzer)
          Creates a new instance of analyzer edition method.
 
Method Summary
 void executeEdition(Document document, Element element)
          Runs the edition.
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

ExtendedAnalyzerEditionMethod

public ExtendedAnalyzerEditionMethod(org.eclipse.core.runtime.IConfigurationElement aConfigElement,
                                     IAnalyzer parentAnalyzer)
Creates a new instance of analyzer edition 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)

executeEdition

public final void executeEdition(Document document,
                                 Element element)
                          throws AnalyzerMethodException,
                                 EditionException
Runs the edition.

Parameters:
the - document that will be edited
the - element that be searched
Throws:
AnalyzerMethodException - if an exception occurs during instanciation of OwningClass
EditionException - if an 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.