public static Status cpe ( String value ) { if ( "cpe:2.3:" . regionMatches ( 0 , value , 0 , 8 ) ) { return formattedString ( value ) ; } return cpeUri ( value ) ; }
Validates the given CPE string value to ensure it is either a valid CPE URI or Formatted String .