Package org.languagetool.rules.de
Class UnitConversionRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractUnitConversionRule
org.languagetool.rules.de.UnitConversionRule
- Since:
- 4.3
-
Nested Class Summary
Nested classes/interfaces inherited from class org.languagetool.rules.AbstractUnitConversionRule
AbstractUnitConversionRule.Message -
Field Summary
FieldsFields inherited from class org.languagetool.rules.AbstractUnitConversionRule
convertedPatterns, FAHRENHEIT, FEET, IMP_FL_OUNCE, IMP_GALLON, IMP_PINT, IMP_QUART, INCH, metricUnits, MILE, NUMBER_REGEX, NUMBER_REGEX_WITH_BOUNDARY, numberRangePart, OUNCE, POUND, specialPatterns, unitPatterns, unitSymbols, US_CUP, US_FL_OUNCE, US_GALLON, US_PINT, US_QUART, YARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA short description of the error this rule can detect, usually in the language of the text that is checked.getId()A string used to identify the rule in e.g.protected StringOverride in subclassesprotected NumberFormatOverride in subclassesprotected StringOverride in subclassesMethods inherited from class org.languagetool.rules.AbstractUnitConversionRule
addUnit, detectNumberRange, formatMeasurement, formatRounded, getMetricEquivalent, getSuggestion, matchMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getAntiPatterns, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getPriority, getRuleOptions, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isIncludedInHiddenMatches, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncludedInHiddenMatches, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setPriority, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
Field Details
-
format
-
-
Constructor Details
-
UnitConversionRule
-
-
Method Details
-
getId
Description copied from class:RuleA 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 charactersA-Zand the underscore. -
getDescription
Description copied from class:RuleA short description of the error this rule can detect, usually in the language of the text that is checked.- Specified by:
getDescriptionin classRule
-
getMessage
Description copied from class:AbstractUnitConversionRuleOverride in subclasses- Overrides:
getMessagein classAbstractUnitConversionRule
-
getShortMessage
Description copied from class:AbstractUnitConversionRuleOverride in subclasses- Overrides:
getShortMessagein classAbstractUnitConversionRule
-
getNumberFormat
Description copied from class:AbstractUnitConversionRuleOverride in subclasses- Overrides:
getNumberFormatin classAbstractUnitConversionRule- Returns:
- locale-specific number format
-