View Javadoc

    1   /*
    2    *  soapUI, copyright (C) 2004-2007 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.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 a Message/SOAP Header
    23   *
    24   * @author ole.matzura
    25   */
    26
    27  public class WsdlHeaderPart extends MessagePart.HeaderPart
    28  {
    29  	private String name;
    30  	private SchemaType schemaType;
    31  	private QName partElement;
    32
    33  	public WsdlHeaderPart(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  }