FileDocCategorySizeDatePackage
PortComponentType.javaAPI DocGlassfish v2 API12242Fri May 04 22:34:54 BST 2007com.sun.enterprise.tools.common.dd.webservice

PortComponentType

public class PortComponentType extends org.netbeans.modules.schema2beans.BaseBean
This generated bean class PortComponentType matches the schema element port-componentType =============================================================== The port-component element associates a WSDL port with a web service interface and implementation. It defines the name of the port as a component, optional description, optional display name, optional iconic representations, WSDL port QName, Service Endpoint Interface, Service Implementation Bean. =============================================================== Generated on Fri Apr 22 15:42:50 PDT 2005

Fields Summary
static Vector
comparators
public static final String
DESCRIPTION
public static final String
DISPLAY_NAME
public static final String
ICON
public static final String
PORT_COMPONENT_NAME
public static final String
WSDL_PORT
public static final String
SERVICE_ENDPOINT_INTERFACE
public static final String
SERVICE_IMPL_BEAN
public static final String
HANDLER
Constructors Summary
public PortComponentType()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public PortComponentType(int options)

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("description", 	// NOI18N
			DESCRIPTION, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			java.lang.String.class);
		this.createAttribute(DESCRIPTION, "id", "Id", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createAttribute(DESCRIPTION, "xml:lang", "XmlLang", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createProperty("display-name", 	// NOI18N
			DISPLAY_NAME, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			java.lang.String.class);
		this.createAttribute(DISPLAY_NAME, "id", "Id", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createAttribute(DISPLAY_NAME, "xml:lang", "XmlLang", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createProperty("icon", 	// NOI18N
			ICON, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			IconType.class);
		this.createAttribute(ICON, "xml:lang", "XmlLang", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createAttribute(ICON, "id", "Id", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createProperty("port-component-name", 	// NOI18N
			PORT_COMPONENT_NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			java.lang.String.class);
		this.createAttribute(PORT_COMPONENT_NAME, "id", "Id", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createProperty("wsdl-port", 	// NOI18N
			WSDL_PORT, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			javax.xml.namespace.QName.class);
		this.createAttribute(WSDL_PORT, "id", "Id", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createProperty("service-endpoint-interface", 	// NOI18N
			SERVICE_ENDPOINT_INTERFACE, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			java.lang.String.class);
		this.createProperty("service-impl-bean", 	// NOI18N
			SERVICE_IMPL_BEAN, 
			Common.TYPE_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ServiceImplBeanType.class);
		this.createAttribute(SERVICE_IMPL_BEAN, "id", "Id", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createProperty("handler", 	// NOI18N
			HANDLER, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			PortComponentHandlerType.class);
		this.createAttribute(HANDLER, "id", "Id", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddHandler(com.sun.enterprise.tools.common.dd.webservice.PortComponentHandlerType value)

		return this.addValue(HANDLER, value);
	
public voiddump(java.lang.StringBuffer str, java.lang.String indent)

		String s;
		Object o;
		org.netbeans.modules.schema2beans.BaseBean n;
		str.append(indent);
		str.append("Description");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getDescription();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(DESCRIPTION, 0, str, indent);

		str.append(indent);
		str.append("DisplayName");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getDisplayName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(DISPLAY_NAME, 0, str, indent);

		str.append(indent);
		str.append("Icon");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getIcon();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(ICON, 0, str, indent);

		str.append(indent);
		str.append("PortComponentName");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getPortComponentName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(PORT_COMPONENT_NAME, 0, str, indent);

		str.append(indent);
		str.append("WsdlPort");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		o = this.getWsdlPort();
		str.append((o==null?"null":o.toString().trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(WSDL_PORT, 0, str, indent);

		str.append(indent);
		str.append("ServiceEndpointInterface");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getServiceEndpointInterface();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(SERVICE_ENDPOINT_INTERFACE, 0, str, indent);

		str.append(indent);
		str.append("ServiceImplBean");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getServiceImplBean();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(SERVICE_IMPL_BEAN, 0, str, indent);

		str.append(indent);
		str.append("Handler["+this.sizeHandler()+"]");	// NOI18N
		for(int i=0; i<this.sizeHandler(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getHandler(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(HANDLER, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("PortComponentType\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetDescription()

		return (java.lang.String)this.getValue(DESCRIPTION);
	
public java.lang.StringgetDisplayName()

		return (java.lang.String)this.getValue(DISPLAY_NAME);
	
public com.sun.enterprise.tools.common.dd.webservice.PortComponentHandlerTypegetHandler(int index)

		return (PortComponentHandlerType)this.getValue(HANDLER, index);
	
public com.sun.enterprise.tools.common.dd.webservice.PortComponentHandlerType[]getHandler()

		return (PortComponentHandlerType[])this.getValues(HANDLER);
	
public IconTypegetIcon()

		return (IconType)this.getValue(ICON);
	
public java.lang.StringgetPortComponentName()

		return (java.lang.String)this.getValue(PORT_COMPONENT_NAME);
	
public java.lang.StringgetServiceEndpointInterface()

		return (java.lang.String)this.getValue(SERVICE_ENDPOINT_INTERFACE);
	
public ServiceImplBeanTypegetServiceImplBean()

		return (ServiceImplBeanType)this.getValue(SERVICE_IMPL_BEAN);
	
public javax.xml.namespace.QNamegetWsdlPort()

		return (javax.xml.namespace.QName)this.getValue(WSDL_PORT);
	
voidinitialize(int options)


	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremoveHandler(com.sun.enterprise.tools.common.dd.webservice.PortComponentHandlerType value)

		return this.removeValue(HANDLER, value);
	
public voidsetDescription(java.lang.String value)

		this.setValue(DESCRIPTION, value);
	
public voidsetDisplayName(java.lang.String value)

		this.setValue(DISPLAY_NAME, value);
	
public voidsetHandler(int index, com.sun.enterprise.tools.common.dd.webservice.PortComponentHandlerType value)

		this.setValue(HANDLER, index, value);
	
public voidsetHandler(com.sun.enterprise.tools.common.dd.webservice.PortComponentHandlerType[] value)

		this.setValue(HANDLER, value);
	
public voidsetIcon(IconType value)

		this.setValue(ICON, value);
	
public voidsetPortComponentName(java.lang.String value)

		this.setValue(PORT_COMPONENT_NAME, value);
	
public voidsetServiceEndpointInterface(java.lang.String value)

		this.setValue(SERVICE_ENDPOINT_INTERFACE, value);
	
public voidsetServiceImplBean(ServiceImplBeanType value)

		this.setValue(SERVICE_IMPL_BEAN, value);
	
public voidsetWsdlPort(javax.xml.namespace.QName value)

		this.setValue(WSDL_PORT, value);
	
public intsizeHandler()

		return this.size(HANDLER);
	
public voidvalidate()