1
2
3
4
5
6
7
8
9
10
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
21 /***
22 * Descriptor for Xml-Content
23 *
24 * @author ole.matzura
25 */
26
27 public class WsdlContentPart extends MessagePart.ContentPart
28 {
29 private String name;
30 private SchemaType schemaType;
31 private QName partElement;
32
33 public WsdlContentPart(String name, SchemaType schemaType, QName partElement )
34 {
35 super();
36
37 this.name = name;
38 this.schemaType = schemaType;
39 this.partElement = partElement;
40 }
41
42 public SchemaType getSchemaType()
43 {
44 return schemaType;
45 }
46
47 public String getDescription()
48 {
49 return name + " of type [" + schemaType.getName() + "]";
50 }
51
52 public String getName()
53 {
54 return name;
55 }
56
57 public QName getPartElement()
58 {
59 return partElement;
60 }
61 }