Class ObjectLocator

java.lang.Object
org.cyclonedx.util.ObjectLocator

public class ObjectLocator extends Object
  • Field Details

    • bom

      private final Bom bom
    • bomRef

      private final String bomRef
    • object

      private Object object
    • isMetadataComponent

      private boolean isMetadataComponent
  • Constructor Details

    • ObjectLocator

      public ObjectLocator(Bom bom, String bomRef)
  • Method Details

    • getObject

      public Object getObject()
    • found

      public boolean found()
    • isMetadataComponent

      public boolean isMetadataComponent()
    • isComponent

      public boolean isComponent()
    • isService

      public boolean isService()
    • isVulnerability

      public boolean isVulnerability()
    • locate

      public ObjectLocator locate()
    • findComponent

      private static Component findComponent(List<Component> components, String bomRef)
    • findService

      private static Service findService(List<Service> services, String bomRef)
    • findVulnerability

      private static Vulnerability findVulnerability(List<Vulnerability> vulnerabilities, String bomRef)