private void validate ( String vendor1 , String product1 , String version1 , String update1 , String edition1 , String language1 , String swEdition1 , String targetSw1 , String targetHw1 , String other1 ) throws CpeValidationException { Status status = Validate . component ( vendor1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid vendor component: " + status . getMessage ( ) ) ; } status = Validate . component ( product1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid product component: " + status . getMessage ( ) ) ; } status = Validate . component ( version1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid version component: " + status . getMessage ( ) ) ; } status = Validate . component ( update1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid update component: " + status . getMessage ( ) ) ; } status = Validate . component ( edition1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid edition component: " + status . getMessage ( ) ) ; } status = Validate . component ( language1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid language component: " + status . getMessage ( ) ) ; } status = Validate . component ( swEdition1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid swEdition component: " + status . getMessage ( ) ) ; } status = Validate . component ( targetSw1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid targetSw component: " + status . getMessage ( ) ) ; } status = Validate . component ( targetHw1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid targetHw component: " + status . getMessage ( ) ) ; } status = Validate . component ( other1 ) ; if ( ! status . isValid ( ) ) { throw new CpeValidationException ( "Invalid other component: " + status . getMessage ( ) ) ; } }
Validates the CPE attributes .