PmDescriptorpublic class PmDescriptor extends com.sun.enterprise.tools.common.dd.SunBaseBean This generated bean class PmDescriptor matches the schema element pm-descriptor
Generated on Wed Mar 03 14:29:48 PST 2004 |
Fields Summary |
---|
static Vector | comparators | public static final String | PM_IDENTIFIER | public static final String | PM_VERSION | public static final String | PM_CONFIG | public static final String | PM_CLASS_GENERATOR | public static final String | PM_MAPPING_FACTORY |
Constructors Summary |
---|
public PmDescriptor() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public PmDescriptor(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-identifier", // NOI18N
PM_IDENTIFIER,
Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("pm-version", // NOI18N
PM_VERSION,
Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("pm-config", // NOI18N
PM_CONFIG,
Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("pm-class-generator", // NOI18N
PM_CLASS_GENERATOR,
Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
String.class);
this.createProperty("pm-mapping-factory", // NOI18N
PM_MAPPING_FACTORY,
Common.TYPE_0_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("PmIdentifier"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPmIdentifier();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PM_IDENTIFIER, 0, str, indent);
str.append(indent);
str.append("PmVersion"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPmVersion();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PM_VERSION, 0, str, indent);
str.append(indent);
str.append("PmConfig"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPmConfig();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PM_CONFIG, 0, str, indent);
str.append(indent);
str.append("PmClassGenerator"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPmClassGenerator();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PM_CLASS_GENERATOR, 0, str, indent);
str.append(indent);
str.append("PmMappingFactory"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPmMappingFactory();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PM_MAPPING_FACTORY, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("PmDescriptor\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getPmClassGenerator()
return (String)this.getValue(PM_CLASS_GENERATOR);
| public java.lang.String | getPmConfig()
return (String)this.getValue(PM_CONFIG);
| public java.lang.String | getPmIdentifier()
return (String)this.getValue(PM_IDENTIFIER);
| public java.lang.String | getPmMappingFactory()
return (String)this.getValue(PM_MAPPING_FACTORY);
| public java.lang.String | getPmVersion()
return (String)this.getValue(PM_VERSION);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setPmClassGenerator(java.lang.String value)
this.setValue(PM_CLASS_GENERATOR, value);
| public void | setPmConfig(java.lang.String value)
this.setValue(PM_CONFIG, value);
| public void | setPmIdentifier(java.lang.String value)
this.setValue(PM_IDENTIFIER, value);
| public void | setPmMappingFactory(java.lang.String value)
this.setValue(PM_MAPPING_FACTORY, value);
| public void | setPmVersion(java.lang.String value)
this.setValue(PM_VERSION, value);
| public void | validate()
boolean restrictionFailure = false;
// Validating property pmIdentifier
if (getPmIdentifier() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getPmIdentifier() == null", "pmIdentifier", this); // NOI18N
}
// Validating property pmVersion
if (getPmVersion() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getPmVersion() == null", "pmVersion", this); // NOI18N
}
// Validating property pmConfig
if (getPmConfig() != null) {
}
// Validating property pmClassGenerator
if (getPmClassGenerator() != null) {
}
// Validating property pmMappingFactory
if (getPmMappingFactory() != null) {
}
|
|