Class DescriptionRepository

java.lang.Object
All Implemented Interfaces:
IAnalysisComponent, IRepository

@Deprecated
public class DescriptionRepository
extends AbstractRepository
Deprecated.
since 2.0.0
Implementation of a description repository which stores descriptions for names.
Since:
1.6
Author:
Holger Knoche
  • Field Details

  • Constructor Details

    • DescriptionRepository

      public DescriptionRepository​(Configuration configuration, IProjectContext projectContext) throws java.io.IOException
      Deprecated.
      Creates a new description repository using the given configuration.
      Parameters:
      configuration - The configuration to use
      projectContext - The project context for this plugin.
      Throws:
      java.io.IOException - If an I/O error occurs during initialization
    • DescriptionRepository

      public DescriptionRepository​(Configuration configuration, DescriptionRepository.DescriptionRepositoryData descriptionData, IProjectContext projectContext)
      Deprecated.
      Creates a new description repository using the given data.
      Parameters:
      configuration - The configuration to use
      descriptionData - The description data to use
      projectContext - The project context to use.
  • Method Details

    • getCurrentConfiguration

      public Configuration getCurrentConfiguration()
      Deprecated.
      This method should deliver a Configuration object containing the current configuration of this instance. In other words: The constructor should be able to use the given object to initialize a new instance of this class with the same intern properties.
      Specified by:
      getCurrentConfiguration in interface IAnalysisComponent
      Specified by:
      getCurrentConfiguration in class AbstractAnalysisComponent
      Returns:
      A completely filled configuration object.
    • getDescriptionMap

      public java.util.Map<java.lang.String,​java.lang.String> getDescriptionMap()
      Deprecated.
      Returns the description map (node id -> description) contained in this repository.
      Returns:
      See above
    • createFromFile

      public static DescriptionRepository createFromFile​(java.lang.String fileName, IProjectContext projectContext) throws java.io.IOException
      Deprecated.
      Initializes a new description repository from the given file.
      Parameters:
      fileName - The name of the file to use.
      projectContext - The project context to use.
      Returns:
      The initialized description repository
      Throws:
      java.io.IOException - If an I/O error occurs