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 Link icon

    • UnitParser Link icon

      public UnitParser(String value)
  • Method Details Link icon

    • getUnparsedValue Link icon

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

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

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