FileDocCategorySizeDatePackage
PmDescriptor.javaAPI DocGlassfish v2 API7758Fri May 04 22:34:42 BST 2007com.sun.enterprise.tools.common.dd.ejb

PmDescriptor

public 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 voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public voiddump(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.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("PmDescriptor\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetPmClassGenerator()

		return (String)this.getValue(PM_CLASS_GENERATOR);
	
public java.lang.StringgetPmConfig()

		return (String)this.getValue(PM_CONFIG);
	
public java.lang.StringgetPmIdentifier()

		return (String)this.getValue(PM_IDENTIFIER);
	
public java.lang.StringgetPmMappingFactory()

		return (String)this.getValue(PM_MAPPING_FACTORY);
	
public java.lang.StringgetPmVersion()

		return (String)this.getValue(PM_VERSION);
	
voidinitialize(int options)

					
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetPmClassGenerator(java.lang.String value)

		this.setValue(PM_CLASS_GENERATOR, value);
	
public voidsetPmConfig(java.lang.String value)

		this.setValue(PM_CONFIG, value);
	
public voidsetPmIdentifier(java.lang.String value)

		this.setValue(PM_IDENTIFIER, value);
	
public voidsetPmMappingFactory(java.lang.String value)

		this.setValue(PM_MAPPING_FACTORY, value);
	
public voidsetPmVersion(java.lang.String value)

		this.setValue(PM_VERSION, value);
	
public voidvalidate()

		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) {
		}