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

MethodParams

public class MethodParams extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class MethodParams matches the schema element method-params Generated on Wed Aug 13 10:43:32 PDT 2003

Fields Summary
static Vector
comparators
public static final String
METHOD_PARAM
Constructors Summary
public MethodParams()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("method-param", 	// NOI18N
			METHOD_PARAM, 
			Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddMethodParam(java.lang.String value)

		return this.addValue(METHOD_PARAM, 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("MethodParam["+this.sizeMethodParam()+"]");	// NOI18N
		for(int i=0; i<this.sizeMethodParam(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			str.append(indent+"\t");	// NOI18N
			str.append("<");	// NOI18N
			s = this.getMethodParam(i);
			str.append((s==null?"null":s.trim()));	// NOI18N
			str.append(">\n");	// NOI18N
			this.dumpAttributes(METHOD_PARAM, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("MethodParams\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetMethodParam(int index)

		return (String)this.getValue(METHOD_PARAM, index);
	
public java.lang.String[]getMethodParam()

		return (String[])this.getValues(METHOD_PARAM);
	
voidinitialize(int options)

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

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

		return this.removeValue(METHOD_PARAM, value);
	
public voidsetMethodParam(int index, java.lang.String value)

		this.setValue(METHOD_PARAM, index, value);
	
public voidsetMethodParam(java.lang.String[] value)

		this.setValue(METHOD_PARAM, value);
	
public intsizeMethodParam()

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

		boolean restrictionFailure = false;
		// Validating property methodParam
		for (int _index = 0; _index < sizeMethodParam(); ++_index) {
			String element = getMethodParam(_index);
			if (element != null) {
			}
		}