Package zowe.client.sdk.utility
Class DataSetUtils
- java.lang.Object
-
- zowe.client.sdk.utility.DataSetUtils
-
public final class DataSetUtils extends Object
Utility Class for Dataset related static helper methods.- Version:
- 1.0
- Author:
- Nikunj Goyal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataSetUtils.Attribute
Attribute enum for querying a dataset and how its returned data will be retrieved with what properties.static class
DataSetUtils.Operation
Operation enum for setting the type of dataset request that will be performed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkHttpErrors(String errMsg, List<String> dsNames, DataSetUtils.Operation type)
Formulate and return a more redefined error exception message based on a CRUD operation.static Dataset
parseJsonDSResponse(org.json.simple.JSONObject jsonObject)
Transform JSON into Dataset object
-
-
-
Method Detail
-
checkHttpErrors
public static void checkHttpErrors(String errMsg, List<String> dsNames, DataSetUtils.Operation type) throws Exception
Formulate and return a more redefined error exception message based on a CRUD operation.- Parameters:
errMsg
- error messagedsNames
- dataset representationstype
- crud type value of operation taken place- Throws:
Exception
- with a possible customized error msg
-
parseJsonDSResponse
public static Dataset parseJsonDSResponse(org.json.simple.JSONObject jsonObject)
Transform JSON into Dataset object- Parameters:
jsonObject
- JSON object- Returns:
- Dataset object
-
-