AsContextpublic 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 void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public void | dump(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.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("AsContext\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getAuthMethod()
return (String)this.getValue(AUTH_METHOD);
| public java.lang.String | getRealm()
return (String)this.getValue(REALM);
| public java.lang.String | getRequired()
return (String)this.getValue(REQUIRED);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setAuthMethod(java.lang.String value)
this.setValue(AUTH_METHOD, value);
| public void | setRealm(java.lang.String value)
this.setValue(REALM, value);
| public void | setRequired(java.lang.String value)
this.setValue(REQUIRED, value);
| public void | validate()
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
}
|
|