Interface CtxApiOpExt
@Immutable
public interface CtxApiOpExt
Extended template data for an API operation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic dk.mada.jaxrs.generator.mpclient.api.tmpl.ImmutableCtxApiOpExt.Builder
builder()
Returns a builder for this type.consumes()
Returns the optional @Consumes value for the operation.boolean
Returns true if the operation has any responses, otherwise false.produces()
Returns the optional @Produces value for the operation.boolean
Returns true if a spacer is needed before javadoc macros.boolean
Returns true if the javadoc @return statement should be rendered.boolean
Use simpler @APIResponseSchema instead of @APIResponses+@APIResponse.Returns an optional summary as a java string.
-
Method Details
-
builder
static dk.mada.jaxrs.generator.mpclient.api.tmpl.ImmutableCtxApiOpExt.Builder builder()Returns a builder for this type.- Returns:
- a builder for this type
-
renderJavadocMacroSpacer
boolean renderJavadocMacroSpacer()Returns true if a spacer is needed before javadoc macros.- Returns:
- true if a spacer is needed before javadoc macros
-
renderJavadocReturn
boolean renderJavadocReturn()Returns true if the javadoc @return statement should be rendered.- Returns:
- true if the javadoc @return statement should be rendered
-
produces
Returns the optional @Produces value for the operation.- Returns:
- the optional @Produces value for the operation
-
consumes
Returns the optional @Consumes value for the operation.- Returns:
- the optional @Consumes value for the operation
-
responseSchema
boolean responseSchema()Use simpler @APIResponseSchema instead of @APIResponses+@APIResponse. Only possible for simple classes (not containers).- Returns:
- true if the shorter ApiResponseSchema annotation should be used
-
hasResponses
boolean hasResponses()Returns true if the operation has any responses, otherwise false.- Returns:
- true if the operation has any responses, otherwise false
-
summaryString
Returns an optional summary as a java string.- Returns:
- an optional summary as a java string
-