com.xml_project.morganaxproc.xdm
Class XS_Integer

java.lang.Object
  extended by com.xml_project.morganaxproc.xdm.XdmSequence
      extended by com.xml_project.morganaxproc.xdm.XdmItem
          extended by com.xml_project.morganaxproc.xdm.XdmValue
              extended by com.xml_project.morganaxproc.xdm.XS_AnySimpleType
                  extended by com.xml_project.morganaxproc.xdm.XS_AnyAtomicType
                      extended by com.xml_project.morganaxproc.xdm.XS_Numeric
                          extended by com.xml_project.morganaxproc.xdm.XS_Integer
All Implemented Interfaces:
XS_AnyType, 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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.xml_project.morganaxproc.xdm.XS_Numeric
XS_Numeric.Functions, XS_Numeric.Operations
 
Nested classes/interfaces inherited from class com.xml_project.morganaxproc.xdm.XS_AnyAtomicType
XS_AnyAtomicType.ValueComparers
 
Field Summary
static XS_Integer MINUS_ONE
           
static XS_Integer ONE
           
static QName TypeName
           
static XS_Integer ZERO
           
 
Constructor Summary
  XS_Integer(BigInteger value)
           
protected XS_Integer(Object value)
           
 
Method Summary
 XS_Numeric arithmetic(XS_Numeric.Operations op, XS_Numeric v)
           
static boolean canCast(XdmValue value)
           
 int compareValues(XS_AnySimpleType val)
           
 boolean effectiveBooleanValue()
           
 XS_Integer function(XS_Numeric.Functions func, int par)
           
protected  Object getRawValue()
           
static Class<? extends XS_AnyType> getRestrictionBase()
           
 String getStringValue()
          Returns the string value.
 QName getTypeName()
           
 BigInteger getValue()
          Returns the value itself.
 boolean isNaN()
           
static XS_Integer makeXS_Integer(long i)
           
protected static XS_Integer makeXS_Integer(String resp, boolean trailingPlusAllowed)
           
static XS_Integer newInstance(XdmValue value)
           
protected static XS_Integer newInstance(XdmValue value, boolean trailingPlusAllowed, String className)
           
protected static XS_Integer newInstance(XdmValue value, String className)
           
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_Numeric
compareValues, getPromotionClass, getPromotionClass, isOrdered, makeDouble, makeOperand, makeOperand, makeOperands, promoteTo
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_AnyAtomicType
compareValue, makeCompareResult, test
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_AnySimpleType
compareValues, isValue
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmValue
atomize
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmItem
first, get, hasValues, isEmpty, iterator, size, subSequence
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmSequence
concat, hasCommonType, normalize, serialize, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TypeName

public static final 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
Constructor Detail

XS_Integer

protected XS_Integer(Object value)

XS_Integer

public XS_Integer(BigInteger value)
Method Detail

getTypeName

public QName getTypeName()
Specified by:
getTypeName in interface XS_AnyType
Overrides:
getTypeName in class XS_Numeric

getValue

public BigInteger getValue()
Description copied from class: XdmItem
Returns the value itself.

Specified by:
getValue in class XdmItem
Returns:
the value.

getRawValue

protected Object getRawValue()

isNaN

public boolean isNaN()
Specified by:
isNaN in class XS_Numeric

getStringValue

public 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 Class<? extends XS_AnyType> getRestrictionBase()

makeXS_Integer

public static XS_Integer makeXS_Integer(long i)

makeXS_Integer

protected static XS_Integer makeXS_Integer(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,
                                        String className)
                                 throws XPathException
Throws:
XPathException

newInstance

protected static XS_Integer newInstance(XdmValue value,
                                        boolean trailingPlusAllowed,
                                        String className)
                                 throws XPathException
Throws:
XPathException