AlertSubscriptionpublic class AlertSubscription extends com.sun.enterprise.config.ConfigBean implements SerializableThis generated bean class AlertSubscription matches the DTD element alert-subscription |
Fields Summary |
---|
static Vector | comparators | private static final org.netbeans.modules.schema2beans.Version | runtimeVersion | public static final String | LISTENER_CONFIG | public static final String | FILTER_CONFIG |
Constructors Summary |
---|
public AlertSubscription()
this(Common.USE_DEFAULT_VALUES);
| public AlertSubscription(int options)
super(comparators, runtimeVersion);
// Properties (see root bean comments for the bean graph)
initPropertyTables(2);
this.createProperty("listener-config", LISTENER_CONFIG,
Common.TYPE_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
ListenerConfig.class);
this.createAttribute(LISTENER_CONFIG, "listener-class-name", "ListenerClassName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(LISTENER_CONFIG, "subscribe-listener-with", "SubscribeListenerWith",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createProperty("filter-config", FILTER_CONFIG,
Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY,
FilterConfig.class);
this.createAttribute(FILTER_CONFIG, "filter-class-name", "FilterClassName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.initialize(options);
|
Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| 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("ListenerConfig"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getListenerConfig();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(LISTENER_CONFIG, 0, str, indent);
str.append(indent);
str.append("FilterConfig"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getFilterConfig();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(FILTER_CONFIG, 0, str, indent);
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("AlertSubscription\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();
return null;
| public FilterConfig | getFilterConfig()
return (FilterConfig)this.getValue(FILTER_CONFIG);
| public ListenerConfig | getListenerConfig()
return (ListenerConfig)this.getValue(LISTENER_CONFIG);
| public java.lang.String | getName()Getter for Name of the Element alert-subscription
return getAttributeValue(ServerTags.NAME);
| 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 = "alert-subscription" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
return (null != ret ? ret.trim() : null);
| void | initialize(int options)
| public FilterConfig | newFilterConfig()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new FilterConfig();
| public ListenerConfig | newListenerConfig()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ListenerConfig();
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setFilterConfig(FilterConfig value)
this.setValue(FILTER_CONFIG, value);
| public void | setListenerConfig(ListenerConfig value)
this.setValue(LISTENER_CONFIG, value);
| public void | setName(java.lang.String v)Modify the Name of the Element alert-subscription
setAttributeValue(ServerTags.NAME, v);
| public void | setName(java.lang.String v, boolean overwrite)Modify the Name of the Element alert-subscription
setAttributeValue(ServerTags.NAME, v, overwrite);
| public void | validate()
|
|