Class Category
java.lang.Object
org.languagetool.rules.Category
A rule's category. Categories are used to group rules for
a better overview.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final CategoryIdprivate final Category.Locationprivate final Stringprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionCategory(CategoryId id, String name) Category(CategoryId id, String name, Category.Location location) Category(CategoryId id, String name, Category.Location location, boolean onByDefault) Category(CategoryId id, String name, Category.Location location, boolean onByDefault, String tabname) -
Method Summary
Modifier and TypeMethodDescription@Nullable CategoryIdgetId()getName()@Nullable StringbooleanChecks whether the category has been turned off by default by the category author.toString()
-
Field Details
-
name
-
id
-
location
-
defaultOff
private final boolean defaultOff -
tabname
-
-
Constructor Details
-
Category
- Since:
- 3.3
-
Category
- Since:
- 3.3
-
Category
- Since:
- 3.3
-
Category
public Category(CategoryId id, String name, Category.Location location, boolean onByDefault, String tabname) - Since:
- 4.3
-
-
Method Details
-
getId
- Since:
- 3.3
-
getName
-
toString
-
getTabName
- Since:
- 4.3
-
isDefaultOff
public boolean isDefaultOff()Checks whether the category has been turned off by default by the category author.- Returns:
- True if the category is turned off by default.
-
getLocation
- Since:
- 2.8
-