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

AsContext

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

Fields Summary
static Vector
comparators
public static final String
AUTH_METHOD
public static final String
REALM
public static final String
REQUIRED
Constructors Summary
public AsContext()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("auth-method", 	// NOI18N
			AUTH_METHOD, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("realm", 	// NOI18N
			REALM, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("required", 	// NOI18N
			REQUIRED, 
			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("AuthMethod");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getAuthMethod();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(AUTH_METHOD, 0, str, indent);

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

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

	
public java.lang.StringdumpBeanNode()

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

		return (String)this.getValue(AUTH_METHOD);
	
public java.lang.StringgetRealm()

		return (String)this.getValue(REALM);
	
public java.lang.StringgetRequired()

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

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

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

		this.setValue(AUTH_METHOD, value);
	
public voidsetRealm(java.lang.String value)

		this.setValue(REALM, value);
	
public voidsetRequired(java.lang.String value)

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

		boolean restrictionFailure = false;
		// Validating property authMethod
		if (getAuthMethod() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getAuthMethod() == null", "authMethod", this);	// NOI18N
		}
		// Validating property realm
		if (getRealm() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getRealm() == null", "realm", this);	// NOI18N
		}
		// Validating property required
		if (getRequired() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getRequired() == null", "required", this);	// NOI18N
		}