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(JmsService.class).getString("cannotAddDuplicate", "ElementProperty"));
}
return this.addValue(ELEMENT_PROPERTY, value, overwrite);
|
public int | addJmsHost(JmsHost value)
return addJmsHost(value, true);
|
public int | addJmsHost(JmsHost value, boolean overwrite)
JmsHost old = getJmsHostByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(JmsService.class).getString("cannotAddDuplicate", "JmsHost"));
}
return this.addValue(JMS_HOST, 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("JmsHost["+this.sizeJmsHost()+"]"); // NOI18N
for(int i=0; i<this.sizeJmsHost(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getJmsHost(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(JMS_HOST, i, str, indent);
}
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("JmsService\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getAddresslistBehavior()Getter for AddresslistBehavior of the Element jms-service
return getAttributeValue(ServerTags.ADDRESSLIST_BEHAVIOR);
|
public java.lang.String | getAddresslistIterations()Getter for AddresslistIterations of the Element jms-service
return getAttributeValue(ServerTags.ADDRESSLIST_ITERATIONS);
|
public static java.lang.String | getDefaultAddresslistBehavior()Get the default value of AddresslistBehavior from dtd
return "random".trim();
|
public static java.lang.String | getDefaultAddresslistIterations()Get the default value of AddresslistIterations from dtd
return "3".trim();
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.INIT_TIMEOUT_IN_SECONDS)) return "60".trim();
if(attr.equals(ServerTags.RECONNECT_INTERVAL_IN_SECONDS)) return "5".trim();
if(attr.equals(ServerTags.RECONNECT_ATTEMPTS)) return "3".trim();
if(attr.equals(ServerTags.RECONNECT_ENABLED)) return "true".trim();
if(attr.equals(ServerTags.ADDRESSLIST_BEHAVIOR)) return "random".trim();
if(attr.equals(ServerTags.ADDRESSLIST_ITERATIONS)) return "3".trim();
return null;
|
public static java.lang.String | getDefaultInitTimeoutInSeconds()Get the default value of InitTimeoutInSeconds from dtd
return "60".trim();
|
public java.lang.String | getDefaultJmsHost()Getter for DefaultJmsHost of the Element jms-service
return getAttributeValue(ServerTags.DEFAULT_JMS_HOST);
|
public static java.lang.String | getDefaultReconnectAttempts()Get the default value of ReconnectAttempts from dtd
return "3".trim();
|
public static java.lang.String | getDefaultReconnectEnabled()Get the default value of ReconnectEnabled from dtd
return "true".trim();
|
public static java.lang.String | getDefaultReconnectIntervalInSeconds()Get the default value of ReconnectIntervalInSeconds from dtd
return "5".trim();
|
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 | getInitTimeoutInSeconds()Getter for InitTimeoutInSeconds of the Element jms-service
return getAttributeValue(ServerTags.INIT_TIMEOUT_IN_SECONDS);
|
public JmsHost | getJmsHost(int index)
return (JmsHost)this.getValue(JMS_HOST, index);
|
public JmsHost[] | getJmsHost()
return (JmsHost[])this.getValues(JMS_HOST);
|
public JmsHost | getJmsHostByName(java.lang.String id)
if (null != id) { id = id.trim(); }
JmsHost[] o = getJmsHost();
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 | getMqScheme()Getter for MqScheme of the Element jms-service
return getAttributeValue(ServerTags.MQ_SCHEME);
|
public java.lang.String | getMqService()Getter for MqService of the Element jms-service
return getAttributeValue(ServerTags.MQ_SERVICE);
|
public java.lang.String | getReconnectAttempts()Getter for ReconnectAttempts of the Element jms-service
return getAttributeValue(ServerTags.RECONNECT_ATTEMPTS);
|
public java.lang.String | getReconnectIntervalInSeconds()Getter for ReconnectIntervalInSeconds of the Element jms-service
return getAttributeValue(ServerTags.RECONNECT_INTERVAL_IN_SECONDS);
|
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 = "jms-service";
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getStartArgs()Getter for StartArgs of the Element jms-service
return getAttributeValue(ServerTags.START_ARGS);
|
public java.lang.String | getType()Getter for Type of the Element jms-service
return getAttributeValue(ServerTags.TYPE);
|
void | initialize(int options)
|
public boolean | isReconnectEnabled()Getter for ReconnectEnabled of the Element jms-service
return toBoolean(getAttributeValue(ServerTags.RECONNECT_ENABLED));
|
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 JmsHost | newJmsHost()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new JmsHost();
|
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 int | removeJmsHost(JmsHost value)
return this.removeValue(JMS_HOST, value);
|
public int | removeJmsHost(JmsHost value, boolean overwrite)
return this.removeValue(JMS_HOST, value, overwrite);
|
public void | setAddresslistBehavior(java.lang.String v, boolean overwrite)Modify the AddresslistBehavior of the Element jms-service
setAttributeValue(ServerTags.ADDRESSLIST_BEHAVIOR, v, overwrite);
|
public void | setAddresslistBehavior(java.lang.String v)Modify the AddresslistBehavior of the Element jms-service
setAttributeValue(ServerTags.ADDRESSLIST_BEHAVIOR, v);
|
public void | setAddresslistIterations(java.lang.String v, boolean overwrite)Modify the AddresslistIterations of the Element jms-service
setAttributeValue(ServerTags.ADDRESSLIST_ITERATIONS, v, overwrite);
|
public void | setAddresslistIterations(java.lang.String v)Modify the AddresslistIterations of the Element jms-service
setAttributeValue(ServerTags.ADDRESSLIST_ITERATIONS, v);
|
public void | setDefaultJmsHost(java.lang.String v, boolean overwrite)Modify the DefaultJmsHost of the Element jms-service
setAttributeValue(ServerTags.DEFAULT_JMS_HOST, v, overwrite);
|
public void | setDefaultJmsHost(java.lang.String v)Modify the DefaultJmsHost of the Element jms-service
setAttributeValue(ServerTags.DEFAULT_JMS_HOST, v);
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setInitTimeoutInSeconds(java.lang.String v, boolean overwrite)Modify the InitTimeoutInSeconds of the Element jms-service
setAttributeValue(ServerTags.INIT_TIMEOUT_IN_SECONDS, v, overwrite);
|
public void | setInitTimeoutInSeconds(java.lang.String v)Modify the InitTimeoutInSeconds of the Element jms-service
setAttributeValue(ServerTags.INIT_TIMEOUT_IN_SECONDS, v);
|
public void | setJmsHost(JmsHost[] value)
this.setValue(JMS_HOST, value);
|
public void | setMqScheme(java.lang.String v, boolean overwrite)Modify the MqScheme of the Element jms-service
setAttributeValue(ServerTags.MQ_SCHEME, v, overwrite);
|
public void | setMqScheme(java.lang.String v)Modify the MqScheme of the Element jms-service
setAttributeValue(ServerTags.MQ_SCHEME, v);
|
public void | setMqService(java.lang.String v, boolean overwrite)Modify the MqService of the Element jms-service
setAttributeValue(ServerTags.MQ_SERVICE, v, overwrite);
|
public void | setMqService(java.lang.String v)Modify the MqService of the Element jms-service
setAttributeValue(ServerTags.MQ_SERVICE, v);
|
public void | setReconnectAttempts(java.lang.String v, boolean overwrite)Modify the ReconnectAttempts of the Element jms-service
setAttributeValue(ServerTags.RECONNECT_ATTEMPTS, v, overwrite);
|
public void | setReconnectAttempts(java.lang.String v)Modify the ReconnectAttempts of the Element jms-service
setAttributeValue(ServerTags.RECONNECT_ATTEMPTS, v);
|
public void | setReconnectEnabled(boolean v, boolean overwrite)Modify the ReconnectEnabled of the Element jms-service
setAttributeValue(ServerTags.RECONNECT_ENABLED, ""+(v==true), overwrite);
|
public void | setReconnectEnabled(boolean v)Modify the ReconnectEnabled of the Element jms-service
setAttributeValue(ServerTags.RECONNECT_ENABLED, ""+(v==true));
|
public void | setReconnectIntervalInSeconds(java.lang.String v, boolean overwrite)Modify the ReconnectIntervalInSeconds of the Element jms-service
setAttributeValue(ServerTags.RECONNECT_INTERVAL_IN_SECONDS, v, overwrite);
|
public void | setReconnectIntervalInSeconds(java.lang.String v)Modify the ReconnectIntervalInSeconds of the Element jms-service
setAttributeValue(ServerTags.RECONNECT_INTERVAL_IN_SECONDS, v);
|
public void | setStartArgs(java.lang.String v, boolean overwrite)Modify the StartArgs of the Element jms-service
setAttributeValue(ServerTags.START_ARGS, v, overwrite);
|
public void | setStartArgs(java.lang.String v)Modify the StartArgs of the Element jms-service
setAttributeValue(ServerTags.START_ARGS, v);
|
public void | setType(java.lang.String v, boolean overwrite)Modify the Type of the Element jms-service
setAttributeValue(ServerTags.TYPE, v, overwrite);
|
public void | setType(java.lang.String v)Modify the Type of the Element jms-service
setAttributeValue(ServerTags.TYPE, v);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public int | sizeJmsHost()
return this.size(JMS_HOST);
|
public void | validate()
|