FileDocCategorySizeDatePackage
ServiceRef.javaAPI DocGlassfish v2 API19203Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd

ServiceRef

public class ServiceRef extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class ServiceRef matches the schema element service-ref Generated on Wed Aug 13 12:12:26 PDT 2003

Fields Summary
static Vector
comparators
public static final String
SERVICE_REF_NAME
public static final String
PORT_INFO
public static final String
CALL_PROPERTY
public static final String
WSDL_OVERRIDE
public static final String
SERVICE_IMPL_CLASS
public static final String
SERVICE_QNAME
Constructors Summary
public ServiceRef()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public ServiceRef(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-ref-name", 	// NOI18N
			SERVICE_REF_NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("port-info", 	// NOI18N
			PORT_INFO, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			PortInfo.class);
		this.createProperty("call-property", 	// NOI18N
			CALL_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			CallProperty.class);
		this.createProperty("wsdl-override", 	// NOI18N
			WSDL_OVERRIDE, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("service-impl-class", 	// NOI18N
			SERVICE_IMPL_CLASS, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("service-qname", 	// NOI18N
			SERVICE_QNAME, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ServiceQname.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 intaddPortInfo(com.sun.enterprise.tools.common.dd.PortInfo value)

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

		str.append(indent);
		str.append("PortInfo["+this.sizePortInfo()+"]");	// NOI18N
		for(int i=0; i<this.sizePortInfo(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getPortInfo(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(PORT_INFO, 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);
		}

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

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

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

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("ServiceRef\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 com.sun.enterprise.tools.common.dd.PortInfogetPortInfo(int index)

		return (PortInfo)this.getValue(PORT_INFO, index);
	
public com.sun.enterprise.tools.common.dd.PortInfo[]getPortInfo()

		return (PortInfo[])this.getValues(PORT_INFO);
	
public java.lang.StringgetServiceImplClass()

		return (String)this.getValue(SERVICE_IMPL_CLASS);
	
public ServiceQnamegetServiceQname()

		return (ServiceQname)this.getValue(SERVICE_QNAME);
	
public java.lang.StringgetServiceRefName()

		return (String)this.getValue(SERVICE_REF_NAME);
	
public java.lang.StringgetWsdlOverride()

		return (String)this.getValue(WSDL_OVERRIDE);
	
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 intremovePortInfo(com.sun.enterprise.tools.common.dd.PortInfo value)

		return this.removeValue(PORT_INFO, 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 voidsetPortInfo(int index, com.sun.enterprise.tools.common.dd.PortInfo value)

		this.setValue(PORT_INFO, index, value);
	
public voidsetPortInfo(com.sun.enterprise.tools.common.dd.PortInfo[] value)

		this.setValue(PORT_INFO, value);
	
public voidsetServiceImplClass(java.lang.String value)

		this.setValue(SERVICE_IMPL_CLASS, value);
	
public voidsetServiceQname(ServiceQname value)

		this.setValue(SERVICE_QNAME, value);
	
public voidsetServiceRefName(java.lang.String value)

		this.setValue(SERVICE_REF_NAME, value);
	
public voidsetWsdlOverride(java.lang.String value)

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

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

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

		boolean restrictionFailure = false;
		// Validating property serviceRefName
		if (getServiceRefName() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getServiceRefName() == null", "serviceRefName", this);	// NOI18N
		}
		// Validating property portInfo
		for (int _index = 0; _index < sizePortInfo(); ++_index) {
			com.sun.enterprise.tools.common.dd.PortInfo element = getPortInfo(_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();
			}
		}
		// Validating property wsdlOverride
		if (getWsdlOverride() != null) {
		}
		// Validating property serviceImplClass
		if (getServiceImplClass() != null) {
		}
		// Validating property serviceQname
		if (getServiceQname() != null) {
			getServiceQname().validate();
		}