FileDocCategorySizeDatePackage
DefaultResourcePrincipal.javaAPI DocGlassfish v2 API13662Fri May 04 22:34:38 BST 2007com.sun.enterprise.tools.common.dd

DefaultResourcePrincipal

public class DefaultResourcePrincipal extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class DefaultResourcePrincipal matches the schema element default-resource-principal Generated on Wed Aug 13 12:12:27 PDT 2003

Fields Summary
static Vector
comparators
public static final String
NAME
public static final String
PASSWORD
Constructors Summary
public DefaultResourcePrincipal()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("name", 	// NOI18N
			NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("password", 	// NOI18N
			PASSWORD, 
			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("Name");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(NAME, 0, str, indent);

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

	
public java.lang.StringdumpBeanNode()

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

		return (String)this.getValue(NAME);
	
public java.lang.StringgetPassword()

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

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

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

		this.setValue(NAME, value);
	
public voidsetPassword(java.lang.String value)

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

		boolean restrictionFailure = false;
		// Validating property name
		if (getName() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getName() == null", "name", this);	// NOI18N
		}
		// Validating property password
		if (getPassword() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getPassword() == null", "password", this);	// NOI18N
		}