Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addElementProperty(ElementProperty value)
return addElementProperty(value, true);
|
public int | addElementProperty(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 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("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.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("ModuleMonitoringLevels\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getConnectorConnectionPool()Getter for ConnectorConnectionPool of the Element module-monitoring-levels
return getAttributeValue(ServerTags.CONNECTOR_CONNECTION_POOL);
|
public java.lang.String | getConnectorService()Getter for ConnectorService of the Element module-monitoring-levels
return getAttributeValue(ServerTags.CONNECTOR_SERVICE);
|
public static java.lang.String | getDefaultAttributeValue(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.String | getDefaultConnectorConnectionPool()Get the default value of ConnectorConnectionPool from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultConnectorService()Get the default value of ConnectorService from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultEjbContainer()Get the default value of EjbContainer from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultHttpService()Get the default value of HttpService from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultJdbcConnectionPool()Get the default value of JdbcConnectionPool from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultJmsService()Get the default value of JmsService from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultJvm()Get the default value of Jvm from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultOrb()Get the default value of Orb from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultThreadPool()Get the default value of ThreadPool from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultTransactionService()Get the default value of TransactionService from dtd
return "OFF".trim();
|
public static java.lang.String | getDefaultWebContainer()Get the default value of WebContainer from dtd
return "OFF".trim();
|
public java.lang.String | getEjbContainer()Getter for EjbContainer of the Element module-monitoring-levels
return getAttributeValue(ServerTags.EJB_CONTAINER);
|
public ElementProperty | getElementProperty(int index)
return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
|
public ElementProperty[] | getElementProperty()
return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
|
public ElementProperty | getElementPropertyByName(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.String | getHttpService()Getter for HttpService of the Element module-monitoring-levels
return getAttributeValue(ServerTags.HTTP_SERVICE);
|
public java.lang.String | getJdbcConnectionPool()Getter for JdbcConnectionPool of the Element module-monitoring-levels
return getAttributeValue(ServerTags.JDBC_CONNECTION_POOL);
|
public java.lang.String | getJmsService()Getter for JmsService of the Element module-monitoring-levels
return getAttributeValue(ServerTags.JMS_SERVICE);
|
public java.lang.String | getJvm()Getter for Jvm of the Element module-monitoring-levels
return getAttributeValue(ServerTags.JVM);
|
public java.lang.String | getOrb()Getter for Orb of the Element module-monitoring-levels
return getAttributeValue(ServerTags.ORB);
|
protected java.lang.String | getRelativeXPath()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.String | getThreadPool()Getter for ThreadPool of the Element module-monitoring-levels
return getAttributeValue(ServerTags.THREAD_POOL);
|
public java.lang.String | getTransactionService()Getter for TransactionService of the Element module-monitoring-levels
return getAttributeValue(ServerTags.TRANSACTION_SERVICE);
|
public java.lang.String | getWebContainer()Getter for WebContainer of the Element module-monitoring-levels
return getAttributeValue(ServerTags.WEB_CONTAINER);
|
void | initialize(int options)
|
public ElementProperty | newElementProperty()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ElementProperty();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeElementProperty(ElementProperty value)
return this.removeValue(ELEMENT_PROPERTY, value);
|
public int | removeElementProperty(ElementProperty value, boolean overwrite)
return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
|
public void | setConnectorConnectionPool(java.lang.String v, boolean overwrite)Modify the ConnectorConnectionPool of the Element module-monitoring-levels
setAttributeValue(ServerTags.CONNECTOR_CONNECTION_POOL, v, overwrite);
|
public void | setConnectorConnectionPool(java.lang.String v)Modify the ConnectorConnectionPool of the Element module-monitoring-levels
setAttributeValue(ServerTags.CONNECTOR_CONNECTION_POOL, v);
|
public void | setConnectorService(java.lang.String v, boolean overwrite)Modify the ConnectorService of the Element module-monitoring-levels
setAttributeValue(ServerTags.CONNECTOR_SERVICE, v, overwrite);
|
public void | setConnectorService(java.lang.String v)Modify the ConnectorService of the Element module-monitoring-levels
setAttributeValue(ServerTags.CONNECTOR_SERVICE, v);
|
public void | setEjbContainer(java.lang.String v, boolean overwrite)Modify the EjbContainer of the Element module-monitoring-levels
setAttributeValue(ServerTags.EJB_CONTAINER, v, overwrite);
|
public void | setEjbContainer(java.lang.String v)Modify the EjbContainer of the Element module-monitoring-levels
setAttributeValue(ServerTags.EJB_CONTAINER, v);
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setHttpService(java.lang.String v, boolean overwrite)Modify the HttpService of the Element module-monitoring-levels
setAttributeValue(ServerTags.HTTP_SERVICE, v, overwrite);
|
public void | setHttpService(java.lang.String v)Modify the HttpService of the Element module-monitoring-levels
setAttributeValue(ServerTags.HTTP_SERVICE, v);
|
public void | setJdbcConnectionPool(java.lang.String v, boolean overwrite)Modify the JdbcConnectionPool of the Element module-monitoring-levels
setAttributeValue(ServerTags.JDBC_CONNECTION_POOL, v, overwrite);
|
public void | setJdbcConnectionPool(java.lang.String v)Modify the JdbcConnectionPool of the Element module-monitoring-levels
setAttributeValue(ServerTags.JDBC_CONNECTION_POOL, v);
|
public void | setJmsService(java.lang.String v, boolean overwrite)Modify the JmsService of the Element module-monitoring-levels
setAttributeValue(ServerTags.JMS_SERVICE, v, overwrite);
|
public void | setJmsService(java.lang.String v)Modify the JmsService of the Element module-monitoring-levels
setAttributeValue(ServerTags.JMS_SERVICE, v);
|
public void | setJvm(java.lang.String v, boolean overwrite)Modify the Jvm of the Element module-monitoring-levels
setAttributeValue(ServerTags.JVM, v, overwrite);
|
public void | setJvm(java.lang.String v)Modify the Jvm of the Element module-monitoring-levels
setAttributeValue(ServerTags.JVM, v);
|
public void | setOrb(java.lang.String v, boolean overwrite)Modify the Orb of the Element module-monitoring-levels
setAttributeValue(ServerTags.ORB, v, overwrite);
|
public void | setOrb(java.lang.String v)Modify the Orb of the Element module-monitoring-levels
setAttributeValue(ServerTags.ORB, v);
|
public void | setThreadPool(java.lang.String v, boolean overwrite)Modify the ThreadPool of the Element module-monitoring-levels
setAttributeValue(ServerTags.THREAD_POOL, v, overwrite);
|
public void | setThreadPool(java.lang.String v)Modify the ThreadPool of the Element module-monitoring-levels
setAttributeValue(ServerTags.THREAD_POOL, v);
|
public void | setTransactionService(java.lang.String v, boolean overwrite)Modify the TransactionService of the Element module-monitoring-levels
setAttributeValue(ServerTags.TRANSACTION_SERVICE, v, overwrite);
|
public void | setTransactionService(java.lang.String v)Modify the TransactionService of the Element module-monitoring-levels
setAttributeValue(ServerTags.TRANSACTION_SERVICE, v);
|
public void | setWebContainer(java.lang.String v, boolean overwrite)Modify the WebContainer of the Element module-monitoring-levels
setAttributeValue(ServerTags.WEB_CONTAINER, v, overwrite);
|
public void | setWebContainer(java.lang.String v)Modify the WebContainer of the Element module-monitoring-levels
setAttributeValue(ServerTags.WEB_CONTAINER, v);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public void | validate()
|