Package org.apache.juneau.bean.openapi3
Class OpenApiBuilder
java.lang.Object
org.apache.juneau.bean.openapi3.OpenApiBuilder
Various useful static methods for creating OpenAPI elements.
 
See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic final Callbackcallback()Creates an emptyCallbackelement.static final ComponentsCreates an emptyComponentselement.static final Contactcontact()Creates an emptyContactelement.static final Contactstatic final Contactstatic final DiscriminatorCreates an emptyDiscriminatorelement.static final Discriminatordiscriminator(String propertyName) Creates aDiscriminatorelement with the specifiedpropertyNameattribute.static final Encodingencoding()Creates an emptyEncodingelement.static final EncodingCreates anEncodingelement with the specifiedcontentTypeattribute.static final Exampleexample()Creates an emptyExampleelement.static final ExternalDocumentationCreates an emptyExternalDocumentationelement.static final ExternalDocumentationCreates anExternalDocumentationelement with the specifiedurlattribute.static final ExternalDocumentationexternalDocumentation(Object url, String description) static final HeaderInfoCreates an emptyHeaderInfoelement.static final HeaderInfoheaderInfo(SchemaInfo schema) Creates anHeaderInfoelement with the specifiedschemaattribute.static final Infoinfo()Creates an emptyInfoelement.static final Infostatic final Itemsitems()Creates an emptyItemselement.static final Itemsstatic final Licenselicense()Creates an emptyLicenseelement.static final Licensestatic final Licensestatic final Linklink()Creates an emptyLinkelement.static final MediaTypeCreates an emptyMediaTypeelement.static final OAuthFlowCreates an emptyOAuthFlowelement.static final OAuthFlowsCreates an emptyOAuthFlowselement.static final OpenApiopenApi()Creates an emptyOpenApielement.static final OpenApistatic final OperationCreates an emptyOperationelement.static final ParameterCreates an emptyParameterelement.static final Parameterstatic final PathItempathItem()Creates an emptyPathItemelement.static final RequestBodyInfoCreates an emptyRequestBodyInfoelement.static final Responseresponse()Creates an emptyResponseelement.static final ResponseCreates aResponseelement with the specifieddescriptionattribute.static final SchemaInfoCreates an emptySchemaInfoelement.static final SchemaInfoschemaInfo(String type) Creates anSchemaInfoelement with the specifiedtypeattribute.static final SecurityRequirementCreates an emptySecurityRequirementelement.static final SecuritySchemeInfoCreates an emptySecuritySchemeInfoelement.static final SecuritySchemeInfosecuritySchemeInfo(String type) Creates anSecuritySchemeInfoelement with the specifiedtypeattribute.static final Serverserver()Creates an emptyServerelement.static final Serverstatic final ServerVariableCreates an emptyServerVariableelement.static final ServerVariableserverVariable(String defaultValue) Creates aServerVariableelement with the specifieddefaultattribute.static final Tagtag()Creates an emptyTagelement.static final Tagstatic final Xmlxml()Creates an emptyXmlelement.
- 
Method Details- 
contactCreates an emptyContactelement.- Returns:
- The new element.
 
- 
contact- Parameters:
- name- The- nameattribute.
- Returns:
- The new element.
 
- 
contact
- 
externalDocumentationCreates an emptyExternalDocumentationelement.- Returns:
- The new element.
 
- 
externalDocumentationCreates anExternalDocumentationelement with the specifiedurlattribute.- Parameters:
- url- The- urlattribute.
 The value can be of any of the following types:- URI,- URL,- String.
 Strings must be valid URIs.
 URIs defined by- UriResolvercan be used for values.
- Returns:
- The new element.
 
- 
externalDocumentation- Parameters:
- url- The- urlattribute.
 The value can be of any of the following types:- URI,- URL,- String.
 Strings must be valid URIs.
 URIs defined by- UriResolvercan be used for values.
- description- The- descriptionattribute.
- Returns:
- The new element.
 
- 
headerInfoCreates an emptyHeaderInfoelement.- Returns:
- The new element.
 
- 
headerInfoCreates anHeaderInfoelement with the specifiedschemaattribute.- Parameters:
- schema- The- schemaattribute.
- Returns:
- The new element.
 
- 
infoCreates an emptyInfoelement.- Returns:
- The new element.
 
- 
info
- 
itemsCreates an emptyItemselement.- Returns:
- The new element.
 
- 
items- Parameters:
- type- The- typeattribute.
- Returns:
- The new element.
 
- 
licenseCreates an emptyLicenseelement.- Returns:
- The new element.
 
- 
license- Parameters:
- name- The- nameattribute.
- Returns:
- The new element.
 
- 
license
- 
openApiCreates an emptyOpenApielement.- Returns:
- The new element.
 
- 
openApi- Parameters:
- info- The- infoattribute.
- Returns:
- The new element.
 
- 
schemaInfoCreates an emptySchemaInfoelement.- Returns:
- The new element.
 
- 
schemaInfoCreates anSchemaInfoelement with the specifiedtypeattribute.- Parameters:
- type- The- typeattribute.
- Returns:
- The new element.
 
- 
securitySchemeInfoCreates an emptySecuritySchemeInfoelement.- Returns:
- The new element.
 
- 
securitySchemeInfoCreates anSecuritySchemeInfoelement with the specifiedtypeattribute.- Parameters:
- type- The- typeattribute.
- Returns:
- The new element.
 
- 
serverCreates an emptyServerelement.- Returns:
- The new element.
 
- 
server- Parameters:
- url- The- urlattribute.
- Returns:
- The new element.
 
- 
tagCreates an emptyTagelement.- Returns:
- The new element.
 
- 
tag- Parameters:
- name- The- nameattribute.
- Returns:
- The new element.
 
- 
xmlCreates an emptyXmlelement.- Returns:
- The new element.
 
- 
operationCreates an emptyOperationelement.- Returns:
- The new element.
 
- 
parameterCreates an emptyParameterelement.- Returns:
- The new element.
 
- 
parameter
- 
pathItemCreates an emptyPathItemelement.- Returns:
- The new element.
 
- 
responseCreates an emptyResponseelement.- Returns:
- The new element.
 
- 
responseCreates aResponseelement with the specifieddescriptionattribute.- Parameters:
- description- The- descriptionattribute.
- Returns:
- The new element.
 
- 
componentsCreates an emptyComponentselement.- Returns:
- The new element.
 
- 
securityRequirementCreates an emptySecurityRequirementelement.- Returns:
- The new element.
 
- 
requestBodyInfoCreates an emptyRequestBodyInfoelement.- Returns:
- The new element.
 
- 
exampleCreates an emptyExampleelement.- Returns:
- The new element.
 
- 
linkCreates an emptyLinkelement.- Returns:
- The new element.
 
- 
callbackCreates an emptyCallbackelement.- Returns:
- The new element.
 
- 
discriminatorCreates an emptyDiscriminatorelement.- Returns:
- The new element.
 
- 
discriminatorCreates aDiscriminatorelement with the specifiedpropertyNameattribute.- Parameters:
- propertyName- The- propertyNameattribute.
- Returns:
- The new element.
 
- 
encodingCreates an emptyEncodingelement.- Returns:
- The new element.
 
- 
encodingCreates anEncodingelement with the specifiedcontentTypeattribute.- Parameters:
- contentType- The- contentTypeattribute.
- Returns:
- The new element.
 
- 
mediaTypeCreates an emptyMediaTypeelement.- Returns:
- The new element.
 
- 
oAuthFlowCreates an emptyOAuthFlowelement.- Returns:
- The new element.
 
- 
oAuthFlowsCreates an emptyOAuthFlowselement.- Returns:
- The new element.
 
- 
serverVariableCreates an emptyServerVariableelement.- Returns:
- The new element.
 
- 
serverVariableCreates aServerVariableelement with the specifieddefaultattribute.- Parameters:
- defaultValue- The- defaultattribute.
- Returns:
- The new element.
 
 
-