Webpublic class Web extends com.sun.enterprise.tools.common.dd.SunBaseBean This generated bean class Web matches the schema element web
Generated on Thu Jul 31 15:31:46 PDT 2003 |
Fields Summary |
---|
static Vector | comparators | public static final String | WEB_URI | public static final String | CONTEXT_ROOT |
Constructors Summary |
---|
public Web() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public Web(int options)
super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
// Properties (see root bean comments for the bean graph)
this.createProperty("web-uri", // NOI18N
WEB_URI,
Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("context-root", // NOI18N
CONTEXT_ROOT,
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("WebUri"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getWebUri();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(WEB_URI, 0, str, indent);
str.append(indent);
str.append("ContextRoot"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getContextRoot();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(CONTEXT_ROOT, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("Web\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getContextRoot()
return (String)this.getValue(CONTEXT_ROOT);
| public java.lang.String | getWebUri()
return (String)this.getValue(WEB_URI);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setContextRoot(java.lang.String value)
this.setValue(CONTEXT_ROOT, value);
| public void | setWebUri(java.lang.String value)
this.setValue(WEB_URI, value);
| public void | validate()
boolean restrictionFailure = false;
// Validating property webUri
if (getWebUri() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getWebUri() == null", "webUri", this); // NOI18N
}
// Validating property contextRoot
if (getContextRoot() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getContextRoot() == null", "contextRoot", this); // NOI18N
}
|
|