View Javadoc

1   /*
2    *  soapUI, copyright (C) 20056 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of the GNU Lesser General Public License as published by the Free Software Foundation; 
6    *  either version 2.1 of the License, or (at your option) any later version.
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.impl.wsdl;
14  
15  import javax.xml.namespace.QName;
16  
17  import org.apache.xmlbeans.SchemaType;
18  
19  import com.eviware.soapui.model.iface.MessagePart;
20  import com.eviware.soapui.model.iface.Request;
21  
22  public class WsdlHeaderPart extends MessagePart.HeaderPart
23  {
24  	private String name;
25  	private SchemaType schemaType;
26  	private QName partElement;
27  	private final WsdlRequest request;
28  	
29  	public WsdlHeaderPart(String name, SchemaType schemaType, QName partElement, WsdlRequest request )
30  	{
31  		super();
32  		
33  		this.name = name;
34  		this.schemaType = schemaType;
35  		this.partElement = partElement;
36  		this.request = request;
37  	}
38  	
39  	public Request getRequest()
40  	{
41  		return request;
42  	}
43  
44  	public SchemaType getSchemaType()
45  	{
46  		return schemaType;
47  	}
48  
49  	public String getDescription()
50  	{
51  		return name + " of type [" + schemaType.getName() + "]";
52  	}
53  
54  	public String getName()
55  	{
56  		return name;
57  	}
58  	
59  	
60  
61  	public QName getPartElement()
62  	{
63  		return partElement;
64  	}
65  }