Package org.languagetool.rules
Class Category
- java.lang.Object
-
- org.languagetool.rules.Category
-
public final class Category extends Object
A rule's category. Categories are used to group rules for a better overview.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Category.Location
-
Constructor Summary
Constructors Constructor Description Category(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable CategoryId
getId()
Category.Location
getLocation()
String
getName()
@Nullable String
getTabName()
boolean
isDefaultOff()
Checks whether the category has been turned off by default by the category author.String
toString()
-
-
-
Constructor Detail
-
Category
public Category(CategoryId id, String name)
- Since:
- 3.3
-
Category
public Category(CategoryId id, String name, Category.Location location)
- Since:
- 3.3
-
Category
public Category(CategoryId id, String name, Category.Location location, boolean onByDefault)
- Since:
- 3.3
-
Category
public Category(CategoryId id, String name, Category.Location location, boolean onByDefault, String tabname)
- Since:
- 4.3
-
-
Method Detail
-
getId
@Nullable public @Nullable CategoryId getId()
- Since:
- 3.3
-
getName
public String getName()
-
getTabName
@Nullable public @Nullable String 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
public Category.Location getLocation()
- Since:
- 2.8
-
-