org.apache.synapse.mediators.xquery

## Class MediatorVariable

- java.lang.Object
- - org.apache.synapse.mediators.xquery.MediatorVariable

- Direct Known Subclasses:
    MediatorBaseVariable, MediatorCustomVariable

      public abstract class MediatorVariable
      extends java.lang.Object

  Base class representing mediator variable used in XQuery mediator

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected java.lang.Object` | `value`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MediatorVariable(javax.xml.namespace.QName name)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract boolean` | `evaluateValue(org.apache.synapse.MessageContext synCtx)` Calculates the value of this variable
    `javax.xml.namespace.QName` | `getName()`
    `net.sf.saxon.s9api.XdmNodeKind` | `getNodeKind()`
    `net.sf.saxon.s9api.ItemType` | `getType()`
    `java.lang.Object` | `getValue()`
    `void` | `setName(javax.xml.namespace.QName name)`
    `void` | `setNodeKind(net.sf.saxon.s9api.XdmNodeKind nodeKind)`
    `void` | `setType(net.sf.saxon.s9api.ItemType type)`
    `void` | `setValue(java.lang.Object value)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### value

          protected java.lang.Object value

  - ### Constructor Detail

    - #### MediatorVariable

          public MediatorVariable(javax.xml.namespace.QName name)

  - ### Method Detail

    - #### getName

          public javax.xml.namespace.QName getName()

    - #### setName

          public void setName(javax.xml.namespace.QName name)

    - #### getType

          public net.sf.saxon.s9api.ItemType getType()

    - #### setType

          public void setType(net.sf.saxon.s9api.ItemType type)

    - #### getNodeKind

          public net.sf.saxon.s9api.XdmNodeKind getNodeKind()

    - #### setNodeKind

          public void setNodeKind(net.sf.saxon.s9api.XdmNodeKind nodeKind)

    - #### getValue

          public java.lang.Object getValue()

    - #### setValue

          public void setValue(java.lang.Object value)

    - #### evaluateValue

          public abstract boolean evaluateValue(org.apache.synapse.MessageContext synCtx)

      Calculates the value of this variable
      Parameters:
        `synCtx` - Current message in transit
      Returns:
        `true` if the value has changed

Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.