Package net.webpdf.wsclient.openapi
Class OperationSyntaxHighlight
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationSyntaxHighlight
-
public class OperationSyntaxHighlight extends Object
This element is used to configure language detection and the representation of syntax elements in recognized programming/script languages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationSyntaxHighlight.FontOriginEnumUsed to specify whether the selected font should be obtained from your operating system or from the \"templates/fonts\" folder (in your webPDF installation path).static classOperationSyntaxHighlight.WordBreakEnumCan be used to configure the word wrap behaviour during highlighting Possible values: * auto = Automatic word wrap if necessary. * none = Suppress the addition of extra line breaks. * word = Line breaks allowed only after words. * all = Line breaks allowed unconditionally.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AVAILABLEstatic StringJSON_PROPERTY_FONT_FAMILYstatic StringJSON_PROPERTY_FONT_ORIGINstatic StringJSON_PROPERTY_FONT_SIZEstatic StringJSON_PROPERTY_LANGUAGEstatic StringJSON_PROPERTY_LINE_HEIGHTstatic StringJSON_PROPERTY_LINE_NUMBERSstatic StringJSON_PROPERTY_RELEVANCEstatic StringJSON_PROPERTY_WORD_BREAK
-
Constructor Summary
Constructors Constructor Description OperationSyntaxHighlight()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationSyntaxHighlightavailable(String available)booleanequals(Object o)OperationSyntaxHighlightfontFamily(String fontFamily)OperationSyntaxHighlightfontOrigin(OperationSyntaxHighlight.FontOriginEnum fontOrigin)OperationSyntaxHighlightfontSize(String fontSize)@Nullable StringgetAvailable()Can be used to specify the languages to which the syntax highlighted should be limited.@Nullable StringgetFontFamily()Used to specify the font that should be used for syntax highlighting.@Nullable OperationSyntaxHighlight.FontOriginEnumgetFontOrigin()Used to specify whether the selected font should be obtained from your operating system or from the \"templates/fonts\" folder (in your webPDF installation path).@Nullable StringgetFontSize()Used to set the font size for syntax highlighting to the specified value.@Nullable StringgetLanguage()Used to select a specific language for highlighting recognition.@Nullable StringgetLineHeight()Used to set the line height.@Nullable BooleangetLineNumbers()If this value is set to \"true\", line numbers are added before the code.@Nullable IntegergetRelevance()The syntax highlighter evaluates the degree of reliability with which it recognizes a language with a value ranging from 0 to 1000 points.@Nullable OperationSyntaxHighlight.WordBreakEnumgetWordBreak()Can be used to configure the word wrap behaviour during highlighting Possible values: * auto = Automatic word wrap if necessary. * none = Suppress the addition of extra line breaks. * word = Line breaks allowed only after words. * all = Line breaks allowed unconditionally.inthashCode()OperationSyntaxHighlightlanguage(String language)OperationSyntaxHighlightlineHeight(String lineHeight)OperationSyntaxHighlightlineNumbers(Boolean lineNumbers)OperationSyntaxHighlightrelevance(Integer relevance)voidsetAvailable(String available)voidsetFontFamily(String fontFamily)voidsetFontOrigin(OperationSyntaxHighlight.FontOriginEnum fontOrigin)voidsetFontSize(String fontSize)voidsetLanguage(String language)voidsetLineHeight(String lineHeight)voidsetLineNumbers(Boolean lineNumbers)voidsetRelevance(Integer relevance)voidsetWordBreak(OperationSyntaxHighlight.WordBreakEnum wordBreak)StringtoString()OperationSyntaxHighlightwordBreak(OperationSyntaxHighlight.WordBreakEnum wordBreak)
-
-
-
Field Detail
-
JSON_PROPERTY_AVAILABLE
public static final String JSON_PROPERTY_AVAILABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FONT_FAMILY
public static final String JSON_PROPERTY_FONT_FAMILY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FONT_ORIGIN
public static final String JSON_PROPERTY_FONT_ORIGIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FONT_SIZE
public static final String JSON_PROPERTY_FONT_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LANGUAGE
public static final String JSON_PROPERTY_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINE_HEIGHT
public static final String JSON_PROPERTY_LINE_HEIGHT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINE_NUMBERS
public static final String JSON_PROPERTY_LINE_NUMBERS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RELEVANCE
public static final String JSON_PROPERTY_RELEVANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WORD_BREAK
public static final String JSON_PROPERTY_WORD_BREAK
- See Also:
- Constant Field Values
-
-
Method Detail
-
available
public OperationSyntaxHighlight available(String available)
-
getAvailable
@Nullable public @Nullable String getAvailable()
Can be used to specify the languages to which the syntax highlighted should be limited. You can enter multiple languages by separating them with a comma (\"java,cpp\"). If you do not specify a value, all the languages listed below will be recognized. You can select any of the following languages: * abnf = Augmented Backus-Naur form * accesslog = Apache/Nginx Access Logs * actionscript = ActionScript * ada = Ada * angelscript = AngelScript * apache = Apache configuration language * applescript = AppleScript * arcade = ArcGIS Arcade * arduino = Arduino * armasm = ARM Assembly * asciidoc = AsciiDoc * aspectj = AspectJ * autohotkey = AutoHotkey * autoit = AutoIt * avrasm = AVR Assembler * awk = Awk * axapta = Axapta * bash = Bash * basic = Basic * bnf = Backus-Naur Form * brainfuck = Brainfuck * cal = C/AL * capnproto = Cap'n Proto * ceylon = Ceylon * clean = Clean * clojure-repl = Clojure REPL * clojure = Clojure * cmake = CMake * coffeescript = CoffeeScript * coq = Coq * cos = Caché Object Script * cpp = C++ * crmsh = crmsh * crystal = Crystal * cs = C# * csp = CSP * css = CSS * d = D * dart = Dart * delphi = Delphi * diff = Diff * django = Django * dns = DNS Zone file * dockerfile = Dockerfile * dos = DOS .bat * dsconfig = dsconfig * dts = Device Tree * dust = Dust * ebnf = Extended Backus-Naur Form * elixir = Elixir * elm = Elm * erb = Embedded Ruby * erlang-repl = Erlang REPL * erlang = Erlang * excel = Excel * fix = FIX * flix = FLIX * fortran = Fortran * fsharp = F# * gams = GAMS * gauss = GAUSS * gcode = G-code * gherkin = Gherkin * glsl = GLSL * gml = GML * go = Go * golo = Golo * gradle = Gradle * groovy = Groovy * haml = Haml * arduino = Arduino * handlebars = Handlebars * haskell = Haskell * haxe = Haxe * hsp = HSP * htmlbars = HTMLBars * http = HTTP * hy = Hy * inform7 = Inform 7 * arduino = Ini, TOML * irpf90 = IRPF90 * isbl = ISBL * java = Java * javascript = Javascript * jboss-cli = jboss-cli * json = JSON * julia-repl = Julia REPL * julia = Julia * kotlin = Kotlin * lasso = Lasso * ldif = LDIF * leaf = Leaf * less = Less * lisp = Lisp * livecodeserver = LiveCode * livescript = LiveScript * llvm = LLVM IR * lsl = Linden Scripting Language * lua = Lua * makefile = Makefile * markdown = Markdown * mathematica = Mathematica * matlab = Matlab * maxima = Maxima * mel = MEL * mercury = Mercury * mipsasm = MIPS Assembly * mizar = Mizar * mojolicious = Mojolicious * monkey = Monkey * moonscript = MoonScript * n1ql = N1QL * nginx = Nginx * nimrod = Nimrod * nix = Nix * nsis = NSIS * objectivec = Objective-C * ocaml = OCaml * openscad = OpenSCAD * oxygene = Oxygene * parser3 = Parser3 * perl = Perl * pf = pf * pgsql = PostgreSQL * php = PHP * plaintext = plaintext * pony = Pony * powershell = PowerShell * processing = Processing * profile = Python profile * prolog = Prolog * properties = Properties * protobuf = Protocol Buffers * puppet = Puppet * purebasic = PureBASIC * python = Python * q = Q * qml = QML * r = R * reasonml = ReasonML * rib = RenderMan RIB * roboconf = Roboconf * routeros = Microtik RouterOS Script * rsl = RenderMan RSL * ruby = Ruby * ruleslanguage = Oracle Rules Language * rust = Rust * sas = SAS * scala = Scala * scheme = Scheme * scilab = Scilab * scss = SCSS * shell = Shell Session * smali = Smali * smalltalk = Smalltalk * sml = SML * sqf = SQF * sql = SQL * stan = Stan * stata = Stata * step21 = Step Part 21 * stylus = Stylus * subunit = SubUnit * swift = Swift * taggerscript = Tagger Script * tap = Test Anything Protocol * tcl = Tcl * tex = TeX * thrift = Thrift * tp = TP * twig = Twig * typescript = TypeScript * vala = Vala * vbnet = VB.NET * vbscript-html = VBScript in HTML * vbscript = VBScript * verilog = Verilog * vhdl = VHDL * vim = Vim Script * x86asm = Intel x86 Assembly * xl = XL * xml = XML * xquery = XQuery * yaml = YAML * zephir = Zephir- Returns:
- available
-
setAvailable
public void setAvailable(String available)
-
fontFamily
public OperationSyntaxHighlight fontFamily(String fontFamily)
-
getFontFamily
@Nullable public @Nullable String getFontFamily()
Used to specify the font that should be used for syntax highlighting. If you select \"folder\" for the \"fontOrigin\" parameter, the font here needs to be specified with the filename for the file. Otherwise, use the name of the font you want. If the value is left blank, the \"Fira Code\" font will be used automatically.- Returns:
- fontFamily
-
setFontFamily
public void setFontFamily(String fontFamily)
-
fontOrigin
public OperationSyntaxHighlight fontOrigin(OperationSyntaxHighlight.FontOriginEnum fontOrigin)
-
getFontOrigin
@Nullable public @Nullable OperationSyntaxHighlight.FontOriginEnum getFontOrigin()
Used to specify whether the selected font should be obtained from your operating system or from the \"templates/fonts\" folder (in your webPDF installation path). Possible values: * system = It will be possible to select from the fonts available system-wide. * folder =It will be possible to select from the fonts in \"templates/fonts\".- Returns:
- fontOrigin
-
setFontOrigin
public void setFontOrigin(OperationSyntaxHighlight.FontOriginEnum fontOrigin)
-
fontSize
public OperationSyntaxHighlight fontSize(String fontSize)
-
getFontSize
@Nullable public @Nullable String getFontSize()
Used to set the font size for syntax highlighting to the specified value. You can use any of the following units: * px = Pixels * cm = Centimeters * mm = Millimeters * in = Inches * pt = Points * pc = Pica- Returns:
- fontSize
-
setFontSize
public void setFontSize(String fontSize)
-
language
public OperationSyntaxHighlight language(String language)
-
getLanguage
@Nullable public @Nullable String getLanguage()
Used to select a specific language for highlighting recognition. You can select one of the languages listed for the \"available\" parameter. If you do not set this value, the system will attempt to automatically select an appropriate language from the list of available languages.- Returns:
- language
-
setLanguage
public void setLanguage(String language)
-
lineHeight
public OperationSyntaxHighlight lineHeight(String lineHeight)
-
getLineHeight
@Nullable public @Nullable String getLineHeight()
Used to set the line height. You can use any of the following units: * px = Pixels * cm = Centimeters * mm = Millimeters * in = Inches * pt = Points * pc = Pica- Returns:
- lineHeight
-
setLineHeight
public void setLineHeight(String lineHeight)
-
lineNumbers
public OperationSyntaxHighlight lineNumbers(Boolean lineNumbers)
-
getLineNumbers
@Nullable public @Nullable Boolean getLineNumbers()
If this value is set to \"true\", line numbers are added before the code.- Returns:
- lineNumbers
-
setLineNumbers
public void setLineNumbers(Boolean lineNumbers)
-
relevance
public OperationSyntaxHighlight relevance(Integer relevance)
-
getRelevance
@Nullable public @Nullable Integer getRelevance()
The syntax highlighter evaluates the degree of reliability with which it recognizes a language with a value ranging from 0 to 1000 points. This value determines the reliability level starting from which it should highlight syntax for a recognized language. The higher the value, the more closely the content found must match the criteria.- Returns:
- relevance
-
setRelevance
public void setRelevance(Integer relevance)
-
wordBreak
public OperationSyntaxHighlight wordBreak(OperationSyntaxHighlight.WordBreakEnum wordBreak)
-
getWordBreak
@Nullable public @Nullable OperationSyntaxHighlight.WordBreakEnum getWordBreak()
Can be used to configure the word wrap behaviour during highlighting Possible values: * auto = Automatic word wrap if necessary. * none = Suppress the addition of extra line breaks. * word = Line breaks allowed only after words. * all = Line breaks allowed unconditionally.- Returns:
- wordBreak
-
setWordBreak
public void setWordBreak(OperationSyntaxHighlight.WordBreakEnum wordBreak)
-
-