com.marklogic.xcc.types

## Interface XSBoolean

- All Superinterfaces:
    XdmAtomic, XdmItem, XdmValue

      public interface XSBoolean
      extends XdmAtomic

  XDM type: xs:boolean.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Boolean` | `asBoolean()`
    `boolean` | `asPrimitiveBoolean()`

    - ### 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

    - #### asBoolean

          java.lang.Boolean asBoolean()

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

    - #### asPrimitiveBoolean

          boolean asPrimitiveBoolean()

      Returns:
        The value of this item as a Java primitive boolean value.

Copyright © 2025 MarkLogic Corporation

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