Package gov.nist.secauto.cpe.matching
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 Summary
Modifier and Type Method Description static java.util.Map<WellFormedName.Attribute,Relation>
compareWFNs(WellFormedName source, WellFormedName target)
Compares each attribute value pair in two Well Formed Names.static boolean
isDisjoint(WellFormedName source, WellFormedName target)
Tests two Well Formed Names for disjointness.static boolean
isEqual(WellFormedName source, WellFormedName target)
Tests two Well Formed Names for equality.static boolean
isSubset(WellFormedName source, WellFormedName target)
Tests if the target Well Formed Name is a subset of the source Well Formed Name.static boolean
isSuperset(WellFormedName source, WellFormedName target)
Tests if the target Well Formed name is a superset of the source Well Formed Name.
-
Method Details
-
isDisjoint
Tests two Well Formed Names for disjointness.- Parameters:
source
- Source WFNtarget
- Target WFN- Returns:
- true if the names are disjoint, false otherwise
-
isEqual
Tests two Well Formed Names for equality.- Parameters:
source
- Source WFNtarget
- Target WFN- Returns:
- true if the names are equal, false otherwise
-
isSubset
Tests if the target Well Formed Name is a subset of the source Well Formed Name.- Parameters:
source
- Source WFNtarget
- Target WFN- Returns:
- true if the target is a subset of the source, false otherwise
-
isSuperset
Tests if the target Well Formed name is a superset of the source Well Formed Name.- Parameters:
source
- Source WFNtarget
- 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 WFNtarget
- Target WFN- Returns:
- A Hashtable mapping attribute string to attribute value Relation
-