FileDocCategorySizeDatePackage
Method.javaAPI DocGlassfish v2 API7494Fri May 04 22:34:42 BST 2007com.sun.enterprise.tools.common.dd.ejb

Method

public class Method extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class Method matches the schema element method Generated on Wed Mar 03 14:29:49 PST 2004

Fields Summary
static Vector
comparators
public static final String
DESCRIPTION
public static final String
EJB_NAME
public static final String
METHOD_NAME
public static final String
METHOD_INTF
public static final String
METHOD_PARAMS
Constructors Summary
public Method()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public Method(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, 
			String.class);
		this.createProperty("ejb-name", 	// NOI18N
			EJB_NAME, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("method-name", 	// NOI18N
			METHOD_NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("method-intf", 	// NOI18N
			METHOD_INTF, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("method-params", 	// NOI18N
			METHOD_PARAMS, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			MethodParams.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
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("EjbName");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getEjbName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(EJB_NAME, 0, str, indent);

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

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

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

	
public java.lang.StringdumpBeanNode()

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

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

		return (String)this.getValue(EJB_NAME);
	
public java.lang.StringgetMethodIntf()

		return (String)this.getValue(METHOD_INTF);
	
public java.lang.StringgetMethodName()

		return (String)this.getValue(METHOD_NAME);
	
public MethodParamsgetMethodParams()

		return (MethodParams)this.getValue(METHOD_PARAMS);
	
voidinitialize(int options)

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

		comparators.remove(c);
	
public voidsetDescription(java.lang.String value)

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

		this.setValue(EJB_NAME, value);
	
public voidsetMethodIntf(java.lang.String value)

		this.setValue(METHOD_INTF, value);
	
public voidsetMethodName(java.lang.String value)

		this.setValue(METHOD_NAME, value);
	
public voidsetMethodParams(MethodParams value)

		this.setValue(METHOD_PARAMS, value);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property description
		if (getDescription() != null) {
		}
		// Validating property ejbName
		if (getEjbName() != null) {
		}
		// Validating property methodName
		if (getMethodName() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getMethodName() == null", "methodName", this);	// NOI18N
		}
		// Validating property methodIntf
		if (getMethodIntf() != null) {
		}
		// Validating property methodParams
		if (getMethodParams() != null) {
			getMethodParams().validate();
		}