FileDocCategorySizeDatePackage
CheckpointedMethods.javaAPI DocGlassfish v2 API32984Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd.ejb

CheckpointedMethods

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

Fields Summary
static Vector
comparators
public static final String
DESCRIPTION
public static final String
METHOD
Constructors Summary
public CheckpointedMethods()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public CheckpointedMethods(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("method", 	// NOI18N
			METHOD, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			Method.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddMethod(com.sun.enterprise.tools.common.dd.ejb.Method value)

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

	
public java.lang.StringdumpBeanNode()

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

		return (String)this.getValue(DESCRIPTION);
	
public com.sun.enterprise.tools.common.dd.ejb.MethodgetMethod(int index)

		return (Method)this.getValue(METHOD, index);
	
public com.sun.enterprise.tools.common.dd.ejb.Method[]getMethod()

		return (Method[])this.getValues(METHOD);
	
voidinitialize(int options)

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

		comparators.remove(c);
	
public intremoveMethod(com.sun.enterprise.tools.common.dd.ejb.Method value)

		return this.removeValue(METHOD, value);
	
public voidsetDescription(java.lang.String value)

		this.setValue(DESCRIPTION, value);
	
public voidsetMethod(int index, com.sun.enterprise.tools.common.dd.ejb.Method value)

		this.setValue(METHOD, index, value);
	
public voidsetMethod(com.sun.enterprise.tools.common.dd.ejb.Method[] value)

		this.setValue(METHOD, value);
	
public intsizeMethod()

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

		boolean restrictionFailure = false;
		// Validating property description
		if (getDescription() != null) {
		}
		// Validating property method
		if (sizeMethod() == 0) {
			throw new org.netbeans.modules.schema2beans.ValidateException("sizeMethod() == 0", "method", this);	// NOI18N
		}
		for (int _index = 0; _index < sizeMethod(); ++_index) {
			com.sun.enterprise.tools.common.dd.ejb.Method element = getMethod(_index);
			if (element != null) {
				element.validate();
			}
		}