Class SearchResult

java.lang.Object
net.ssehub.easy.varModel.model.search.SearchResult

public class SearchResult extends Object
Describes a search result. Note that each model element may be included multiple times in a search result, e.g. via its simple and its qualified name.
Author:
Holger Eichelberger
  • Field Details

    • matchedName

      private String matchedName
      The matched name.
    • element

      private Object element
      The related element. This is of type object as ModelElement is too restrictive, e.g. for project imports.
  • Constructor Details

    • SearchResult

      SearchResult(String matchedName, Object element)
      Creates a search result.
      Parameters:
      matchedName - the matched name
      element - the related element
  • Method Details

    • getMatchedName

      public String getMatchedName()
      Returns the matched name.
      Returns:
      the matched name
    • getElement

      public Object getElement()
      Returns the related (model) element.
      Returns:
      the related element