View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 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.dnd.handlers;
14  
15  import com.eviware.soapui.model.ModelItem;
16  
17  public abstract class AbstractBeforeAfterModelItemDropHandler<T1 extends ModelItem, T2 extends ModelItem> extends
18  		AbstractModelItemDropHandler<T1, T2>
19  {
20  	protected AbstractBeforeAfterModelItemDropHandler( Class<T1> sourceClass, Class<T2> targetClass )
21  	{
22  		super( sourceClass, targetClass );
23  	}
24  
25  	@Override
26  	boolean canCopyOn( T1 source, T2 target )
27  	{
28  		return false;
29  	}
30  
31  	@Override
32  	boolean canMoveOn( T1 source, T2 target )
33  	{
34  		return false;
35  	}
36  
37  	@Override
38  	boolean copyOn( T1 source, T2 target )
39  	{
40  		return false;
41  	}
42  
43  	@Override
44  	String getCopyOnInfo( T1 source, T2 target )
45  	{
46  		return null;
47  	}
48  
49  	@Override
50  	String getMoveOnInfo( T1 source, T2 target )
51  	{
52  		return null;
53  	}
54  
55  	@Override
56  	boolean moveOn( T1 source, T2 target )
57  	{
58  		return false;
59  	}
60  }