Class AssociationDatabaseManager

java.lang.Object
ghidra.feature.vt.api.db.AssociationDatabaseManager
All Implemented Interfaces:
VTAssociationManager

public class AssociationDatabaseManager extends Object implements VTAssociationManager
  • Method Details

    • createAssociationManager

      public static AssociationDatabaseManager createAssociationManager(db.DBHandle dbHandle, VTSessionDB session) throws IOException
      Throws:
      IOException
    • getAssociationManager

      public static AssociationDatabaseManager getAssociationManager(db.DBHandle dbHandle, VTSessionDB session, ghidra.framework.data.OpenMode openMode, ghidra.util.task.TaskMonitor monitor) throws ghidra.util.exception.VersionException
      Throws:
      ghidra.util.exception.VersionException
    • getAppliedMarkupItems

      public Collection<MarkupItemStorageDB> getAppliedMarkupItems(ghidra.util.task.TaskMonitor monitor, VTAssociation association) throws ghidra.util.exception.CancelledException
      Throws:
      ghidra.util.exception.CancelledException
    • addMarkupItem

      public MarkupItemStorage addMarkupItem(MarkupItemStorage markupItemStorage)
    • removeStoredMarkupItems

      public void removeStoredMarkupItems(List<MarkupItemImpl> impls)
    • getAssociationCount

      public int getAssociationCount()
      Description copied from interface: VTAssociationManager
      Returns the total number of associations that have been defined regardless of whether or not they have been accepted.
      Specified by:
      getAssociationCount in interface VTAssociationManager
      Returns:
      Returns the total number of associations that have been defined regardless of whether or not they have been accepted.
    • getAssociations

      public List<VTAssociation> getAssociations()
      Description copied from interface: VTAssociationManager
      Returns a list of all defined associations regardless of whether or not they have been accepted.
      Specified by:
      getAssociations in interface VTAssociationManager
      Returns:
      a list of all defined associations regardless of whether or not they have been accepted.
    • getAssociation

      public VTAssociation getAssociation(ghidra.program.model.address.Address sourceAddress, ghidra.program.model.address.Address destinationAddress)
      Description copied from interface: VTAssociationManager
      Returns an association for the given source and destination addresses if one has been defined or null if no such association has been defined.
      Specified by:
      getAssociation in interface VTAssociationManager
      Parameters:
      sourceAddress - the source address for the association.
      destinationAddress - the destination address for the association.
      Returns:
      the association if it has been defined or else null.
    • getSession

      public VTSessionDB getSession()
    • getRelatedAssociationsBySourceAddress

      public Collection<VTAssociation> getRelatedAssociationsBySourceAddress(ghidra.program.model.address.Address sourceAddress)
      Description copied from interface: VTAssociationManager
      Returns a collection of all defined associations that have the given source address.
      Specified by:
      getRelatedAssociationsBySourceAddress in interface VTAssociationManager
      Parameters:
      sourceAddress - the source address to use to search for associations.
      Returns:
      a collection of all defined associations that have the given source address.
    • getRelatedAssociationsByDestinationAddress

      public Collection<VTAssociation> getRelatedAssociationsByDestinationAddress(ghidra.program.model.address.Address destinationAddress)
      Description copied from interface: VTAssociationManager
      Returns a collection of all defined associations that have the given destination address.
      Specified by:
      getRelatedAssociationsByDestinationAddress in interface VTAssociationManager
      Parameters:
      destinationAddress - the source address to use to search for associations.
      Returns:
      a collection of all defined associations that have the given destination address.
    • getRelatedAssociationsBySourceAndDestinationAddress

      public Collection<VTAssociation> getRelatedAssociationsBySourceAndDestinationAddress(ghidra.program.model.address.Address sourceAddress, ghidra.program.model.address.Address destinationAddress)
      Description copied from interface: VTAssociationManager
      Returns a collection of all defined associations that have the either the given source address or the given destination address
      Specified by:
      getRelatedAssociationsBySourceAndDestinationAddress in interface VTAssociationManager
      Parameters:
      sourceAddress - the source address to use to search for associations.
      destinationAddress - the source address to use to search for associations.
      Returns:
      a collection of all defined associations that have either the given source address or the given destination address.