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

SchemaGeneratorProperties

public class SchemaGeneratorProperties extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class SchemaGeneratorProperties matches the schema element schema-generator-properties Generated on Wed Aug 13 10:43:31 PDT 2003

Fields Summary
static Vector
comparators
public static final String
PROPERTY
Constructors Summary
public SchemaGeneratorProperties()

	// NOI18N

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

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

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

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

	
public java.lang.StringdumpBeanNode()

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

		return (PropertyElement)this.getValue(PROPERTY, index);
	
public com.sun.enterprise.tools.common.dd.ejb.PropertyElement[]getPropertyElement()

		return (PropertyElement[])this.getValues(PROPERTY);
	
voidinitialize(int options)


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

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

		return this.removeValue(PROPERTY, value);
	
public voidsetPropertyElement(int index, com.sun.enterprise.tools.common.dd.ejb.PropertyElement value)

		this.setValue(PROPERTY, index, value);
	
public voidsetPropertyElement(com.sun.enterprise.tools.common.dd.ejb.PropertyElement[] value)

		this.setValue(PROPERTY, value);
	
public intsizePropertyElement()

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

		boolean restrictionFailure = false;
		// Validating property propertyElement
		for (int _index = 0; _index < sizePropertyElement(); ++_index) {
			com.sun.enterprise.tools.common.dd.ejb.PropertyElement element = getPropertyElement(_index);
			if (element != null) {
				element.validate();
			}
		}