Class PortugueseUnitConversionRule


  • public class PortugueseUnitConversionRule
    extends org.languagetool.rules.AbstractUnitConversionRule
    Localized from the German version by Tiago F. Santos
    Since:
    4.3
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.languagetool.rules.AbstractUnitConversionRule

        org.languagetool.rules.AbstractUnitConversionRule.Message
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.text.NumberFormat format  
      • Fields inherited from class org.languagetool.rules.AbstractUnitConversionRule

        convertedPatterns, FAHRENHEIT, FEET, IMP_FL_OUNCE, IMP_GALLON, IMP_PINT, IMP_QUART, INCH, metricUnits, MILE, NUMBER_REGEX, numberRangePart, OUNCE, POUND, specialPatterns, unitPatterns, unitSymbols, US_CUP, US_FL_OUNCE, US_GALLON, US_PINT, US_QUART, YARD
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()  
      java.lang.String getId()  
      protected java.lang.String getMessage​(org.languagetool.rules.AbstractUnitConversionRule.Message message)  
      protected java.text.NumberFormat getNumberFormat()  
      protected java.lang.String getShortMessage​(org.languagetool.rules.AbstractUnitConversionRule.Message message)  
      • Methods inherited from class org.languagetool.rules.AbstractUnitConversionRule

        addUnit, detectNumberRange, formatMeasurement, formatRounded, getMetricEquivalent, getSuggestion, match
      • Methods inherited from class org.languagetool.rules.Rule

        addExamplePair, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • format

        private final java.text.NumberFormat format
    • Constructor Detail

      • PortugueseUnitConversionRule

        public PortugueseUnitConversionRule​(java.util.ResourceBundle messages)
    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in class org.languagetool.rules.Rule
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in class org.languagetool.rules.Rule
      • getMessage

        protected java.lang.String getMessage​(org.languagetool.rules.AbstractUnitConversionRule.Message message)
        Overrides:
        getMessage in class org.languagetool.rules.AbstractUnitConversionRule
      • getShortMessage

        protected java.lang.String getShortMessage​(org.languagetool.rules.AbstractUnitConversionRule.Message message)
        Overrides:
        getShortMessage in class org.languagetool.rules.AbstractUnitConversionRule
      • getNumberFormat

        protected java.text.NumberFormat getNumberFormat()
        Overrides:
        getNumberFormat in class org.languagetool.rules.AbstractUnitConversionRule