Example usage for java.lang Boolean toString

List of usage examples for java.lang Boolean toString

Introduction

In this page you can find the example usage for java.lang Boolean toString.

Prototype

public String toString() 

Source Link

Document

Returns a String object representing this Boolean's value.

Usage

From source file:org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.java

public static String jsFunction_isApiNameExist(Context cx, Scriptable thisObj, Object[] args, Function funObj)
        throws APIManagementException {
    Boolean apiExist = false;/*from  w ww .  jav a 2s  .c  o  m*/
    if (args != null && isStringValues(args)) {
        String apiName = (String) args[0];
        APIProvider apiProvider = getAPIProvider(thisObj);
        try {
            apiExist = apiProvider.isApiNameExist(apiName);
        } catch (APIManagementException e) {
            handleException("Error from registry while checking the api name is already exist", e);
        }
    } else {
        handleException("Input api name value is null");
    }
    return apiExist.toString();
}