WsdlContentPart.java :  » Web-Services » soapui-1.7.5 » com » eviware » soapui » impl » wsdl » Java Open Source

Java Open Source » Web Services » soapui 1.7.5 
soapui 1.7.5 » com » eviware » soapui » impl » wsdl » WsdlContentPart.java
/*
 *  soapUI, copyright (C) 2004-2007 eviware.com 
 *
 *  soapUI is free software; you can redistribute it and/or modify it under the 
 *  terms of version 2.1 of the GNU Lesser General Public License as published by 
 *  the Free Software Foundation.
 *
 *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
 *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 *  See the GNU Lesser General Public License for more details at gnu.org.
 */

package com.eviware.soapui.impl.wsdl;

import javax.xml.namespace.QName;

import org.apache.xmlbeans.SchemaType;

import com.eviware.soapui.model.iface.MessagePart;

/**
 * Descriptor for Xml-Content
 * 
 * @author ole.matzura
 */

public class WsdlContentPart extends MessagePart.ContentPart
{
  private String name;
  private SchemaType schemaType;
  private QName partElement;
  
  public WsdlContentPart(String name, SchemaType schemaType, QName partElement )
  {
    super();
    
    this.name = name;
    this.schemaType = schemaType;
    this.partElement = partElement;
  }
  
  public SchemaType getSchemaType()
  {
    return schemaType;
  }

  public String getDescription()
  {
    return name + " of type [" + schemaType.getName() + "]";
  }

  public String getName()
  {
    return name;
  }

  public QName getPartElement()
  {
    return partElement;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.