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.model.iface;
    14
    15  import java.util.List;
    16
    17  import javax.xml.namespace.QName;
    18
    19  import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext;
    20  import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader;
    21  import com.eviware.soapui.model.ModelItem;
    22  import com.eviware.soapui.model.project.Project;
    23
    24  /***
    25   * An Interface exposing operations
    26   *
    27   * @author Ole.Matzura
    28   */
    29
    30  public interface Interface extends ModelItem
    31  {
    32  	/***
    33  	 * property for endpoint changes, propertychange messages will contain oldValue = null if an
    34  	 * endpoint is added, newValue = null if an endpoint is removed and both values if an endpoint is
    35  	 * modified.
    36  	 */
    37
    38     public final static String ENDPOINT_PROPERTY = Interface.class.getName() + "@endpoint";
    39
    40     /***
    41      * property for definition changes
    42      */
    43
    44     public final static String DEFINITION_PROPERTY = Interface.class.getName() + "@definition";
    45
    46     public String [] getEndpoints();
    47
    48     public void addEndpoint( String endpoint );
    49
    50     public void removeEndpoint( String endpoint );
    51
    52     public void changeEndpoint( String oldEndpoint, String newEndpoint );
    53
    54     public Operation getOperationAt(int index);
    55
    56     public int getOperationCount();
    57
    58     public Operation getOperationByName(String name);
    59
    60     public Project getProject();
    61
    62     public String getDefinition();
    63
    64     public void addInterfaceListener( InterfaceListener listener );
    65
    66     public void removeInterfaceListener( InterfaceListener listener );
    67
    68     public MessageBuilder getMessageBuilder();
    69
    70     public WsdlContext getWsdlContext();
    71
    72     public QName getBindingName();
    73
    74     public boolean isCached();
    75
    76     public WsdlLoader createWsdlLoader();
    77
    78  	public List<Operation> getOperations();
    79  }