FileDocCategorySizeDatePackage
ModuleMonitoringLevels.javaAPI DocGlassfish v2 API17216Fri May 26 10:47:10 BST 2006com.sun.enterprise.config.serverbeans

ModuleMonitoringLevels

public class ModuleMonitoringLevels extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class ModuleMonitoringLevels matches the DTD element module-monitoring-levels

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
ELEMENT_PROPERTY
Constructors Summary
public ModuleMonitoringLevels()


	  
		this(Common.USE_DEFAULT_VALUES);
	
public ModuleMonitoringLevels(int options)

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(1);
		this.createProperty("property", ELEMENT_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ElementProperty.class);
		this.createAttribute(ELEMENT_PROPERTY, "name", "Name", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(ELEMENT_PROPERTY, "value", "Value", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddElementProperty(ElementProperty value)

		return addElementProperty(value, true);
	
public intaddElementProperty(ElementProperty value, boolean overwrite)

		ElementProperty old = getElementPropertyByName(value.getName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(ModuleMonitoringLevels.class).getString("cannotAddDuplicate",  "ElementProperty"));
		}
		return this.addValue(ELEMENT_PROPERTY, value, overwrite);
	
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("ElementProperty["+this.sizeElementProperty()+"]");	// NOI18N
		for(int i=0; i<this.sizeElementProperty(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("ModuleMonitoringLevels\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetConnectorConnectionPool()
Getter for ConnectorConnectionPool of the Element module-monitoring-levels

return
the ConnectorConnectionPool of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.CONNECTOR_CONNECTION_POOL);
	
public java.lang.StringgetConnectorService()
Getter for ConnectorService of the Element module-monitoring-levels

return
the ConnectorService of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.CONNECTOR_SERVICE);
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.THREAD_POOL)) return "OFF".trim();
		if(attr.equals(ServerTags.ORB)) return "OFF".trim();
		if(attr.equals(ServerTags.EJB_CONTAINER)) return "OFF".trim();
		if(attr.equals(ServerTags.WEB_CONTAINER)) return "OFF".trim();
		if(attr.equals(ServerTags.TRANSACTION_SERVICE)) return "OFF".trim();
		if(attr.equals(ServerTags.HTTP_SERVICE)) return "OFF".trim();
		if(attr.equals(ServerTags.JDBC_CONNECTION_POOL)) return "OFF".trim();
		if(attr.equals(ServerTags.CONNECTOR_CONNECTION_POOL)) return "OFF".trim();
		if(attr.equals(ServerTags.CONNECTOR_SERVICE)) return "OFF".trim();
		if(attr.equals(ServerTags.JMS_SERVICE)) return "OFF".trim();
		if(attr.equals(ServerTags.JVM)) return "OFF".trim();
	return null;
	
public static java.lang.StringgetDefaultConnectorConnectionPool()
Get the default value of ConnectorConnectionPool from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultConnectorService()
Get the default value of ConnectorService from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultEjbContainer()
Get the default value of EjbContainer from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultHttpService()
Get the default value of HttpService from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultJdbcConnectionPool()
Get the default value of JdbcConnectionPool from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultJmsService()
Get the default value of JmsService from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultJvm()
Get the default value of Jvm from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultOrb()
Get the default value of Orb from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultThreadPool()
Get the default value of ThreadPool from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultTransactionService()
Get the default value of TransactionService from dtd

		return "OFF".trim();
	
public static java.lang.StringgetDefaultWebContainer()
Get the default value of WebContainer from dtd

		return "OFF".trim();
	
public java.lang.StringgetEjbContainer()
Getter for EjbContainer of the Element module-monitoring-levels

return
the EjbContainer of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.EJB_CONTAINER);
	
public ElementPropertygetElementProperty(int index)

		return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
	
public ElementProperty[]getElementProperty()

		return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
	
public ElementPropertygetElementPropertyByName(java.lang.String id)

	 if (null != id) { id = id.trim(); }
	ElementProperty[] o = getElementProperty();
	 if (o == null) return null;

	 for (int i=0; i < o.length; i++) {
	     if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
	         return o[i];
	     }
	 }

		return null;
		
	
public java.lang.StringgetHttpService()
Getter for HttpService of the Element module-monitoring-levels

return
the HttpService of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.HTTP_SERVICE);
	
public java.lang.StringgetJdbcConnectionPool()
Getter for JdbcConnectionPool of the Element module-monitoring-levels

return
the JdbcConnectionPool of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.JDBC_CONNECTION_POOL);
	
public java.lang.StringgetJmsService()
Getter for JmsService of the Element module-monitoring-levels

return
the JmsService of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.JMS_SERVICE);
	
public java.lang.StringgetJvm()
Getter for Jvm of the Element module-monitoring-levels

return
the Jvm of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.JVM);
	
public java.lang.StringgetOrb()
Getter for Orb of the Element module-monitoring-levels

return
the Orb of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.ORB);
	
protected java.lang.StringgetRelativeXPath()
get the xpath representation for this element returns something like abc[@name='value'] or abc depending on the type of the bean

	    String ret = null;
	    ret = "module-monitoring-levels";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetThreadPool()
Getter for ThreadPool of the Element module-monitoring-levels

return
the ThreadPool of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.THREAD_POOL);
	
public java.lang.StringgetTransactionService()
Getter for TransactionService of the Element module-monitoring-levels

return
the TransactionService of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.TRANSACTION_SERVICE);
	
public java.lang.StringgetWebContainer()
Getter for WebContainer of the Element module-monitoring-levels

return
the WebContainer of the Element module-monitoring-levels

		return getAttributeValue(ServerTags.WEB_CONTAINER);
	
voidinitialize(int options)


	
public ElementPropertynewElementProperty()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new ElementProperty();
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremoveElementProperty(ElementProperty value)

		return this.removeValue(ELEMENT_PROPERTY, value);
	
public intremoveElementProperty(ElementProperty value, boolean overwrite)

		return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
	
public voidsetConnectorConnectionPool(java.lang.String v, boolean overwrite)
Modify the ConnectorConnectionPool of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.CONNECTOR_CONNECTION_POOL, v, overwrite);
	
public voidsetConnectorConnectionPool(java.lang.String v)
Modify the ConnectorConnectionPool of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.CONNECTOR_CONNECTION_POOL, v);
	
public voidsetConnectorService(java.lang.String v, boolean overwrite)
Modify the ConnectorService of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.CONNECTOR_SERVICE, v, overwrite);
	
public voidsetConnectorService(java.lang.String v)
Modify the ConnectorService of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.CONNECTOR_SERVICE, v);
	
public voidsetEjbContainer(java.lang.String v, boolean overwrite)
Modify the EjbContainer of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.EJB_CONTAINER, v, overwrite);
	
public voidsetEjbContainer(java.lang.String v)
Modify the EjbContainer of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.EJB_CONTAINER, v);
	
public voidsetElementProperty(ElementProperty[] value)

		this.setValue(ELEMENT_PROPERTY, value);
	
public voidsetHttpService(java.lang.String v, boolean overwrite)
Modify the HttpService of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.HTTP_SERVICE, v, overwrite);
	
public voidsetHttpService(java.lang.String v)
Modify the HttpService of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.HTTP_SERVICE, v);
	
public voidsetJdbcConnectionPool(java.lang.String v, boolean overwrite)
Modify the JdbcConnectionPool of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.JDBC_CONNECTION_POOL, v, overwrite);
	
public voidsetJdbcConnectionPool(java.lang.String v)
Modify the JdbcConnectionPool of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.JDBC_CONNECTION_POOL, v);
	
public voidsetJmsService(java.lang.String v, boolean overwrite)
Modify the JmsService of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.JMS_SERVICE, v, overwrite);
	
public voidsetJmsService(java.lang.String v)
Modify the JmsService of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.JMS_SERVICE, v);
	
public voidsetJvm(java.lang.String v, boolean overwrite)
Modify the Jvm of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.JVM, v, overwrite);
	
public voidsetJvm(java.lang.String v)
Modify the Jvm of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.JVM, v);
	
public voidsetOrb(java.lang.String v, boolean overwrite)
Modify the Orb of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.ORB, v, overwrite);
	
public voidsetOrb(java.lang.String v)
Modify the Orb of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.ORB, v);
	
public voidsetThreadPool(java.lang.String v, boolean overwrite)
Modify the ThreadPool of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.THREAD_POOL, v, overwrite);
	
public voidsetThreadPool(java.lang.String v)
Modify the ThreadPool of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.THREAD_POOL, v);
	
public voidsetTransactionService(java.lang.String v, boolean overwrite)
Modify the TransactionService of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.TRANSACTION_SERVICE, v, overwrite);
	
public voidsetTransactionService(java.lang.String v)
Modify the TransactionService of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.TRANSACTION_SERVICE, v);
	
public voidsetWebContainer(java.lang.String v, boolean overwrite)
Modify the WebContainer of the Element module-monitoring-levels

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.WEB_CONTAINER, v, overwrite);
	
public voidsetWebContainer(java.lang.String v)
Modify the WebContainer of the Element module-monitoring-levels

param
v the new value

		setAttributeValue(ServerTags.WEB_CONTAINER, v);
	
public intsizeElementProperty()

		return this.size(ELEMENT_PROPERTY);
	
public voidvalidate()