Package org.languagetool.tools
Enum StringTools.ApiPrintMode
- All Implemented Interfaces:
Serializable
,Comparable<StringTools.ApiPrintMode>
,java.lang.constant.Constable
- Enclosing class:
StringTools
Constants for printing XML rule matches.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSimply continue rule match output.End XML/JSON output by closing the root element.Normally output the rule matches by starting and ending the XML/JSON output on every call.Start XML/JSON output by printing the preamble and the start of the root element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringTools.ApiPrintMode
Returns the enum constant of this type with the specified name.static StringTools.ApiPrintMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NORMAL_API
Normally output the rule matches by starting and ending the XML/JSON output on every call. -
START_API
Start XML/JSON output by printing the preamble and the start of the root element. -
END_API
End XML/JSON output by closing the root element. -
CONTINUE_API
Simply continue rule match output.
-
-
Constructor Details
-
ApiPrintMode
private ApiPrintMode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-