org.eclipse.viatra.query.runtime.matchers.tuple

## Class TupleValueProvider

- java.lang.Object
- - org.eclipse.viatra.query.runtime.matchers.tuple.TupleValueProvider

- All Implemented Interfaces:
    IValueProvider

      public class TupleValueProvider
      extends java.lang.Object
      implements IValueProvider

  Since:
    1.7

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TupleValueProvider(ITuple tuple, java.util.Map<java.lang.String,java.lang.Integer> indexMapping)` Wraps a tuple with an index mapping

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `getValue(java.lang.String variableName)` Returns the value of the selected variable

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

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

- - ### Constructor Detail

    - #### TupleValueProvider

          public TupleValueProvider(ITuple tuple,
                                    java.util.Map<java.lang.String,java.lang.Integer> indexMapping)

      Wraps a tuple with an index mapping
      Parameters:
        `tuple` -
        `indexMapping` -

  - ### Method Detail

    - #### getValue

          public java.lang.Object getValue(java.lang.String variableName)

      Description copied from interface: `IValueProvider`
      Returns the value of the selected variable
      Specified by:
        `getValue` in interface `IValueProvider`
      Returns:
        the value of the variable; never null