com.marklogic.xcc.types

## Interface XSInteger

- All Superinterfaces:
    XdmAtomic, XdmItem, XdmValue

      public interface XSInteger
      extends XdmAtomic

  XDM type: xs:integer.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.math.BigInteger` | `asBigInteger()`
    `java.lang.Integer` | `asInteger()`
    `java.lang.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

          java.math.BigInteger asBigInteger()

      Returns:
        The value of this item as a Biginteger object.

    - #### asLong

          java.lang.Long asLong()

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

    - #### asPrimitiveLong

          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

          java.lang.Integer asInteger()

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

    - #### asPrimitiveInt

          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.

Copyright © 2025 MarkLogic Corporation. All Rights Reserved.

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