@ThreadSafe public class IndexEntry extends Object implements Serializable
| Constructor and Description |
|---|
IndexEntry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getDocumentId()
Get the value of documentId.
|
String |
getProduct()
Get the value of product.
|
float |
getSearchScore()
Get the value of searchScore.
|
String |
getVendor()
Get the value of vendor.
|
int |
hashCode() |
void |
parseName(String cpeName)
Parses a name attribute value, from the cpe.xml, into its corresponding
parts: vendor, product.
|
void |
setDocumentId(int documentId)
Set the value of documentId.
|
void |
setProduct(String product)
Set the value of product.
|
void |
setSearchScore(float searchScore)
Set the value of searchScore.
|
void |
setVendor(String vendor)
Set the value of vendor.
|
String |
toString()
Standard implementation of toString showing vendor and product.
|
public int getDocumentId()
public void setDocumentId(int documentId)
documentId - new value of documentIdpublic String getVendor()
public void setVendor(String vendor)
vendor - new value of vendorpublic String getProduct()
public void setProduct(String product)
product - new value of productpublic float getSearchScore()
public void setSearchScore(float searchScore)
searchScore - new value of searchScorepublic void parseName(String cpeName) throws UnsupportedEncodingException
Parses a name attribute value, from the cpe.xml, into its corresponding parts: vendor, product.
Example:
nbsp;nbsp;nbsp;cpe:/a:apache:struts:1.1:rc2
Results in:
If it is necessary to parse the CPE into more parts (i.e. to include version and revision) then you should use the `cpe-parser`.
cpeName - the CPE nameUnsupportedEncodingException - should never be thrown...Copyright © 2012–2020 OWASP. All rights reserved.