java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetSearchMatches
All Implemented Interfaces:
MetadataElement

public class AssetSearchMatches extends AssetElement
AssetSearchMatches is used to return an asset whose has anchored elements returned from a search. The matching element are the OCF beans for the matching elements.
  • Constructor Details

    • AssetSearchMatches

      public AssetSearchMatches()
      Default constructor
    • AssetSearchMatches

      public AssetSearchMatches(AssetElement template)
      Copy/clone constructor. Note, this is a deep copy
      Parameters:
      template - template values for asset summary
    • AssetSearchMatches

      public AssetSearchMatches(AssetSearchMatches template)
      Copy/clone constructor. Note, this is a deep copy
      Parameters:
      template - template values for asset summary
  • Method Details

    • getMatchingElements

      public List<MetadataElementSummary> getMatchingElements()
      Return the list of anchored elements that match the search criteria.
      Returns:
      list
    • setMatchingElements

      public void setMatchingElements(List<MetadataElementSummary> matchingElements)
      Set up the list of anchored elements that match the search criteria.
      Parameters:
      matchingElements - list
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class AssetElement
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class AssetElement
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class AssetElement
      Returns:
      int hash code