FileDocCategorySizeDatePackage
Parameters.javaAPI DocGlassfish v2 API7559Fri May 04 22:35:00 BST 2007com.sun.enterprise.tools.common.validation.data

Parameters

public class Parameters extends org.netbeans.modules.schema2beans.BaseBean
This generated bean class Parameters matches the schema element parameters Generated on Wed Aug 20 17:21:25 PDT 2003

Fields Summary
static Vector
comparators
public static final String
PARAMETER
Constructors Summary
public Parameters()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("parameter", 	// NOI18N
			PARAMETER, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			Parameter.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddParameter(com.sun.enterprise.tools.common.validation.data.Parameter value)

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

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("Parameters\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public com.sun.enterprise.tools.common.validation.data.ParametergetParameter(int index)

		return (Parameter)this.getValue(PARAMETER, index);
	
public com.sun.enterprise.tools.common.validation.data.Parameter[]getParameter()

		return (Parameter[])this.getValues(PARAMETER);
	
voidinitialize(int options)


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

		comparators.remove(c);
	
public intremoveParameter(com.sun.enterprise.tools.common.validation.data.Parameter value)

		return this.removeValue(PARAMETER, value);
	
public voidsetParameter(int index, com.sun.enterprise.tools.common.validation.data.Parameter value)

		this.setValue(PARAMETER, index, value);
	
public voidsetParameter(com.sun.enterprise.tools.common.validation.data.Parameter[] value)

		this.setValue(PARAMETER, value);
	
public intsizeParameter()

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

		boolean restrictionFailure = false;
		// Validating property parameter
		if (sizeParameter() == 0) {
			throw new org.netbeans.modules.schema2beans.ValidateException("sizeParameter() == 0", "parameter", this);	// NOI18N
		}
		for (int _index = 0; _index < sizeParameter(); ++_index) {
			com.sun.enterprise.tools.common.validation.data.Parameter element = getParameter(_index);
			if (element != null) {
				element.validate();
			}
		}