FileDocCategorySizeDatePackage
PortInfo.javaAPI DocGlassfish v2 API17607Fri May 04 22:34:38 BST 2007com.sun.enterprise.tools.common.dd

PortInfo

public class PortInfo extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class PortInfo matches the schema element port-info Generated on Wed Aug 13 12:12:27 PDT 2003

Fields Summary
static Vector
comparators
public static final String
SERVICE_ENDPOINT_INTERFACE
public static final String
WSDL_PORT
public static final String
STUB_PROPERTY
public static final String
CALL_PROPERTY
Constructors Summary
public PortInfo()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("service-endpoint-interface", 	// NOI18N
			SERVICE_ENDPOINT_INTERFACE, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("wsdl-port", 	// NOI18N
			WSDL_PORT, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			WsdlPort.class);
		this.createProperty("stub-property", 	// NOI18N
			STUB_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			StubProperty.class);
		this.createProperty("call-property", 	// NOI18N
			CALL_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			CallProperty.class);
		this.initialize(options);
	
Methods Summary
public intaddCallProperty(com.sun.enterprise.tools.common.dd.CallProperty value)

		return this.addValue(CALL_PROPERTY, value);
	
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddStubProperty(com.sun.enterprise.tools.common.dd.StubProperty value)

		return this.addValue(STUB_PROPERTY, 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("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("WsdlPort");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getWsdlPort();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(WSDL_PORT, 0, str, indent);

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

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

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("PortInfo\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public com.sun.enterprise.tools.common.dd.CallPropertygetCallProperty(int index)

		return (CallProperty)this.getValue(CALL_PROPERTY, index);
	
public com.sun.enterprise.tools.common.dd.CallProperty[]getCallProperty()

		return (CallProperty[])this.getValues(CALL_PROPERTY);
	
public java.lang.StringgetServiceEndpointInterface()

		return (String)this.getValue(SERVICE_ENDPOINT_INTERFACE);
	
public com.sun.enterprise.tools.common.dd.StubProperty[]getStubProperty()

		return (StubProperty[])this.getValues(STUB_PROPERTY);
	
public com.sun.enterprise.tools.common.dd.StubPropertygetStubProperty(int index)

		return (StubProperty)this.getValue(STUB_PROPERTY, index);
	
public WsdlPortgetWsdlPort()

		return (WsdlPort)this.getValue(WSDL_PORT);
	
voidinitialize(int options)

	
	
public intremoveCallProperty(com.sun.enterprise.tools.common.dd.CallProperty value)

		return this.removeValue(CALL_PROPERTY, value);
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremoveStubProperty(com.sun.enterprise.tools.common.dd.StubProperty value)

		return this.removeValue(STUB_PROPERTY, value);
	
public voidsetCallProperty(int index, com.sun.enterprise.tools.common.dd.CallProperty value)

		this.setValue(CALL_PROPERTY, index, value);
	
public voidsetCallProperty(com.sun.enterprise.tools.common.dd.CallProperty[] value)

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

		this.setValue(SERVICE_ENDPOINT_INTERFACE, value);
	
public voidsetStubProperty(com.sun.enterprise.tools.common.dd.StubProperty[] value)

		this.setValue(STUB_PROPERTY, value);
	
public voidsetStubProperty(int index, com.sun.enterprise.tools.common.dd.StubProperty value)

		this.setValue(STUB_PROPERTY, index, value);
	
public voidsetWsdlPort(WsdlPort value)

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

		return this.size(CALL_PROPERTY);
	
public intsizeStubProperty()

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

		boolean restrictionFailure = false;
		// Validating property serviceEndpointInterface
		if (getServiceEndpointInterface() != null) {
		}
		// Validating property wsdlPort
		if (getWsdlPort() != null) {
			getWsdlPort().validate();
		}
		// Validating property stubProperty
		for (int _index = 0; _index < sizeStubProperty(); ++_index) {
			com.sun.enterprise.tools.common.dd.StubProperty element = getStubProperty(_index);
			if (element != null) {
				element.validate();
			}
		}
		// Validating property callProperty
		for (int _index = 0; _index < sizeCallProperty(); ++_index) {
			com.sun.enterprise.tools.common.dd.CallProperty element = getCallProperty(_index);
			if (element != null) {
				element.validate();
			}
		}