FileDocCategorySizeDatePackage
AlertSubscription.javaAPI DocGlassfish v2 API6277Tue Feb 21 12:28:14 GMT 2006com.sun.enterprise.config.serverbeans

AlertSubscription

public class AlertSubscription extends com.sun.enterprise.config.ConfigBean implements Serializable
This 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 voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
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("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.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("AlertSubscription\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
	return null;
	
public FilterConfiggetFilterConfig()

		return (FilterConfig)this.getValue(FILTER_CONFIG);
	
public ListenerConfiggetListenerConfig()

		return (ListenerConfig)this.getValue(LISTENER_CONFIG);
	
public java.lang.StringgetName()
Getter for Name of the Element alert-subscription

return
the Name of the Element alert-subscription

		return getAttributeValue(ServerTags.NAME);
	
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 = "alert-subscription" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


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

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

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

		comparators.remove(c);
	
public voidsetFilterConfig(FilterConfig value)

		this.setValue(FILTER_CONFIG, value);
	
public voidsetListenerConfig(ListenerConfig value)

		this.setValue(LISTENER_CONFIG, value);
	
public voidsetName(java.lang.String v)
Modify the Name of the Element alert-subscription

param
v the new value

		setAttributeValue(ServerTags.NAME, v);
	
public voidsetName(java.lang.String v, boolean overwrite)
Modify the Name of the Element alert-subscription

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

		setAttributeValue(ServerTags.NAME, v, overwrite);
	
public voidvalidate()