public class MaxTypeALN extends MaxType
| Constructor and Description |
|---|
MaxTypeALN()
Constructor
|
MaxTypeALN(java.util.Locale l)
Construct null value of specified type
|
| Modifier and Type | Method and Description |
|---|---|
double |
asDouble()
Return as double, it does a conversion from string to double
Throws Exception if value is null or cannot be returned as this type.
|
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 locale)
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,
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 |
getMaxLength()
Return maximum length.
|
int |
getType()
Get the current type
|
void |
overrideStringData(java.lang.String newValue)
This should be called only in very special circumstances related to
conversion of a value between locales (for example,
maxattributecfg.defaultvalue).
|
void |
setMaxLength(int l)
Set what the maximum length for an ALN, UPPER, LOWER or LONGALN
value.
|
void |
setValue(MaxType value)
Set value based on the MaxType value passed in.
|
void |
setValue(java.lang.String value)
Set the value to the specified value.
|
public MaxTypeALN(java.util.Locale l)
public MaxTypeALN()
public int getMaxLength()
getMaxLength in class MaxTypepublic void setMaxLength(int l)
setMaxLength in class MaxTypepublic void setValue(java.lang.String value)
throws MXException
setValue in class MaxTypeMXExceptionpublic java.lang.String asString()
public java.lang.String asLocaleString(java.util.Locale l,
java.util.TimeZone tz)
asLocaleString in class MaxTypepublic java.lang.String asLocaleString()
asLocaleString in class MaxTypepublic java.lang.String asLocaleString(java.util.Locale locale)
asLocaleString in class MaxTypepublic long asLong()
throws MXException
asLong in class MaxTypeMXExceptionpublic void setValue(MaxType value) throws MXException
setValue in class MaxTypeMXExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic void overrideStringData(java.lang.String newValue)
overrideStringData in class MaxTypenewValue - public double asDouble()
throws MXException
asDouble in class MaxTypeMXException