package org.jboss.webservice.metadata;
import javax.xml.namespace.QName;
import java.net.URL;
import java.util.ArrayList;
public class PortComponentMetaData
{
public static final String PARAMETER_WEBSERVICE_ID = "webserviceID";
private WebserviceDescriptionMetaData webserviceDescription;
private String portComponentName;
private QName wsdlPort;
private String serviceEndpointInterface;
private String ejbLink;
private String servletLink;
private ArrayList handlers = new ArrayList();
private String serviceEndpointBean;
private URL serviceEndpointURL;
public PortComponentMetaData(WebserviceDescriptionMetaData webserviceDescription)
{
this.webserviceDescription = webserviceDescription;
}
public WebserviceDescriptionMetaData getWebserviceDescription()
{
return webserviceDescription;
}
public String getPortComponentName()
{
return portComponentName;
}
public void setPortComponentName(String portComponentName)
{
this.portComponentName = portComponentName;
}
public QName getWsdlPort()
{
return wsdlPort;
}
public void setWsdlPort(QName wsdlPort)
{
this.wsdlPort = wsdlPort;
}
public String getEjbLink()
{
return ejbLink;
}
public void setEjbLink(String ejbLink)
{
this.ejbLink = ejbLink;
}
public String getServletLink()
{
return servletLink;
}
public void setServletLink(String servletLink)
{
this.servletLink = servletLink;
}
public String getServiceEndpointInterface()
{
return serviceEndpointInterface;
}
public void setServiceEndpointInterface(String serviceEndpointInterface)
{
this.serviceEndpointInterface = serviceEndpointInterface;
}
public String getServiceEndpointBean()
{
return serviceEndpointBean;
}
public void setServiceEndpointBean(String serviceEndpointBean)
{
this.serviceEndpointBean = serviceEndpointBean;
}
public void addHandler(HandlerMetaData handler)
{
handlers.add(handler);
}
public HandlerMetaData[] getHandlers()
{
HandlerMetaData[] array = new HandlerMetaData[handlers.size()];
handlers.toArray(array);
return array;
}
public URL getServiceEndpointURL()
{
return serviceEndpointURL;
}
public void setServiceEndpointURL(URL serviceEndpointURL)
{
this.serviceEndpointURL = serviceEndpointURL;
}
}