java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.Node
All Implemented Interfaces:
Serializable

@NullMarked public class Node extends Object implements Serializable
Defines a configuration node in an NVD applicability statement.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • operator

      private Node.Operator operator
      (Required)
    • negate

      private @Nullable Boolean negate
    • cpeMatch

      private List<CpeMatch> cpeMatch
      (Required)
  • Constructor Details

    • Node

      public Node(Node.Operator operator, List<CpeMatch> cpeMatch)
      Constructs a new Node with the specified operator and CPE matches.
      Parameters:
      operator - the logical operator
      cpeMatch - the list of CPE matches
    • Node

      public Node(Node.Operator operator, @Nullable Boolean negate, List<CpeMatch> cpeMatch)
      Constructs a new Node with the specified operator, negate flag, and CPE matches.
      Parameters:
      operator - the logical operator
      negate - whether to negate the result
      cpeMatch - the list of CPE matches
  • Method Details

    • getOperator

      public Node.Operator getOperator()
      (Required)
      Returns:
      operator
    • getNegate

      public @Nullable Boolean getNegate()
      Returns:
      negate
    • getCpeMatch

      public List<CpeMatch> getCpeMatch()
      (Required)
      Returns:
      cpeMatch
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object