public class OslcOASUtil
extends java.lang.Object
Constructor and Description |
---|
OslcOASUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addYamlDefDetailsProperties(java.lang.String defName,
java.lang.String propertyName,
java.lang.String type,
java.lang.String format,
java.lang.String description,
java.lang.String defaultValue,
com.ibm.json.java.JSONArray enumValue,
java.lang.String refObj,
OslcYaml oslcYaml) |
static void |
addYamlMethodParams(java.lang.String ref,
java.lang.String pathName,
java.lang.String methodName,
OslcYaml oslcYaml) |
static void |
addYamlMethodParams(java.lang.String in,
java.lang.String name,
java.lang.String type,
java.lang.String required,
java.lang.String description,
java.lang.String pathName,
java.lang.String methodName,
OslcYaml oslcYaml) |
static void |
addYamlMethodParamsSystem(java.lang.String ref,
java.lang.String pathName,
java.lang.String methodName,
OslcYaml oslcYaml) |
static com.ibm.json.java.JSONObject |
addYamlParamsDetail(java.lang.String in,
java.lang.String name,
java.lang.String type,
java.lang.Boolean required,
java.lang.String description,
java.lang.String paramName,
java.lang.String defaultValue,
com.ibm.json.java.JSONObject schema,
com.ibm.json.java.JSONArray enumValue,
OslcYaml oslcYaml,
com.ibm.json.java.JSONObject paramsObject) |
static void |
addYamlParamsRequired(java.util.List<java.lang.String> list,
com.ibm.json.java.JSONObject paramsObject) |
static void |
assignActions(java.util.List<OslcActionInfo> actionList,
com.ibm.json.java.JSONArray actionNameList) |
static void |
buildActionMeta(OslcActionInfo oslcActionInfo,
OslcYaml oslcYaml,
java.lang.String path,
java.lang.String method) |
static void |
buildGETWsMethodRequestActionMeta(MethodInfo methodInfo,
OslcYaml oslcYaml,
java.lang.String path) |
static void |
buildPOSTWsMethodActionMeta(MethodInfo methodInfo,
OslcYaml oslcYaml,
java.lang.String path) |
static java.lang.String |
capitalizeFirstLetter(java.lang.String string) |
static com.ibm.json.java.JSONArray |
generateEnum(java.util.Set<java.lang.String> set) |
static com.ibm.json.java.JSONArray |
generateEnumFromRelatedResources(java.util.Map<java.lang.String,OslcResourceDetailInfo> oslcRelatedResources) |
static com.ibm.json.java.JSONObject |
statusContent(java.lang.String code) |
static com.ibm.json.java.JSONObject |
yamlParamsDetailBuilder(java.lang.String in,
java.lang.String name,
java.lang.String type,
java.lang.Boolean required,
java.lang.String description,
java.lang.String paramName,
java.lang.String defaultValue,
com.ibm.json.java.JSONObject schema,
com.ibm.json.java.JSONArray enumValue) |
static com.ibm.json.java.JSONObject |
yamlRespDetailBuilder(java.lang.String description,
com.ibm.json.java.JSONObject schema,
com.ibm.json.java.JSONObject headers,
com.ibm.json.java.JSONObject examples) |
public static void addYamlMethodParams(java.lang.String in, java.lang.String name, java.lang.String type, java.lang.String required, java.lang.String description, java.lang.String pathName, java.lang.String methodName, OslcYaml oslcYaml)
public static void addYamlMethodParams(java.lang.String ref, java.lang.String pathName, java.lang.String methodName, OslcYaml oslcYaml)
public static void addYamlMethodParamsSystem(java.lang.String ref, java.lang.String pathName, java.lang.String methodName, OslcYaml oslcYaml)
public static com.ibm.json.java.JSONObject addYamlParamsDetail(java.lang.String in, java.lang.String name, java.lang.String type, java.lang.Boolean required, java.lang.String description, java.lang.String paramName, java.lang.String defaultValue, com.ibm.json.java.JSONObject schema, com.ibm.json.java.JSONArray enumValue, OslcYaml oslcYaml, com.ibm.json.java.JSONObject paramsObject)
public static com.ibm.json.java.JSONObject yamlParamsDetailBuilder(java.lang.String in, java.lang.String name, java.lang.String type, java.lang.Boolean required, java.lang.String description, java.lang.String paramName, java.lang.String defaultValue, com.ibm.json.java.JSONObject schema, com.ibm.json.java.JSONArray enumValue)
public static com.ibm.json.java.JSONObject yamlRespDetailBuilder(java.lang.String description, com.ibm.json.java.JSONObject schema, com.ibm.json.java.JSONObject headers, com.ibm.json.java.JSONObject examples)
public static void addYamlParamsRequired(java.util.List<java.lang.String> list, com.ibm.json.java.JSONObject paramsObject)
public static void addYamlDefDetailsProperties(java.lang.String defName, java.lang.String propertyName, java.lang.String type, java.lang.String format, java.lang.String description, java.lang.String defaultValue, com.ibm.json.java.JSONArray enumValue, java.lang.String refObj, OslcYaml oslcYaml)
public static com.ibm.json.java.JSONObject statusContent(java.lang.String code)
public static com.ibm.json.java.JSONArray generateEnum(java.util.Set<java.lang.String> set)
public static com.ibm.json.java.JSONArray generateEnumFromRelatedResources(java.util.Map<java.lang.String,OslcResourceDetailInfo> oslcRelatedResources)
public static java.lang.String capitalizeFirstLetter(java.lang.String string)
public static void assignActions(java.util.List<OslcActionInfo> actionList, com.ibm.json.java.JSONArray actionNameList)
public static void buildActionMeta(OslcActionInfo oslcActionInfo, OslcYaml oslcYaml, java.lang.String path, java.lang.String method)
public static void buildPOSTWsMethodActionMeta(MethodInfo methodInfo, OslcYaml oslcYaml, java.lang.String path)
public static void buildGETWsMethodRequestActionMeta(MethodInfo methodInfo, OslcYaml oslcYaml, java.lang.String path)