ChildObjectTwopublic class ChildObjectTwo extends org.netbeans.modules.schema2beans.BaseBean This generated bean class ChildObjectTwo matches the schema element child-object-two
Generated on Wed Aug 20 09:25:27 PDT 2003 |
Fields Summary |
---|
static Vector | comparators | public static final String | PROPERTY_ONE | public static final String | PROPERTY_TWO |
Constructors Summary |
---|
public ChildObjectTwo() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public ChildObjectTwo(int options)
super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
// Properties (see root bean comments for the bean graph)
this.createProperty("property-one", // NOI18N
PROPERTY_ONE,
Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("property-two", // NOI18N
PROPERTY_TWO,
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("PropertyOne"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPropertyOne();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PROPERTY_ONE, 0, str, indent);
str.append(indent);
str.append("PropertyTwo"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPropertyTwo();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PROPERTY_TWO, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("ChildObjectTwo\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getPropertyOne()
return (String)this.getValue(PROPERTY_ONE);
| public java.lang.String | getPropertyTwo()
return (String)this.getValue(PROPERTY_TWO);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setPropertyOne(java.lang.String value)
this.setValue(PROPERTY_ONE, value);
| public void | setPropertyTwo(java.lang.String value)
this.setValue(PROPERTY_TWO, value);
| public void | validate()
boolean restrictionFailure = false;
// Validating property propertyOne
if (getPropertyOne() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getPropertyOne() == null", "propertyOne", this); // NOI18N
}
// Validating property propertyTwo
if (getPropertyTwo() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getPropertyTwo() == null", "propertyTwo", this); // NOI18N
}
|
|