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

PmDescriptors

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

Fields Summary
static Vector
comparators
public static final String
PM_DESCRIPTOR
public static final String
PM_INUSE
Constructors Summary
public PmDescriptors()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("pm-descriptor", 	// NOI18N
			PM_DESCRIPTOR, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			PmDescriptor.class);
		this.createProperty("pm-inuse", 	// NOI18N
			PM_INUSE, 
			Common.TYPE_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			PmInuse.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

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

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

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

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("PmDescriptors\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public com.sun.enterprise.tools.common.dd.ejb.PmDescriptorgetPmDescriptor(int index)

		return (PmDescriptor)this.getValue(PM_DESCRIPTOR, index);
	
public com.sun.enterprise.tools.common.dd.ejb.PmDescriptor[]getPmDescriptor()

		return (PmDescriptor[])this.getValues(PM_DESCRIPTOR);
	
public PmInusegetPmInuse()

		return (PmInuse)this.getValue(PM_INUSE);
	
voidinitialize(int options)


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

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

		return this.removeValue(PM_DESCRIPTOR, value);
	
public voidsetPmDescriptor(int index, com.sun.enterprise.tools.common.dd.ejb.PmDescriptor value)

		this.setValue(PM_DESCRIPTOR, index, value);
	
public voidsetPmDescriptor(com.sun.enterprise.tools.common.dd.ejb.PmDescriptor[] value)

		this.setValue(PM_DESCRIPTOR, value);
	
public voidsetPmInuse(PmInuse value)

		this.setValue(PM_INUSE, value);
	
public intsizePmDescriptor()

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

		boolean restrictionFailure = false;
		// Validating property pmDescriptor
		if (sizePmDescriptor() == 0) {
			throw new org.netbeans.modules.schema2beans.ValidateException("sizePmDescriptor() == 0", "pmDescriptor", this);	// NOI18N
		}
		for (int _index = 0; _index < sizePmDescriptor(); ++_index) {
			com.sun.enterprise.tools.common.dd.ejb.PmDescriptor element = getPmDescriptor(_index);
			if (element != null) {
				element.validate();
			}
		}
		// Validating property pmInuse
		if (getPmInuse() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getPmInuse() == null", "pmInuse", this);	// NOI18N
		}
		getPmInuse().validate();