PmDescriptorspublic class PmDescriptors extends com.sun.enterprise.tools.common.dd.SunBaseBean This generated bean class PmDescriptors matches the schema element pm-descriptors
Generated on Wed Aug 13 10:43:32 PDT 2003 |
Fields Summary |
---|
static Vector | comparators | public static final String | PM_DESCRIPTOR | public static final String | PM_INUSE |
Constructors Summary |
---|
public PmDescriptors() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public PmDescriptors(int options)
super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
// Properties (see root bean comments for the bean graph)
this.createProperty("pm-descriptor", // NOI18N
PM_DESCRIPTOR,
Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY,
PmDescriptor.class);
this.createProperty("pm-inuse", // NOI18N
PM_INUSE,
Common.TYPE_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
PmInuse.class);
this.initialize(options);
|
Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public int | addPmDescriptor(com.sun.enterprise.tools.common.dd.ejb.PmDescriptor value)
return this.addValue(PM_DESCRIPTOR, 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("PmDescriptor["+this.sizePmDescriptor()+"]"); // NOI18N
for(int i=0; i<this.sizePmDescriptor(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getPmDescriptor(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(PM_DESCRIPTOR, i, str, indent);
}
str.append(indent);
str.append("PmInuse"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getPmInuse();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(PM_INUSE, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("PmDescriptors\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public com.sun.enterprise.tools.common.dd.ejb.PmDescriptor | getPmDescriptor(int index)
return (PmDescriptor)this.getValue(PM_DESCRIPTOR, index);
| public com.sun.enterprise.tools.common.dd.ejb.PmDescriptor[] | getPmDescriptor()
return (PmDescriptor[])this.getValues(PM_DESCRIPTOR);
| public PmInuse | getPmInuse()
return (PmInuse)this.getValue(PM_INUSE);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public int | removePmDescriptor(com.sun.enterprise.tools.common.dd.ejb.PmDescriptor value)
return this.removeValue(PM_DESCRIPTOR, value);
| public void | setPmDescriptor(int index, com.sun.enterprise.tools.common.dd.ejb.PmDescriptor value)
this.setValue(PM_DESCRIPTOR, index, value);
| public void | setPmDescriptor(com.sun.enterprise.tools.common.dd.ejb.PmDescriptor[] value)
this.setValue(PM_DESCRIPTOR, value);
| public void | setPmInuse(PmInuse value)
this.setValue(PM_INUSE, value);
| public int | sizePmDescriptor()
return this.size(PM_DESCRIPTOR);
| public void | validate()
boolean restrictionFailure = false;
// Validating property pmDescriptor
if (sizePmDescriptor() == 0) {
throw new org.netbeans.modules.schema2beans.ValidateException("sizePmDescriptor() == 0", "pmDescriptor", this); // NOI18N
}
for (int _index = 0; _index < sizePmDescriptor(); ++_index) {
com.sun.enterprise.tools.common.dd.ejb.PmDescriptor element = getPmDescriptor(_index);
if (element != null) {
element.validate();
}
}
// Validating property pmInuse
if (getPmInuse() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getPmInuse() == null", "pmInuse", this); // NOI18N
}
getPmInuse().validate();
|
|