1 package org.testng.internal;
2 
3 import java.util.Iterator;
4 
5 /**
6  * A simple holder for parameters that contains the parameters and where these came from
7  * (data provider or testng.xml)
8  * @author cbeust
9  *
10  */
11 public class ParameterHolder {
12   /**
13    * Origin of the parameters.
14    */
15   public enum ParameterOrigin {
16     ORIGIN_DATA_PROVIDER, // A data provider
17     ORIGIN_XML // TestNG XML suite
18   };
19 
20   public DataProviderHolder dataProviderHolder;
21   public Iterator<Object[]> parameters;
22   public ParameterOrigin origin;
23 
ParameterHolder(Iterator<Object[]> parameters, ParameterOrigin origin, DataProviderHolder dph)24   public ParameterHolder(Iterator<Object[]> parameters, ParameterOrigin origin, DataProviderHolder dph) {
25     super();
26     this.parameters = parameters;
27     this.origin = origin;
28     this.dataProviderHolder = dph;
29   }
30 
31 }
32