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

ApplicationRef

public class ApplicationRef extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class ApplicationRef matches the DTD element application-ref

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
Constructors Summary
public ApplicationRef()



	  
		this(Common.USE_DEFAULT_VALUES);
	
public ApplicationRef(int options)

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(0);
		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;
	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("ApplicationRef\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();
		if(attr.equals(ServerTags.ENABLED)) return "true".trim();
		if(attr.equals(ServerTags.LB_ENABLED)) return "false".trim();
		if(attr.equals(ServerTags.DISABLE_TIMEOUT_IN_MINUTES)) return "30".trim();
	return null;
	
public static java.lang.StringgetDefaultDisableTimeoutInMinutes()
Get the default value of DisableTimeoutInMinutes from dtd

		return "30".trim();
	
public static java.lang.StringgetDefaultEnabled()
Get the default value of Enabled from dtd

		return "true".trim();
	
public static java.lang.StringgetDefaultLbEnabled()
Get the default value of LbEnabled from dtd

		return "false".trim();
	
public java.lang.StringgetDisableTimeoutInMinutes()
Getter for DisableTimeoutInMinutes of the Element application-ref

return
the DisableTimeoutInMinutes of the Element application-ref

		return getAttributeValue(ServerTags.DISABLE_TIMEOUT_IN_MINUTES);
	
public java.lang.StringgetRef()
Getter for Ref of the Element application-ref

return
the Ref of the Element application-ref

		return getAttributeValue(ServerTags.REF);
	
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 = "application-ref" + (canHaveSiblings() ? "[@ref='" + getAttributeValue("ref") +"']" : "") ;
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetVirtualServers()
Getter for VirtualServers of the Element application-ref

return
the VirtualServers of the Element application-ref

			return getAttributeValue(ServerTags.VIRTUAL_SERVERS);
	
voidinitialize(int options)


	
public booleanisEnabled()
Getter for Enabled of the Element application-ref

return
the Enabled of the Element application-ref

		return toBoolean(getAttributeValue(ServerTags.ENABLED));
	
public booleanisLbEnabled()
Getter for LbEnabled of the Element application-ref

return
the LbEnabled of the Element application-ref

		return toBoolean(getAttributeValue(ServerTags.LB_ENABLED));
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetDisableTimeoutInMinutes(java.lang.String v, boolean overwrite)
Modify the DisableTimeoutInMinutes of the Element application-ref

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

		setAttributeValue(ServerTags.DISABLE_TIMEOUT_IN_MINUTES, v, overwrite);
	
public voidsetDisableTimeoutInMinutes(java.lang.String v)
Modify the DisableTimeoutInMinutes of the Element application-ref

param
v the new value

		setAttributeValue(ServerTags.DISABLE_TIMEOUT_IN_MINUTES, v);
	
public voidsetEnabled(boolean v, boolean overwrite)
Modify the Enabled of the Element application-ref

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

		setAttributeValue(ServerTags.ENABLED, ""+(v==true), overwrite);
	
public voidsetEnabled(boolean v)
Modify the Enabled of the Element application-ref

param
v the new value

		setAttributeValue(ServerTags.ENABLED, ""+(v==true));
	
public voidsetLbEnabled(boolean v, boolean overwrite)
Modify the LbEnabled of the Element application-ref

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

		setAttributeValue(ServerTags.LB_ENABLED, ""+(v==true), overwrite);
	
public voidsetLbEnabled(boolean v)
Modify the LbEnabled of the Element application-ref

param
v the new value

		setAttributeValue(ServerTags.LB_ENABLED, ""+(v==true));
	
public voidsetRef(java.lang.String v, boolean overwrite)
Modify the Ref of the Element application-ref

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

		setAttributeValue(ServerTags.REF, v, overwrite);
	
public voidsetRef(java.lang.String v)
Modify the Ref of the Element application-ref

param
v the new value

		setAttributeValue(ServerTags.REF, v);
	
public voidsetVirtualServers(java.lang.String v)
Modify the VirtualServers of the Element application-ref

param
v the new value

		setAttributeValue(ServerTags.VIRTUAL_SERVERS, v);
	
public voidsetVirtualServers(java.lang.String v, boolean overwrite)
Modify the VirtualServers of the Element application-ref

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

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