FileDocCategorySizeDatePackage
DasConfig.javaAPI DocGlassfish v2 API16330Fri May 26 10:47:06 BST 2006com.sun.enterprise.config.serverbeans

DasConfig

public class DasConfig extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class DasConfig matches the DTD element das-config

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


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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(1);
		this.createProperty("property", ELEMENT_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ElementProperty.class);
		this.createAttribute(ELEMENT_PROPERTY, "name", "Name", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(ELEMENT_PROPERTY, "value", "Value", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddElementProperty(ElementProperty value)

		return addElementProperty(value, true);
	
public intaddElementProperty(ElementProperty value, boolean overwrite)

		ElementProperty old = getElementPropertyByName(value.getName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(DasConfig.class).getString("cannotAddDuplicate",  "ElementProperty"));
		}
		return this.addValue(ELEMENT_PROPERTY, value, overwrite);
	
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("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.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("DasConfig\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetAdminSessionTimeoutInMinutes()
Getter for AdminSessionTimeoutInMinutes of the Element das-config

return
the AdminSessionTimeoutInMinutes of the Element das-config

		return getAttributeValue(ServerTags.ADMIN_SESSION_TIMEOUT_IN_MINUTES);
	
public java.lang.StringgetAutodeployDir()
Getter for AutodeployDir of the Element das-config

return
the AutodeployDir of the Element das-config

		return getAttributeValue(ServerTags.AUTODEPLOY_DIR);
	
public java.lang.StringgetAutodeployPollingIntervalInSeconds()
Getter for AutodeployPollingIntervalInSeconds of the Element das-config

return
the AutodeployPollingIntervalInSeconds of the Element das-config

		return getAttributeValue(ServerTags.AUTODEPLOY_POLLING_INTERVAL_IN_SECONDS);
	
public static java.lang.StringgetDefaultAdminSessionTimeoutInMinutes()
Get the default value of AdminSessionTimeoutInMinutes from dtd

		return "60".trim();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.DYNAMIC_RELOAD_ENABLED)) return "false".trim();
		if(attr.equals(ServerTags.DYNAMIC_RELOAD_POLL_INTERVAL_IN_SECONDS)) return "2".trim();
		if(attr.equals(ServerTags.AUTODEPLOY_ENABLED)) return "false".trim();
		if(attr.equals(ServerTags.AUTODEPLOY_POLLING_INTERVAL_IN_SECONDS)) return "2".trim();
		if(attr.equals(ServerTags.AUTODEPLOY_DIR)) return "autodeploy".trim();
		if(attr.equals(ServerTags.AUTODEPLOY_VERIFIER_ENABLED)) return "false".trim();
		if(attr.equals(ServerTags.AUTODEPLOY_JSP_PRECOMPILATION_ENABLED)) return "false".trim();
		if(attr.equals(ServerTags.DEPLOY_XML_VALIDATION)) return "full".trim();
		if(attr.equals(ServerTags.ADMIN_SESSION_TIMEOUT_IN_MINUTES)) return "60".trim();
	return null;
	
public static java.lang.StringgetDefaultAutodeployDir()
Get the default value of AutodeployDir from dtd

		return "autodeploy".trim();
	
public static java.lang.StringgetDefaultAutodeployEnabled()
Get the default value of AutodeployEnabled from dtd

		return "false".trim();
	
public static java.lang.StringgetDefaultAutodeployJspPrecompilationEnabled()
Get the default value of AutodeployJspPrecompilationEnabled from dtd

		return "false".trim();
	
public static java.lang.StringgetDefaultAutodeployPollingIntervalInSeconds()
Get the default value of AutodeployPollingIntervalInSeconds from dtd

		return "2".trim();
	
public static java.lang.StringgetDefaultAutodeployVerifierEnabled()
Get the default value of AutodeployVerifierEnabled from dtd

		return "false".trim();
	
public static java.lang.StringgetDefaultDeployXmlValidation()
Get the default value of DeployXmlValidation from dtd

		return "full".trim();
	
public static java.lang.StringgetDefaultDynamicReloadEnabled()
Get the default value of DynamicReloadEnabled from dtd

		return "false".trim();
	
public static java.lang.StringgetDefaultDynamicReloadPollIntervalInSeconds()
Get the default value of DynamicReloadPollIntervalInSeconds from dtd

		return "2".trim();
	
public java.lang.StringgetDeployXmlValidation()
Getter for DeployXmlValidation of the Element das-config

return
the DeployXmlValidation of the Element das-config

		return getAttributeValue(ServerTags.DEPLOY_XML_VALIDATION);
	
public java.lang.StringgetDynamicReloadPollIntervalInSeconds()
Getter for DynamicReloadPollIntervalInSeconds of the Element das-config

return
the DynamicReloadPollIntervalInSeconds of the Element das-config

		return getAttributeValue(ServerTags.DYNAMIC_RELOAD_POLL_INTERVAL_IN_SECONDS);
	
public ElementPropertygetElementProperty(int index)

		return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
	
public ElementProperty[]getElementProperty()

		return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
	
public ElementPropertygetElementPropertyByName(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;
		
	
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 = "das-config";
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


	
public booleanisAutodeployEnabled()
Getter for AutodeployEnabled of the Element das-config

return
the AutodeployEnabled of the Element das-config

		return toBoolean(getAttributeValue(ServerTags.AUTODEPLOY_ENABLED));
	
public booleanisAutodeployJspPrecompilationEnabled()
Getter for AutodeployJspPrecompilationEnabled of the Element das-config

return
the AutodeployJspPrecompilationEnabled of the Element das-config

		return toBoolean(getAttributeValue(ServerTags.AUTODEPLOY_JSP_PRECOMPILATION_ENABLED));
	
public booleanisAutodeployVerifierEnabled()
Getter for AutodeployVerifierEnabled of the Element das-config

return
the AutodeployVerifierEnabled of the Element das-config

		return toBoolean(getAttributeValue(ServerTags.AUTODEPLOY_VERIFIER_ENABLED));
	
public booleanisDynamicReloadEnabled()
Getter for DynamicReloadEnabled of the Element das-config

return
the DynamicReloadEnabled of the Element das-config

		return toBoolean(getAttributeValue(ServerTags.DYNAMIC_RELOAD_ENABLED));
	
public ElementPropertynewElementProperty()
Create a new bean using it's default constructor. This does not add it to any bean graph.

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

		comparators.remove(c);
	
public intremoveElementProperty(ElementProperty value)

		return this.removeValue(ELEMENT_PROPERTY, value);
	
public intremoveElementProperty(ElementProperty value, boolean overwrite)

		return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
	
public voidsetAdminSessionTimeoutInMinutes(java.lang.String v, boolean overwrite)
Modify the AdminSessionTimeoutInMinutes of the Element das-config

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

		setAttributeValue(ServerTags.ADMIN_SESSION_TIMEOUT_IN_MINUTES, v, overwrite);
	
public voidsetAdminSessionTimeoutInMinutes(java.lang.String v)
Modify the AdminSessionTimeoutInMinutes of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.ADMIN_SESSION_TIMEOUT_IN_MINUTES, v);
	
public voidsetAutodeployDir(java.lang.String v, boolean overwrite)
Modify the AutodeployDir of the Element das-config

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

		setAttributeValue(ServerTags.AUTODEPLOY_DIR, v, overwrite);
	
public voidsetAutodeployDir(java.lang.String v)
Modify the AutodeployDir of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.AUTODEPLOY_DIR, v);
	
public voidsetAutodeployEnabled(boolean v, boolean overwrite)
Modify the AutodeployEnabled of the Element das-config

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

		setAttributeValue(ServerTags.AUTODEPLOY_ENABLED, ""+(v==true), overwrite);
	
public voidsetAutodeployEnabled(boolean v)
Modify the AutodeployEnabled of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.AUTODEPLOY_ENABLED, ""+(v==true));
	
public voidsetAutodeployJspPrecompilationEnabled(boolean v, boolean overwrite)
Modify the AutodeployJspPrecompilationEnabled of the Element das-config

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

		setAttributeValue(ServerTags.AUTODEPLOY_JSP_PRECOMPILATION_ENABLED, ""+(v==true), overwrite);
	
public voidsetAutodeployJspPrecompilationEnabled(boolean v)
Modify the AutodeployJspPrecompilationEnabled of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.AUTODEPLOY_JSP_PRECOMPILATION_ENABLED, ""+(v==true));
	
public voidsetAutodeployPollingIntervalInSeconds(java.lang.String v, boolean overwrite)
Modify the AutodeployPollingIntervalInSeconds of the Element das-config

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

		setAttributeValue(ServerTags.AUTODEPLOY_POLLING_INTERVAL_IN_SECONDS, v, overwrite);
	
public voidsetAutodeployPollingIntervalInSeconds(java.lang.String v)
Modify the AutodeployPollingIntervalInSeconds of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.AUTODEPLOY_POLLING_INTERVAL_IN_SECONDS, v);
	
public voidsetAutodeployVerifierEnabled(boolean v, boolean overwrite)
Modify the AutodeployVerifierEnabled of the Element das-config

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

		setAttributeValue(ServerTags.AUTODEPLOY_VERIFIER_ENABLED, ""+(v==true), overwrite);
	
public voidsetAutodeployVerifierEnabled(boolean v)
Modify the AutodeployVerifierEnabled of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.AUTODEPLOY_VERIFIER_ENABLED, ""+(v==true));
	
public voidsetDeployXmlValidation(java.lang.String v, boolean overwrite)
Modify the DeployXmlValidation of the Element das-config

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

		setAttributeValue(ServerTags.DEPLOY_XML_VALIDATION, v, overwrite);
	
public voidsetDeployXmlValidation(java.lang.String v)
Modify the DeployXmlValidation of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.DEPLOY_XML_VALIDATION, v);
	
public voidsetDynamicReloadEnabled(boolean v, boolean overwrite)
Modify the DynamicReloadEnabled of the Element das-config

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

		setAttributeValue(ServerTags.DYNAMIC_RELOAD_ENABLED, ""+(v==true), overwrite);
	
public voidsetDynamicReloadEnabled(boolean v)
Modify the DynamicReloadEnabled of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.DYNAMIC_RELOAD_ENABLED, ""+(v==true));
	
public voidsetDynamicReloadPollIntervalInSeconds(java.lang.String v, boolean overwrite)
Modify the DynamicReloadPollIntervalInSeconds of the Element das-config

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

		setAttributeValue(ServerTags.DYNAMIC_RELOAD_POLL_INTERVAL_IN_SECONDS, v, overwrite);
	
public voidsetDynamicReloadPollIntervalInSeconds(java.lang.String v)
Modify the DynamicReloadPollIntervalInSeconds of the Element das-config

param
v the new value

		setAttributeValue(ServerTags.DYNAMIC_RELOAD_POLL_INTERVAL_IN_SECONDS, v);
	
public voidsetElementProperty(ElementProperty[] value)

		this.setValue(ELEMENT_PROPERTY, value);
	
public intsizeElementProperty()

		return this.size(ELEMENT_PROPERTY);
	
public voidvalidate()