Class MarkdownOption
java.lang.Object
build.cursed.genapi.forgejo.model.MarkdownOption
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class MarkdownOption
extends Object
MarkdownOption markdown options
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MarkdownOptionCreate an instance of MarkdownOption given an JSON stringContext to render in: bodygetMode()Mode to render (comment, gfm, markdown) in: bodygetText()Text markdown to render in: bodygetWiki()Is it a wiki page ? in: bodyinthashCode()voidsetContext(String context) voidvoidvoidtoJson()Convert an instance of MarkdownOption to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTEXT
- See Also:
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_TEXT
- See Also:
-
SERIALIZED_NAME_WIKI
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MarkdownOption
public MarkdownOption()
-
-
Method Details
-
context
-
getContext
Context to render in: body- Returns:
- context
-
setContext
-
mode
-
getMode
Mode to render (comment, gfm, markdown) in: body- Returns:
- mode
-
setMode
-
text
-
getText
Text markdown to render in: body- Returns:
- text
-
setText
-
wiki
-
getWiki
Is it a wiki page ? in: body- Returns:
- wiki
-
setWiki
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to MarkdownOption
-
fromJson
Create an instance of MarkdownOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MarkdownOption
- Throws:
IOException- if the JSON string is invalid with respect to MarkdownOption
-
toJson
Convert an instance of MarkdownOption to an JSON string- Returns:
- JSON string
-