CheckInfopublic class CheckInfo extends org.netbeans.modules.schema2beans.BaseBean This generated bean class CheckInfo matches the schema element check-info
Generated on Wed Aug 20 17:20:08 PDT 2003 |
Fields Summary |
---|
static Vector | comparators | public static final String | NAME | public static final String | CLASSNAME | public static final String | ARGUMENTS |
Constructors Summary |
---|
public CheckInfo() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public CheckInfo(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("classname", // NOI18N
CLASSNAME,
Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("arguments", // NOI18N
ARGUMENTS,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
Arguments.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("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("Classname"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getClassname();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(CLASSNAME, 0, str, indent);
str.append(indent);
str.append("Arguments"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getArguments();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(ARGUMENTS, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("CheckInfo\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public Arguments | getArguments()
return (Arguments)this.getValue(ARGUMENTS);
| public java.lang.String | getClassname()
return (String)this.getValue(CLASSNAME);
| public java.lang.String | getName()
return (String)this.getValue(NAME);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setArguments(Arguments value)
this.setValue(ARGUMENTS, value);
| public void | setClassname(java.lang.String value)
this.setValue(CLASSNAME, value);
| public void | setName(java.lang.String value)
this.setValue(NAME, value);
| public void | validate()
boolean restrictionFailure = false;
// Validating property name
if (getName() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getName() == null", "name", this); // NOI18N
}
// Validating property classname
if (getClassname() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getClassname() == null", "classname", this); // NOI18N
}
// Validating property arguments
if (getArguments() != null) {
getArguments().validate();
}
|
|