|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.util.UnitParser
public class UnitParser
class to parse units from strings
| Constructor Summary | |
|---|---|
UnitParser()
|
|
| Method Summary | |
|---|---|
String |
extractUnits(String val)
extract units if and only if the string has a pattern of "<##>mm" or "<##>cm"or "<##>in" whitespace is ignored |
int |
getPrecision()
Getter for precision attribute. |
void |
setPrecision(int precision)
Setter for precision attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnitParser()
| Method Detail |
|---|
public String extractUnits(String val)
val - the string to convert
public void setPrecision(int precision)
precision - the precision to setpublic int getPrecision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||