ChildObjectFourpublic class ChildObjectFour extends org.netbeans.modules.schema2beans.BaseBean This generated bean class ChildObjectFour matches the schema element child-object-four
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 | public static final String | PROPERTY_THREE | public static final String | PROPERTY_FOUR |
Constructors Summary |
---|
public ChildObjectFour() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public ChildObjectFour(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_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("property-three", // NOI18N
PROPERTY_THREE,
Common.TYPE_1_N | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("property-four", // NOI18N
PROPERTY_FOUR,
Common.TYPE_0_N | 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 int | addPropertyFour(java.lang.String value)
return this.addValue(PROPERTY_FOUR, value);
| public int | addPropertyThree(java.lang.String value)
return this.addValue(PROPERTY_THREE, value);
| 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);
str.append(indent);
str.append("PropertyThree["+this.sizePropertyThree()+"]"); // NOI18N
for(int i=0; i<this.sizePropertyThree(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPropertyThree(i);
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PROPERTY_THREE, i, str, indent);
}
str.append(indent);
str.append("PropertyFour["+this.sizePropertyFour()+"]"); // NOI18N
for(int i=0; i<this.sizePropertyFour(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPropertyFour(i);
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PROPERTY_FOUR, i, str, indent);
}
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("ChildObjectFour\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getPropertyFour(int index)
return (String)this.getValue(PROPERTY_FOUR, index);
| public java.lang.String[] | getPropertyFour()
return (String[])this.getValues(PROPERTY_FOUR);
| public java.lang.String | getPropertyOne()
return (String)this.getValue(PROPERTY_ONE);
| public java.lang.String[] | getPropertyThree()
return (String[])this.getValues(PROPERTY_THREE);
| public java.lang.String | getPropertyThree(int index)
return (String)this.getValue(PROPERTY_THREE, index);
| 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 int | removePropertyFour(java.lang.String value)
return this.removeValue(PROPERTY_FOUR, value);
| public int | removePropertyThree(java.lang.String value)
return this.removeValue(PROPERTY_THREE, value);
| public void | setPropertyFour(int index, java.lang.String value)
this.setValue(PROPERTY_FOUR, index, value);
| public void | setPropertyFour(java.lang.String[] value)
this.setValue(PROPERTY_FOUR, value);
| public void | setPropertyOne(java.lang.String value)
this.setValue(PROPERTY_ONE, value);
| public void | setPropertyThree(java.lang.String[] value)
this.setValue(PROPERTY_THREE, value);
| public void | setPropertyThree(int index, java.lang.String value)
this.setValue(PROPERTY_THREE, index, value);
| public void | setPropertyTwo(java.lang.String value)
this.setValue(PROPERTY_TWO, value);
| public int | sizePropertyFour()
return this.size(PROPERTY_FOUR);
| public int | sizePropertyThree()
return this.size(PROPERTY_THREE);
| 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) {
}
// Validating property propertyThree
if (sizePropertyThree() == 0) {
throw new org.netbeans.modules.schema2beans.ValidateException("sizePropertyThree() == 0", "propertyThree", this); // NOI18N
}
for (int _index = 0; _index < sizePropertyThree(); ++_index) {
String element = getPropertyThree(_index);
if (element != null) {
}
}
// Validating property propertyFour
for (int _index = 0; _index < sizePropertyFour(); ++_index) {
String element = getPropertyFour(_index);
if (element != null) {
}
}
|
|