Class UnitParser

java.lang.Object
io.sf.jclf.text.UnitParser

public class UnitParser extends Object
Parses a string that contains a number and an unit (e.g. "12cm").
  • Constructor Details

    • UnitParser

      public UnitParser(String value)
  • Method Details

    • getUnparsedValue

      public String getUnparsedValue()
      Gets the unparsed string containing this vale+unit.
      Returns:
      the unparsed string
    • getValue

      public String getValue()
      Gets the value, as a string.
      Returns:
      the value.
    • getUnitName

      public String getUnitName()
      Gets the unit name.
      Returns:
      the unit.