XCC/J 3.2-9

com.marklogic.xcc.types
Interface XSInteger

All Superinterfaces:
XdmAtomic, XdmItem, XdmValue

public interface XSInteger
extends XdmAtomic

XDM type: xs:integer.


Method Summary
 BigInteger asBigInteger()
           
 Integer asInteger()
           
 Long asLong()
           
 int asPrimitiveInt()
           
 long asPrimitiveLong()
           
 
Methods inherited from interface com.marklogic.xcc.types.XdmItem
asInputStream, asReader, getItemType, isCached, writeTo, writeTo
 
Methods inherited from interface com.marklogic.xcc.types.XdmValue
asString, getValueType
 

Method Detail

asBigInteger

public BigInteger asBigInteger()
Returns:
The value of this item as a Biginteger object.

asLong

public Long asLong()
Returns:
The value of this item as a Long object. Warning: This method may truncate the XQuery integer value.

asPrimitiveLong

public long asPrimitiveLong()
Returns:
The value of this item as a Java primitive long value (64 bits). Warning: This method may truncate the XQuery integer value.

asInteger

public Integer asInteger()
Returns:
The value of this item as an Integer object. Warning: This method may truncate the XQuery integer value.

asPrimitiveInt

public int asPrimitiveInt()
Returns:
The value of this item as a Java primitive int value (32 bits). Warning: This method may truncate the XQuery integer value.

XCC/J 3.2-9

Copyright © 2003-2008 Mark Logic Corporation, All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com