public class MaxTypeYORN extends MaxType
Constructor and Description |
---|
MaxTypeYORN(java.util.Locale locale)
Construct null value of specified type
|
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
Return as boolean Throws Exception if value is null or cannot be returned
as this type.
|
double |
asDouble()
Return as double.
|
float |
asFloat()
Return the value as a float
|
int |
asInt()
Return as an int.
|
java.lang.String |
asLocaleString()
Return as a locale sensitive string using the default timeZone and locale
Returns "" if value is null.
|
java.lang.String |
asLocaleString(java.util.Locale l)
Return as a locale sensitive string using the default TimeZone and the specified Locale
Returns "" if value is null.
|
java.lang.String |
asLocaleString(java.util.Locale l,
java.util.TimeZone tz)
Return as a locale sensitive string using the specified TimeZone and Locale
Returns "" if value is null.
|
long |
asLong()
Return as a long.
|
java.lang.String |
asString()
Return as a string.
|
java.lang.Object |
clone()
Clone the object.
|
boolean |
equals(java.lang.Object o)
Compares two MaxTypes.
|
int |
getType()
Get the current type
|
void |
setValue(boolean value)
Set the value to the specified value.
|
void |
setValue(double value)
Set the value to the specified value.
|
void |
setValue(float value)
Set the value to the specified value.
|
void |
setValue(int value)
Set the value to the specified value.
|
void |
setValue(long value)
Set the value to the specified value.
|
void |
setValue(MaxType value) |
void |
setValue(java.lang.String value)
Set the value to the specified value.
|
asBytes, asDate, createMaxType, createMaxType, getMaxLength, getScale, isNull, overrideStringData, setAftercheckLengthAndScale, setMaxLength, setScale, setValue, setValue, setValueNull, toString
public MaxTypeYORN(java.util.Locale locale)
public void setValue(java.lang.String value) throws MXException
setValue
in class MaxType
MXException
public void setValue(double value) throws MXException
setValue
in class MaxType
MXException
public void setValue(float value) throws MXException
setValue
in class MaxType
MXException
public void setValue(int value) throws MXException
setValue
in class MaxType
MXException
public void setValue(long value) throws MXException
setValue
in class MaxType
MXException
public void setValue(boolean value) throws MXException
setValue
in class MaxType
MXException
public java.lang.String asString()
public java.lang.String asLocaleString(java.util.Locale l)
asLocaleString
in class MaxType
public java.lang.String asLocaleString(java.util.Locale l, java.util.TimeZone tz)
asLocaleString
in class MaxType
public java.lang.String asLocaleString()
asLocaleString
in class MaxType
public double asDouble() throws MXException
asDouble
in class MaxType
MXException
public float asFloat() throws MXException
asFloat
in class MaxType
MXException
public int asInt() throws MXException
asInt
in class MaxType
MXException
public long asLong() throws MXException
asLong
in class MaxType
MXException
public boolean asBoolean() throws MXException
asBoolean
in class MaxType
MXException
public void setValue(MaxType value) throws MXException
setValue
in class MaxType
MXException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object