Class MarkupOption
java.lang.Object
build.cursed.genapi.forgejo.model.MarkupOption
@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 MarkupOption
extends Object
MarkupOption markup options
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranchPath(String branchPath) booleanstatic MarkupOptionCreate an instance of MarkupOption given an JSON stringThe current branch path where the form gets posted in: bodyContext to render in: bodyFile path for detecting extension in file mode in: bodygetMode()Mode to render (comment, gfm, markdown, file) in: bodygetText()Text markup to render in: bodygetWiki()Is it a wiki page ? in: bodyinthashCode()voidsetBranchPath(String branchPath) voidsetContext(String context) voidsetFilePath(String filePath) voidvoidvoidtoJson()Convert an instance of MarkupOption 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_BRANCH_PATH
- See Also:
-
SERIALIZED_NAME_CONTEXT
- See Also:
-
SERIALIZED_NAME_FILE_PATH
- See Also:
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_TEXT
- See Also:
-
SERIALIZED_NAME_WIKI
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MarkupOption
public MarkupOption()
-
-
Method Details
-
branchPath
-
getBranchPath
The current branch path where the form gets posted in: body- Returns:
- branchPath
-
setBranchPath
-
context
-
getContext
Context to render in: body- Returns:
- context
-
setContext
-
filePath
-
getFilePath
File path for detecting extension in file mode in: body- Returns:
- filePath
-
setFilePath
-
mode
-
getMode
Mode to render (comment, gfm, markdown, file) in: body- Returns:
- mode
-
setMode
-
text
-
getText
Text markup 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 MarkupOption
-
fromJson
Create an instance of MarkupOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MarkupOption
- Throws:
IOException- if the JSON string is invalid with respect to MarkupOption
-
toJson
Convert an instance of MarkupOption to an JSON string- Returns:
- JSON string
-