public class OslcYaml
extends java.lang.Object
Constructor and Description |
---|
OslcYaml() |
Modifier and Type | Method and Description |
---|---|
OslcYaml |
addDefinitionsDescription(java.lang.String defName,
java.lang.String description) |
OslcYaml |
addDefinitionsProperties(java.lang.String defName,
java.lang.String propertyName,
com.ibm.json.java.JSONObject definitions) |
OslcYaml |
addDefinitionsRequired(java.lang.String defName,
com.ibm.json.java.JSONArray requiredArr) |
OslcYaml |
addExternalDocs() |
OslcYaml |
addMethodBasicInfo(java.lang.String pathName,
java.lang.String methodName,
java.lang.String summary,
java.lang.String description) |
OslcYaml |
addMethodConsumes(java.lang.String pathName,
java.lang.String methodName,
java.lang.String... consumes) |
OslcYaml |
addMethodDeprecated() |
OslcYaml |
addMethodExternalDocs() |
OslcYaml |
addMethodOperationId() |
OslcYaml |
addMethodOperationId(java.lang.String pathName,
java.lang.String methodName,
java.lang.String id) |
OslcYaml |
addMethodParams(java.lang.String pathName,
java.lang.String methodName,
com.ibm.json.java.JSONObject params) |
OslcYaml |
addMethodPatternedObject() |
OslcYaml |
addMethodProduces(java.lang.String pathName,
java.lang.String methodName,
java.lang.String... produces) |
OslcYaml |
addMethodRequestBody(java.lang.String pathName,
java.lang.String methodName,
com.ibm.json.java.JSONObject body) |
OslcYaml |
addMethodRequestBodyContent(java.lang.String pathName,
java.lang.String methodName,
java.lang.String contentType,
com.ibm.json.java.JSONObject params) |
OslcYaml |
addMethodResponse(java.lang.String pathName,
java.lang.String methodName,
java.lang.String status,
com.ibm.json.java.JSONObject statusContent) |
OslcYaml |
addMethodSchemes(java.lang.String pathName,
java.lang.String methodName,
java.lang.String... schemes) |
OslcYaml |
addMethodTags(java.lang.String pathName,
java.lang.String methodName,
java.lang.String... tags) |
OslcYaml |
addParameters(java.lang.String paramName,
com.ibm.json.java.JSONObject parameters) |
OslcYaml |
addResponses(java.lang.String paramName,
com.ibm.json.java.JSONObject parameters) |
OslcYaml |
addSecurity(java.lang.String key,
java.lang.Object scope) |
OslcYaml |
addSecurityDefinitions() |
OslcYaml |
addSecuritySchemes(java.lang.String key,
java.lang.Object schemes) |
OslcYaml |
addTags() |
com.ibm.json.java.JSONObject |
getJSON() |
java.lang.String |
getYaml() |
static java.lang.String |
getYamlfromJSON(com.ibm.json.java.JSONObject object) |
static void |
jsonPrettyPrinter(java.lang.Object object) |
static void |
main(java.lang.String... args) |
OslcYaml |
setBasePath(java.lang.String basePath) |
OslcYaml |
setConsumes(java.lang.String... consumes) |
OslcYaml |
setHost(java.lang.String host) |
OslcYaml |
setHost(java.lang.String host,
int port) |
OslcYaml |
setInfo(java.lang.String title,
java.lang.String description,
java.lang.String version) |
OslcYaml |
setInfoContact(java.lang.Object contactInfo) |
OslcYaml |
setInfoLicense(java.lang.Object licenseIfo) |
OslcYaml |
setInfoTermsOfService(java.lang.String tos) |
void |
setIsJson(boolean isJson) |
OslcYaml |
setOpenAPIVersion(java.lang.String openAPIVersion) |
void |
setParamBasicInfo(com.ibm.json.java.JSONObject param,
java.lang.String in,
java.lang.String name,
java.lang.String description,
java.lang.String required,
java.lang.String type) |
OslcYaml |
setPatternedObject(java.lang.String patternName,
java.lang.Object content)
patternName must start with x-
|
OslcYaml |
setProduces(java.lang.String... produces) |
OslcYaml |
setSchemes(java.lang.String... strs) |
OslcYaml |
setServer(com.ibm.json.java.JSONObject server) |
OslcYaml |
setSwaggerVersion(java.lang.String swaggerVersion) |
public OslcYaml setSwaggerVersion(java.lang.String swaggerVersion)
public OslcYaml setOpenAPIVersion(java.lang.String openAPIVersion)
public OslcYaml setInfo(java.lang.String title, java.lang.String description, java.lang.String version)
public OslcYaml setInfoTermsOfService(java.lang.String tos)
public OslcYaml setInfoContact(java.lang.Object contactInfo)
public OslcYaml setInfoLicense(java.lang.Object licenseIfo)
public OslcYaml setPatternedObject(java.lang.String patternName, java.lang.Object content)
patternName
- content
- public OslcYaml setHost(java.lang.String host)
public OslcYaml setHost(java.lang.String host, int port)
public OslcYaml setSchemes(java.lang.String... strs)
public OslcYaml addSecuritySchemes(java.lang.String key, java.lang.Object schemes)
public OslcYaml addSecurity(java.lang.String key, java.lang.Object scope)
public OslcYaml setBasePath(java.lang.String basePath)
public OslcYaml setServer(com.ibm.json.java.JSONObject server)
public OslcYaml setConsumes(java.lang.String... consumes)
public OslcYaml setProduces(java.lang.String... produces)
public OslcYaml addMethodBasicInfo(java.lang.String pathName, java.lang.String methodName, java.lang.String summary, java.lang.String description)
public OslcYaml addMethodOperationId(java.lang.String pathName, java.lang.String methodName, java.lang.String id)
public OslcYaml addMethodProduces(java.lang.String pathName, java.lang.String methodName, java.lang.String... produces)
public OslcYaml addMethodTags(java.lang.String pathName, java.lang.String methodName, java.lang.String... tags)
public OslcYaml addMethodParams(java.lang.String pathName, java.lang.String methodName, com.ibm.json.java.JSONObject params)
public OslcYaml addMethodRequestBody(java.lang.String pathName, java.lang.String methodName, com.ibm.json.java.JSONObject body)
public OslcYaml addMethodRequestBodyContent(java.lang.String pathName, java.lang.String methodName, java.lang.String contentType, com.ibm.json.java.JSONObject params)
public OslcYaml addMethodResponse(java.lang.String pathName, java.lang.String methodName, java.lang.String status, com.ibm.json.java.JSONObject statusContent)
public OslcYaml addMethodExternalDocs()
public OslcYaml addMethodOperationId()
public OslcYaml addMethodConsumes(java.lang.String pathName, java.lang.String methodName, java.lang.String... consumes)
public OslcYaml addMethodSchemes(java.lang.String pathName, java.lang.String methodName, java.lang.String... schemes)
public OslcYaml addMethodDeprecated()
public OslcYaml addMethodPatternedObject()
public OslcYaml addDefinitionsProperties(java.lang.String defName, java.lang.String propertyName, com.ibm.json.java.JSONObject definitions)
public OslcYaml addDefinitionsRequired(java.lang.String defName, com.ibm.json.java.JSONArray requiredArr)
public OslcYaml addDefinitionsDescription(java.lang.String defName, java.lang.String description)
public OslcYaml addParameters(java.lang.String paramName, com.ibm.json.java.JSONObject parameters)
public OslcYaml addResponses(java.lang.String paramName, com.ibm.json.java.JSONObject parameters)
public OslcYaml addSecurityDefinitions()
public OslcYaml addTags()
public OslcYaml addExternalDocs()
public com.ibm.json.java.JSONObject getJSON()
public java.lang.String getYaml()
public void setParamBasicInfo(com.ibm.json.java.JSONObject param, java.lang.String in, java.lang.String name, java.lang.String description, java.lang.String required, java.lang.String type)
public static void main(java.lang.String... args)
public static java.lang.String getYamlfromJSON(com.ibm.json.java.JSONObject object)
public static void jsonPrettyPrinter(java.lang.Object object)
public void setIsJson(boolean isJson)