View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2009 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
10   *  See the GNU Lesser General Public License for more details at gnu.org.
11   */
12  package com.eviware.soapui.impl.rest.support;
13  
14  import java.util.Map;
15  import java.util.Properties;
16  
17  import com.eviware.soapui.impl.wsdl.MutableTestPropertyHolder;
18  import com.eviware.soapui.model.propertyexpansion.PropertyExpansion;
19  import com.eviware.soapui.model.testsuite.TestProperty;
20  
21  public interface RestParamsPropertyHolder extends MutableTestPropertyHolder, Map<String, TestProperty>
22  {
23  
24  	public RestParamProperty getProperty( String name );
25  
26  	public void resetValues();
27  
28  	public int getPropertyIndex( String name );
29  
30  	public void saveTo( Properties props );
31  
32  	public RestParamProperty getPropertyAt( int index );
33  
34  	public PropertyExpansion[] getPropertyExpansions();
35  
36  	public void setPropertiesLabel( String propertiesLabel );
37  
38  	public RestParamProperty addProperty( String name );
39  
40  	public RestParamProperty removeProperty( String propertyName );
41  
42  	public RestParamProperty get( Object key );
43  
44  	public void addParameter( RestParamProperty prop );
45  
46  	/***
47  	 * Internal property class
48  	 * 
49  	 * @author ole
50  	 */
51  
52  	public enum ParameterStyle
53  	{
54  		MATRIX, HEADER, QUERY, TEMPLATE, PLAIN
55  	}
56  
57  }