public class UnitPrefix
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
java.lang.Double |
scale |
java.lang.String |
symbol |
java.lang.String |
system |
Constructor and Description |
---|
UnitPrefix(java.lang.String name,
java.lang.String symbol,
java.lang.Double scale,
java.lang.String system) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.Double |
getScale() |
java.lang.String |
getSymbol() |
static java.util.List<UnitPrefix> |
loadPrefixes(java.lang.String filename) |
static void |
registerPrefix(Env env,
UnitPrefix prefix) |
static void |
registerPrefixes(Env env,
java.util.List<UnitPrefix> prefixes) |
static void |
registerPrefixes(Env env,
java.lang.String filename) |
void |
setName(java.lang.String name) |
void |
setScale(java.lang.Double scale) |
void |
setScale(java.lang.Number scale) |
void |
setSymbol(java.lang.String symbol) |
public java.lang.String name
public java.lang.String symbol
public java.lang.Double scale
public java.lang.String system
public UnitPrefix(java.lang.String name, java.lang.String symbol, java.lang.Double scale, java.lang.String system)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getSymbol()
public void setSymbol(java.lang.String symbol)
public java.lang.Double getScale()
public void setScale(java.lang.Double scale)
public void setScale(java.lang.Number scale)
public static void registerPrefixes(Env env, java.lang.String filename) throws java.io.IOException
java.io.IOException
public static void registerPrefixes(Env env, java.util.List<UnitPrefix> prefixes)
public static void registerPrefix(Env env, UnitPrefix prefix)
public static java.util.List<UnitPrefix> loadPrefixes(java.lang.String filename) throws java.io.IOException
java.io.IOException