public String resultToString ( int res ) { String resultString = "" ; switch ( res ) { case POSSIBLE : resultString = "Certificate to be tried.\n" ; break ; case BACK : resultString = "Certificate backed out since path does not " + "satisfy build requirements.\n" ; break ; case FOLLOW : resultString = "Certificate satisfies conditions.\n" ; break ; case FAIL : resultString = "Certificate backed out since path does not " + "satisfy conditions.\n" ; break ; case SUCCEED : resultString = "Certificate satisfies conditions.\n" ; break ; default : resultString = "Internal error: Invalid step result value.\n" ; } return resultString ; }
return a string representing the meaning of the result code associated with this build step .