Class UnitConversionRule

Direct Known Subclasses:
UnitConversionRuleImperial, UnitConversionRuleUS

public class UnitConversionRule extends AbstractUnitConversionRule
Since:
4.3
  • Field Details

  • Constructor Details

    • UnitConversionRule

      public UnitConversionRule(ResourceBundle messages)
  • Method Details

    • getId

      public String getId()
      Description copied from class: Rule
      A string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool. It's supposed to contain only the characters A-Z and the underscore.
      Specified by:
      getId in class Rule
    • getDescription

      public String getDescription()
      Description copied from class: Rule
      A short description of the error this rule can detect, usually in the language of the text that is checked.
      Specified by:
      getDescription in class Rule
    • getNumberFormat

      protected NumberFormat getNumberFormat()
      Description copied from class: AbstractUnitConversionRule
      Override in subclasses
      Overrides:
      getNumberFormat in class AbstractUnitConversionRule
      Returns:
      locale-specific number format