FileDocCategorySizeDatePackage
WebserviceDescriptionType.javaAPI DocGlassfish v2 API11395Fri May 04 22:34:56 BST 2007com.sun.enterprise.tools.common.dd.webservice

WebserviceDescriptionType

public class WebserviceDescriptionType extends org.netbeans.modules.schema2beans.BaseBean
This generated bean class WebserviceDescriptionType matches the schema element webservice-descriptionType =============================================================== The webservice-description element defines a WSDL document file and the set of Port components associated with the WSDL ports defined in the WSDL document. There may be multiple webservice-descriptions defined within a module. All WSDL file ports must have a corresponding port-component element defined. Used in: webservices =============================================================== Generated on Fri Apr 22 15:42:53 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
WEBSERVICE_DESCRIPTION_NAME
public static final String
WSDL_FILE
public static final String
JAXRPC_MAPPING_FILE
public static final String
PORT_COMPONENT
Constructors Summary
public WebserviceDescriptionType()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public WebserviceDescriptionType(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("webservice-description-name", 	// NOI18N
			WEBSERVICE_DESCRIPTION_NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			java.lang.String.class);
		this.createAttribute(WEBSERVICE_DESCRIPTION_NAME, "id", "Id", 
						AttrProp.CDATA | AttrProp.IMPLIED,
						null, null);
		this.createProperty("wsdl-file", 	// NOI18N
			WSDL_FILE, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			java.lang.String.class);
		this.createProperty("jaxrpc-mapping-file", 	// NOI18N
			JAXRPC_MAPPING_FILE, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			java.lang.String.class);
		this.createProperty("port-component", 	// NOI18N
			PORT_COMPONENT, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			PortComponentType.class);
		this.createAttribute(PORT_COMPONENT, "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 intaddPortComponent(com.sun.enterprise.tools.common.dd.webservice.PortComponentType value)

		return this.addValue(PORT_COMPONENT, 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("WebserviceDescriptionName");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getWebserviceDescriptionName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(WEBSERVICE_DESCRIPTION_NAME, 0, str, indent);

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

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

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

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("WebserviceDescriptionType\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 IconTypegetIcon()

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

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

		return (PortComponentType)this.getValue(PORT_COMPONENT, index);
	
public com.sun.enterprise.tools.common.dd.webservice.PortComponentType[]getPortComponent()

		return (PortComponentType[])this.getValues(PORT_COMPONENT);
	
public java.lang.StringgetWebserviceDescriptionName()

		return (java.lang.String)this.getValue(WEBSERVICE_DESCRIPTION_NAME);
	
public java.lang.StringgetWsdlFile()

		return (java.lang.String)this.getValue(WSDL_FILE);
	
voidinitialize(int options)


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

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

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

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

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

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

		this.setValue(JAXRPC_MAPPING_FILE, value);
	
public voidsetPortComponent(int index, com.sun.enterprise.tools.common.dd.webservice.PortComponentType value)

		this.setValue(PORT_COMPONENT, index, value);
	
public voidsetPortComponent(com.sun.enterprise.tools.common.dd.webservice.PortComponentType[] value)

		this.setValue(PORT_COMPONENT, value);
	
public voidsetWebserviceDescriptionName(java.lang.String value)

		this.setValue(WEBSERVICE_DESCRIPTION_NAME, value);
	
public voidsetWsdlFile(java.lang.String value)

		this.setValue(WSDL_FILE, value);
	
public intsizePortComponent()

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