|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.tools.label.Scalar
gov.nasa.pds.tools.label.Numeric
public class Numeric
This class represents a numeric scalar. It is not type specific so everything is represented as a String.
Constructor Summary | |
---|---|
Numeric(String value)
Constructs a Numeric with the given value |
|
Numeric(String value,
int radix)
Constructs a Numeric with the given value and radix |
|
Numeric(String value,
String units)
Constructs a Numeric with the given value and units |
|
Numeric(String value,
String units,
int radix)
Constructs a Numeric with the given value, units and radix |
Method Summary | |
---|---|
int |
getRadix()
Retrieves the base |
String |
getUnits()
Retrieves the units |
boolean |
isSupportedPDSType(Constants.DictionaryType type)
|
String |
normalize()
|
void |
setRadix(int radix)
Sets the radix |
void |
setUnits(String units)
Sets the units |
Methods inherited from class gov.nasa.pds.tools.label.Scalar |
---|
equals, getValue, hashcode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Numeric(String value)
value
- of numericpublic Numeric(String value, String units)
value
- of numericunits
- of numericpublic Numeric(String value, int radix)
value
- of numericradix
- of numericpublic Numeric(String value, String units, int radix)
value
- of numericunits
- of numericradix
- of numericMethod Detail |
---|
public void setUnits(String units)
units
- of the numericpublic String getUnits()
public void setRadix(int radix)
radix
- of the numericpublic int getRadix()
public String normalize()
public boolean isSupportedPDSType(Constants.DictionaryType type)
isSupportedPDSType
in class Scalar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |