com.xml_project.morganaxdm
Class XS_Integer
java.lang.Object
com.xml_project.morganaxdm.XdmSequence
com.xml_project.morganaxdm.XdmItem
com.xml_project.morganaxdm.XdmValue
com.xml_project.morganaxdm.XS_AnySimpleType
com.xml_project.morganaxdm.XS_AnyAtomicType
com.xml_project.morganaxdm.XS_Numeric
com.xml_project.morganaxdm.XS_Integer
- All Implemented Interfaces:
- XS_AnyType, java.lang.Iterable<XdmItem>
- Direct Known Subclasses:
- XS_Byte, XS_Int, XS_Long, XS_negativeInteger, XS_nonNegativeInteger, XS_nonPositiveInteger, XS_positiveInteger, XS_Short, XS_unsignedByte, XS_unsignedInt, XS_unsignedLong, XS_unsignedShort
public class XS_Integer
- extends XS_Numeric
Implementation of xs:integer
Constructor Summary |
|
XS_Integer(java.math.BigInteger value)
|
protected |
XS_Integer(java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeName
public static final javax.xml.namespace.QName TypeName
ZERO
public static final XS_Integer ZERO
ONE
public static final XS_Integer ONE
MINUS_ONE
public static final XS_Integer MINUS_ONE
XS_Integer
protected XS_Integer(java.lang.Object value)
XS_Integer
public XS_Integer(java.math.BigInteger value)
getTypeName
public javax.xml.namespace.QName getTypeName()
- Specified by:
getTypeName
in interface XS_AnyType
- Overrides:
getTypeName
in class XS_Numeric
getValue
public java.math.BigInteger getValue()
- Description copied from class:
XdmItem
- Returns the value itself.
- Specified by:
getValue
in class XdmItem
- Returns:
- the value.
getRawValue
protected java.lang.Object getRawValue()
isNaN
public boolean isNaN()
- Specified by:
isNaN
in class XS_Numeric
getStringValue
public java.lang.String getStringValue()
- Description copied from class:
XdmItem
- Returns the string value.
- Specified by:
getStringValue
in class XdmItem
- Returns:
- the string value.
effectiveBooleanValue
public boolean effectiveBooleanValue()
- Specified by:
effectiveBooleanValue
in class XS_Numeric
arithmetic
public XS_Numeric arithmetic(XS_Numeric.Operations op,
XS_Numeric v)
throws XPathException
- Specified by:
arithmetic
in class XS_Numeric
- Throws:
XPathException
compareValues
public int compareValues(XS_AnySimpleType val)
- Specified by:
compareValues
in class XS_Numeric
function
public XS_Integer function(XS_Numeric.Functions func,
int par)
throws XPathException
- Specified by:
function
in class XS_Numeric
- Throws:
XPathException
getRestrictionBase
public static java.lang.Class<? extends XS_AnyType> getRestrictionBase()
makeXS_Integer
public static XS_Integer makeXS_Integer(long i)
makeXS_Integer
protected static XS_Integer makeXS_Integer(java.lang.String resp,
boolean trailingPlusAllowed)
throws XPathException
- Throws:
XPathException
canCast
public static boolean canCast(XdmValue value)
newInstance
public static XS_Integer newInstance(XdmValue value)
throws XPathException
- Throws:
XPathException
newInstance
protected static XS_Integer newInstance(XdmValue value,
java.lang.String className)
throws XPathException
- Throws:
XPathException
newInstance
protected static XS_Integer newInstance(XdmValue value,
boolean trailingPlusAllowed,
java.lang.String className)
throws XPathException
- Throws:
XPathException