com.jmex.xml.types
Class SchemaDecimal
java.lang.Object
com.jmex.xml.types.SchemaDecimal
- All Implemented Interfaces:
- SchemaType, SchemaTypeNumber, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class SchemaDecimal
- extends java.lang.Object
- implements SchemaTypeNumber
- See Also:
- Serialized Form
|
Field Summary |
protected boolean |
isempty
|
protected boolean |
isnull
|
protected java.math.BigDecimal |
value
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
value
protected java.math.BigDecimal value
isempty
protected boolean isempty
isnull
protected boolean isnull
SchemaDecimal
public SchemaDecimal()
SchemaDecimal
public SchemaDecimal(SchemaDecimal newvalue)
SchemaDecimal
public SchemaDecimal(java.math.BigDecimal newvalue)
SchemaDecimal
public SchemaDecimal(double newvalue)
SchemaDecimal
public SchemaDecimal(java.lang.String newvalue)
SchemaDecimal
public SchemaDecimal(SchemaType newvalue)
SchemaDecimal
public SchemaDecimal(SchemaTypeNumber newvalue)
getValue
public java.math.BigDecimal getValue()
setValue
public void setValue(java.math.BigDecimal newvalue)
setValue
public void setValue(double newvalue)
parse
public void parse(java.lang.String s)
- Specified by:
parse in interface SchemaType
assign
public void assign(SchemaType newvalue)
setNull
public void setNull()
- Specified by:
setNull in interface SchemaType
setEmpty
public void setEmpty()
- Specified by:
setEmpty in interface SchemaType
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object
toString
public java.lang.String toString()
- Specified by:
toString in interface SchemaType- Overrides:
toString in class java.lang.Object
length
public int length()
- Specified by:
length in interface SchemaType
booleanValue
public boolean booleanValue()
- Specified by:
booleanValue in interface SchemaType
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface SchemaType
isNull
public boolean isNull()
- Specified by:
isNull in interface SchemaType
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo in interface java.lang.Comparable
compareTo
public int compareTo(SchemaDecimal obj)
reduceScale
public void reduceScale()
numericType
public int numericType()
- Specified by:
numericType in interface SchemaTypeNumber
intValue
public int intValue()
- Specified by:
intValue in interface SchemaTypeNumber
longValue
public long longValue()
- Specified by:
longValue in interface SchemaTypeNumber
bigIntegerValue
public java.math.BigInteger bigIntegerValue()
- Specified by:
bigIntegerValue in interface SchemaTypeNumber
floatValue
public float floatValue()
- Specified by:
floatValue in interface SchemaTypeNumber
doubleValue
public double doubleValue()
- Specified by:
doubleValue in interface SchemaTypeNumber
bigDecimalValue
public java.math.BigDecimal bigDecimalValue()
- Specified by:
bigDecimalValue in interface SchemaTypeNumber