public final class Convert extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
cpeUriToWellFormed(String value)
CPE URI decodes the value into a well formed string.
|
static String |
cpeUriToWellFormed(String value,
boolean lenient)
CPE URI decodes the value into a well formed string.
|
static String |
fromWellFormed(String value)
Transforms the given well formed string into a non-escaped string.
|
static String |
fsToWellFormed(String value)
Transforms a formatted string (CPE 2.3 specification) into a Well Formed
string.
|
static String |
fsToWellFormed(String value,
boolean lenient)
Transforms a formatted string (CPE 2.3 specification) into a Well Formed
string.
|
static String |
toWellFormed(String value)
Transforms the given string into a "well formed string".
|
static String |
wellFormedToCpeUri(Part value)
URL encodes the value for CPE 2.2.
|
static String |
wellFormedToCpeUri(String wellFormed)
CPE URL encodes the well formed string.
|
static String |
wellFormedToFS(Part value)
Encodes the given value into the CPE 2.3 Formatted String representation.
|
static String |
wellFormedToFS(String value)
Transforms a Well Formed string into a formatted string (see CPE 2.3
specification).
|
static Pattern |
wellFormedToPattern(String value)
Converts a well formed string into a regular expression pattern.
|
public static String toWellFormed(String value)
null value is passed in the default LogicalValue.ANY
will be returned.value - the string to formatpublic static String fromWellFormed(String value)
value - the well formed stringpublic static String wellFormedToCpeUri(Part value)
value - the value to encodepublic static String wellFormedToCpeUri(String wellFormed) throws CpeEncodingException
wellFormed - the well formed string to convertCpeEncodingException - thrown if the string provided is not well
formedpublic static String cpeUriToWellFormed(String value) throws CpeEncodingException
value - the CPE URI encoded string to convertCpeEncodingException - thrown if the string provided is not well
formedpublic static String cpeUriToWellFormed(String value, boolean lenient) throws CpeEncodingException
value - the CPE URI encoded string to convertlenient - whether or not to enable lenient parsing of the CPE URI
valueCpeEncodingException - thrown if the string provided is not well
formedpublic static String wellFormedToFS(Part value)
value - the component value to encodepublic static String wellFormedToFS(String value)
value - the component value to encodepublic static String fsToWellFormed(String value)
value - the component value to transformpublic static String fsToWellFormed(String value, boolean lenient)
value - the component value to transformlenient - whether or not to enable lenient parsing of the CPE FS
valueCopyright © 2018–2023. All rights reserved.