FileDocCategorySizeDatePackage
WebContainerAvailability.javaAPI DocGlassfish v2 API13358Fri May 26 10:47:12 BST 2006com.sun.enterprise.config.serverbeans

WebContainerAvailability

public class WebContainerAvailability extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class WebContainerAvailability matches the DTD element web-container-availability

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


	  
		this(Common.USE_DEFAULT_VALUES);
	
public WebContainerAvailability(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(WebContainerAvailability.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("WebContainerAvailability\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetAvailabilityEnabled()
Getter for AvailabilityEnabled of the Element web-container-availability

return
the AvailabilityEnabled of the Element web-container-availability

			return getAttributeValue(ServerTags.AVAILABILITY_ENABLED);
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.PERSISTENCE_TYPE)) return "memory".trim();
		if(attr.equals(ServerTags.PERSISTENCE_STORE_HEALTH_CHECK_ENABLED)) return "false".trim();
		if(attr.equals(ServerTags.SSO_FAILOVER_ENABLED)) return "false".trim();
	return null;
	
public static java.lang.StringgetDefaultPersistenceStoreHealthCheckEnabled()
Get the default value of PersistenceStoreHealthCheckEnabled from dtd

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

		return "memory".trim();
	
public static java.lang.StringgetDefaultSsoFailoverEnabled()
Get the default value of SsoFailoverEnabled from dtd

		return "false".trim();
	
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;
		
	
public java.lang.StringgetHttpSessionStorePoolName()
Getter for HttpSessionStorePoolName of the Element web-container-availability

return
the HttpSessionStorePoolName of the Element web-container-availability

			return getAttributeValue(ServerTags.HTTP_SESSION_STORE_POOL_NAME);
	
public java.lang.StringgetPersistenceFrequency()
Getter for PersistenceFrequency of the Element web-container-availability

return
the PersistenceFrequency of the Element web-container-availability

			return getAttributeValue(ServerTags.PERSISTENCE_FREQUENCY);
	
public java.lang.StringgetPersistenceScope()
Getter for PersistenceScope of the Element web-container-availability

return
the PersistenceScope of the Element web-container-availability

			return getAttributeValue(ServerTags.PERSISTENCE_SCOPE);
	
public java.lang.StringgetPersistenceType()
Getter for PersistenceType of the Element web-container-availability

return
the PersistenceType of the Element web-container-availability

		return getAttributeValue(ServerTags.PERSISTENCE_TYPE);
	
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 = "web-container-availability";
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


	
public booleanisPersistenceStoreHealthCheckEnabled()
Getter for PersistenceStoreHealthCheckEnabled of the Element web-container-availability

return
the PersistenceStoreHealthCheckEnabled of the Element web-container-availability

		return toBoolean(getAttributeValue(ServerTags.PERSISTENCE_STORE_HEALTH_CHECK_ENABLED));
	
public booleanisSsoFailoverEnabled()
Getter for SsoFailoverEnabled of the Element web-container-availability

return
the SsoFailoverEnabled of the Element web-container-availability

		return toBoolean(getAttributeValue(ServerTags.SSO_FAILOVER_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 voidsetAvailabilityEnabled(java.lang.String v, boolean overwrite)
Modify the AvailabilityEnabled of the Element web-container-availability

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

		setAttributeValue(ServerTags.AVAILABILITY_ENABLED, v, overwrite);
	
public voidsetAvailabilityEnabled(java.lang.String v)
Modify the AvailabilityEnabled of the Element web-container-availability

param
v the new value

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

		this.setValue(ELEMENT_PROPERTY, value);
	
public voidsetHttpSessionStorePoolName(java.lang.String v, boolean overwrite)
Modify the HttpSessionStorePoolName of the Element web-container-availability

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

		setAttributeValue(ServerTags.HTTP_SESSION_STORE_POOL_NAME, v, overwrite);
	
public voidsetHttpSessionStorePoolName(java.lang.String v)
Modify the HttpSessionStorePoolName of the Element web-container-availability

param
v the new value

		setAttributeValue(ServerTags.HTTP_SESSION_STORE_POOL_NAME, v);
	
public voidsetPersistenceFrequency(java.lang.String v, boolean overwrite)
Modify the PersistenceFrequency of the Element web-container-availability

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

		setAttributeValue(ServerTags.PERSISTENCE_FREQUENCY, v, overwrite);
	
public voidsetPersistenceFrequency(java.lang.String v)
Modify the PersistenceFrequency of the Element web-container-availability

param
v the new value

		setAttributeValue(ServerTags.PERSISTENCE_FREQUENCY, v);
	
public voidsetPersistenceScope(java.lang.String v, boolean overwrite)
Modify the PersistenceScope of the Element web-container-availability

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

		setAttributeValue(ServerTags.PERSISTENCE_SCOPE, v, overwrite);
	
public voidsetPersistenceScope(java.lang.String v)
Modify the PersistenceScope of the Element web-container-availability

param
v the new value

		setAttributeValue(ServerTags.PERSISTENCE_SCOPE, v);
	
public voidsetPersistenceStoreHealthCheckEnabled(boolean v, boolean overwrite)
Modify the PersistenceStoreHealthCheckEnabled of the Element web-container-availability

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

		setAttributeValue(ServerTags.PERSISTENCE_STORE_HEALTH_CHECK_ENABLED, ""+(v==true), overwrite);
	
public voidsetPersistenceStoreHealthCheckEnabled(boolean v)
Modify the PersistenceStoreHealthCheckEnabled of the Element web-container-availability

param
v the new value

		setAttributeValue(ServerTags.PERSISTENCE_STORE_HEALTH_CHECK_ENABLED, ""+(v==true));
	
public voidsetPersistenceType(java.lang.String v, boolean overwrite)
Modify the PersistenceType of the Element web-container-availability

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

		setAttributeValue(ServerTags.PERSISTENCE_TYPE, v, overwrite);
	
public voidsetPersistenceType(java.lang.String v)
Modify the PersistenceType of the Element web-container-availability

param
v the new value

		setAttributeValue(ServerTags.PERSISTENCE_TYPE, v);
	
public voidsetSsoFailoverEnabled(boolean v, boolean overwrite)
Modify the SsoFailoverEnabled of the Element web-container-availability

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

		setAttributeValue(ServerTags.SSO_FAILOVER_ENABLED, ""+(v==true), overwrite);
	
public voidsetSsoFailoverEnabled(boolean v)
Modify the SsoFailoverEnabled of the Element web-container-availability

param
v the new value

		setAttributeValue(ServerTags.SSO_FAILOVER_ENABLED, ""+(v==true));
	
public intsizeElementProperty()

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