Class CPENameMatcher

java.lang.Object
gov.nist.secauto.cpe.matching.CPENameMatcher

public class CPENameMatcher
extends java.lang.Object
The CPENameMatcher is an implementation of the CPE Matching algorithm, as specified in the CPE Matching Standard version 2.3.
Author:
Joshua Kraunelis, David Waltermire
See Also:
NISTIR 7696 Section 7
  • Method Details

    • isDisjoint

      public static boolean isDisjoint​(WellFormedName source, WellFormedName target)
      Tests two Well Formed Names for disjointness.
      Parameters:
      source - Source WFN
      target - Target WFN
      Returns:
      true if the names are disjoint, false otherwise
    • isEqual

      public static boolean isEqual​(WellFormedName source, WellFormedName target)
      Tests two Well Formed Names for equality.
      Parameters:
      source - Source WFN
      target - Target WFN
      Returns:
      true if the names are equal, false otherwise
    • isSubset

      public static boolean isSubset​(WellFormedName source, WellFormedName target)
      Tests if the target Well Formed Name is a subset of the source Well Formed Name.
      Parameters:
      source - Source WFN
      target - Target WFN
      Returns:
      true if the target is a subset of the source, false otherwise
    • isSuperset

      public static boolean isSuperset​(WellFormedName source, WellFormedName target)
      Tests if the target Well Formed name is a superset of the source Well Formed Name.
      Parameters:
      source - Source WFN
      target - Target WFN
      Returns:
      true if the target is a superset of the source, false otherwise
    • compareWFNs

      public static java.util.Map<WellFormedName.Attribute,​Relation> compareWFNs​(WellFormedName source, WellFormedName target)
      Compares each attribute value pair in two Well Formed Names.
      Parameters:
      source - Source WFN
      target - Target WFN
      Returns:
      A Hashtable mapping attribute string to attribute value Relation