View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2008 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  
13  package com.eviware.soapui.support.action.support;
14  
15  import com.eviware.soapui.model.ModelItem;
16  import com.eviware.soapui.support.action.SoapUIActionGroup;
17  import com.eviware.soapui.support.action.SoapUIActionMapping;
18  
19  /***
20   * Abstract SoapUIActionGroup for extension
21   * 
22   * @author ole.matzura
23   */
24  
25  public abstract class AbstractSoapUIActionGroup<T extends ModelItem> implements SoapUIActionGroup<T>
26  {
27  	protected final String id;
28  	protected final String name;
29  
30  	public AbstractSoapUIActionGroup( String id, String name )
31  	{
32  		this.id = id;
33  		this.name = name;
34  	}
35  
36  	public String getId()
37  	{
38  		return id;
39  	}
40  
41  	public String getName()
42  	{
43  		return name;
44  	}
45  	
46  	public SoapUIActionMapping<T> addMapping( String id, SoapUIActionMapping<T> mapping )
47  	{
48  		return null;
49  	}
50  
51  	public SoapUIActionMapping<T> addMapping( String id, int index, SoapUIActionMapping<T> mapping )
52  	{
53  		return null;
54  	}
55  
56  	public int getMappingIndex( String positionRef )
57  	{
58  		return -1;
59  	}
60  }