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

OneOneFinders

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

Fields Summary
static Vector
comparators
public static final String
FINDER
Constructors Summary
public OneOneFinders()

	// NOI18N

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

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

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

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

	
public java.lang.StringdumpBeanNode()

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

		return (Finder)this.getValue(FINDER, index);
	
public com.sun.enterprise.tools.common.dd.ejb.Finder[]getFinder()

		return (Finder[])this.getValues(FINDER);
	
voidinitialize(int options)


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

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

		return this.removeValue(FINDER, value);
	
public voidsetFinder(int index, com.sun.enterprise.tools.common.dd.ejb.Finder value)

		this.setValue(FINDER, index, value);
	
public voidsetFinder(com.sun.enterprise.tools.common.dd.ejb.Finder[] value)

		this.setValue(FINDER, value);
	
public intsizeFinder()

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

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