FileDocCategorySizeDatePackage
ResourceEnvRef.javaAPI DocGlassfish v2 API13836Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd

ResourceEnvRef

public class ResourceEnvRef extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class ResourceEnvRef matches the schema element resource-env-ref Generated on Wed Aug 13 12:12:26 PDT 2003

Fields Summary
static Vector
comparators
public static final String
RESOURCE_ENV_REF_NAME
public static final String
JNDI_NAME
Constructors Summary
public ResourceEnvRef()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("resource-env-ref-name", 	// NOI18N
			RESOURCE_ENV_REF_NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("jndi-name", 	// NOI18N
			JNDI_NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.initialize(options);
	
Methods Summary
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("ResourceEnvRefName");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getResourceEnvRefName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(RESOURCE_ENV_REF_NAME, 0, str, indent);

		str.append(indent);
		str.append("JndiName");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getJndiName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(JNDI_NAME, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

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

		return (String)this.getValue(JNDI_NAME);
	
public java.lang.StringgetResourceEnvRefName()

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

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

		comparators.remove(c);
	
public voidsetJndiName(java.lang.String value)

		this.setValue(JNDI_NAME, value);
	
public voidsetResourceEnvRefName(java.lang.String value)

		this.setValue(RESOURCE_ENV_REF_NAME, value);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property resourceEnvRefName
		if (getResourceEnvRefName() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getResourceEnvRefName() == null", "resourceEnvRefName", this);	// NOI18N
		}
		// Validating property jndiName
		if (getJndiName() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getJndiName() == null", "jndiName", this);	// NOI18N
		}