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

ActivationConfig

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

Fields Summary
static Vector
comparators
public static final String
DESCRIPTION
public static final String
ACTIVATION_CONFIG_PROPERTY
Constructors Summary
public ActivationConfig()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public ActivationConfig(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("activation-config-property", 	// NOI18N
			ACTIVATION_CONFIG_PROPERTY, 
			Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ActivationConfigProperty.class);
		this.initialize(options);
	
Methods Summary
public intaddActivationConfigProperty(com.sun.enterprise.tools.common.dd.ejb.ActivationConfigProperty value)

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

	
public java.lang.StringdumpBeanNode()

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

		return (ActivationConfigProperty)this.getValue(ACTIVATION_CONFIG_PROPERTY, index);
	
public com.sun.enterprise.tools.common.dd.ejb.ActivationConfigProperty[]getActivationConfigProperty()

		return (ActivationConfigProperty[])this.getValues(ACTIVATION_CONFIG_PROPERTY);
	
public java.lang.StringgetDescription()

		return (String)this.getValue(DESCRIPTION);
	
voidinitialize(int options)

	
	
public intremoveActivationConfigProperty(com.sun.enterprise.tools.common.dd.ejb.ActivationConfigProperty value)

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

		comparators.remove(c);
	
public voidsetActivationConfigProperty(int index, com.sun.enterprise.tools.common.dd.ejb.ActivationConfigProperty value)

		this.setValue(ACTIVATION_CONFIG_PROPERTY, index, value);
	
public voidsetActivationConfigProperty(com.sun.enterprise.tools.common.dd.ejb.ActivationConfigProperty[] value)

		this.setValue(ACTIVATION_CONFIG_PROPERTY, value);
	
public voidsetDescription(java.lang.String value)

		this.setValue(DESCRIPTION, value);
	
public intsizeActivationConfigProperty()

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

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