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

Arguments

public class Arguments extends org.netbeans.modules.schema2beans.BaseBean
This generated bean class Arguments matches the schema element arguments Generated on Wed Aug 20 17:20:08 PDT 2003

Fields Summary
static Vector
comparators
public static final String
ARGUMENT
Constructors Summary
public Arguments()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("argument", 	// NOI18N
			ARGUMENT, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			Argument.class);
		this.initialize(options);
	
Methods Summary
public intaddArgument(com.sun.enterprise.tools.common.validation.constraints.data.Argument value)

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

	
public java.lang.StringdumpBeanNode()

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

		return (Argument)this.getValue(ARGUMENT, index);
	
public com.sun.enterprise.tools.common.validation.constraints.data.Argument[]getArgument()

		return (Argument[])this.getValues(ARGUMENT);
	
voidinitialize(int options)


	
public intremoveArgument(com.sun.enterprise.tools.common.validation.constraints.data.Argument value)

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

		comparators.remove(c);
	
public voidsetArgument(int index, com.sun.enterprise.tools.common.validation.constraints.data.Argument value)

		this.setValue(ARGUMENT, index, value);
	
public voidsetArgument(com.sun.enterprise.tools.common.validation.constraints.data.Argument[] value)

		this.setValue(ARGUMENT, value);
	
public intsizeArgument()

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

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