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(EjbTimerService.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("EjbTimerService\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.MINIMUM_DELIVERY_INTERVAL_IN_MILLIS)) return "7000".trim();
if(attr.equals(ServerTags.MAX_REDELIVERIES)) return "1".trim();
if(attr.equals(ServerTags.REDELIVERY_INTERVAL_INTERNAL_IN_MILLIS)) return "5000".trim();
return null;
|
public static java.lang.String | getDefaultMaxRedeliveries()Get the default value of MaxRedeliveries from dtd
return "1".trim();
|
public static java.lang.String | getDefaultMinimumDeliveryIntervalInMillis()Get the default value of MinimumDeliveryIntervalInMillis from dtd
return "7000".trim();
|
public static java.lang.String | getDefaultRedeliveryIntervalInternalInMillis()Get the default value of RedeliveryIntervalInternalInMillis from dtd
return "5000".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 | getMaxRedeliveries()Getter for MaxRedeliveries of the Element ejb-timer-service
return getAttributeValue(ServerTags.MAX_REDELIVERIES);
|
public java.lang.String | getMinimumDeliveryIntervalInMillis()Getter for MinimumDeliveryIntervalInMillis of the Element ejb-timer-service
return getAttributeValue(ServerTags.MINIMUM_DELIVERY_INTERVAL_IN_MILLIS);
|
public java.lang.String | getRedeliveryIntervalInternalInMillis()Getter for RedeliveryIntervalInternalInMillis of the Element ejb-timer-service
return getAttributeValue(ServerTags.REDELIVERY_INTERVAL_INTERNAL_IN_MILLIS);
|
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 = "ejb-timer-service";
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getTimerDatasource()Getter for TimerDatasource of the Element ejb-timer-service
return getAttributeValue(ServerTags.TIMER_DATASOURCE);
|
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 | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setMaxRedeliveries(java.lang.String v, boolean overwrite)Modify the MaxRedeliveries of the Element ejb-timer-service
setAttributeValue(ServerTags.MAX_REDELIVERIES, v, overwrite);
|
public void | setMaxRedeliveries(java.lang.String v)Modify the MaxRedeliveries of the Element ejb-timer-service
setAttributeValue(ServerTags.MAX_REDELIVERIES, v);
|
public void | setMinimumDeliveryIntervalInMillis(java.lang.String v, boolean overwrite)Modify the MinimumDeliveryIntervalInMillis of the Element ejb-timer-service
setAttributeValue(ServerTags.MINIMUM_DELIVERY_INTERVAL_IN_MILLIS, v, overwrite);
|
public void | setMinimumDeliveryIntervalInMillis(java.lang.String v)Modify the MinimumDeliveryIntervalInMillis of the Element ejb-timer-service
setAttributeValue(ServerTags.MINIMUM_DELIVERY_INTERVAL_IN_MILLIS, v);
|
public void | setRedeliveryIntervalInternalInMillis(java.lang.String v, boolean overwrite)Modify the RedeliveryIntervalInternalInMillis of the Element ejb-timer-service
setAttributeValue(ServerTags.REDELIVERY_INTERVAL_INTERNAL_IN_MILLIS, v, overwrite);
|
public void | setRedeliveryIntervalInternalInMillis(java.lang.String v)Modify the RedeliveryIntervalInternalInMillis of the Element ejb-timer-service
setAttributeValue(ServerTags.REDELIVERY_INTERVAL_INTERNAL_IN_MILLIS, v);
|
public void | setTimerDatasource(java.lang.String v, boolean overwrite)Modify the TimerDatasource of the Element ejb-timer-service
setAttributeValue(ServerTags.TIMER_DATASOURCE, v, overwrite);
|
public void | setTimerDatasource(java.lang.String v)Modify the TimerDatasource of the Element ejb-timer-service
setAttributeValue(ServerTags.TIMER_DATASOURCE, v);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public void | validate()
|