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

EjbContainerAvailability

public class EjbContainerAvailability extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class EjbContainerAvailability matches the DTD element ejb-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 EjbContainerAvailability()


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

return
the AvailabilityEnabled of the Element ejb-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.SFSB_HA_PERSISTENCE_TYPE)) return "ha".trim();
		if(attr.equals(ServerTags.SFSB_PERSISTENCE_TYPE)) return "file".trim();
	return null;
	
public static java.lang.StringgetDefaultSfsbHaPersistenceType()
Get the default value of SfsbHaPersistenceType from dtd

		return "ha".trim();
	
public static java.lang.StringgetDefaultSfsbPersistenceType()
Get the default value of SfsbPersistenceType from dtd

		return "file".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;
		
	
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 = "ejb-container-availability";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetSfsbCheckpointEnabled()
Getter for SfsbCheckpointEnabled of the Element ejb-container-availability

return
the SfsbCheckpointEnabled of the Element ejb-container-availability

			return getAttributeValue(ServerTags.SFSB_CHECKPOINT_ENABLED);
	
public java.lang.StringgetSfsbHaPersistenceType()
Getter for SfsbHaPersistenceType of the Element ejb-container-availability

return
the SfsbHaPersistenceType of the Element ejb-container-availability

		return getAttributeValue(ServerTags.SFSB_HA_PERSISTENCE_TYPE);
	
public java.lang.StringgetSfsbPersistenceType()
Getter for SfsbPersistenceType of the Element ejb-container-availability

return
the SfsbPersistenceType of the Element ejb-container-availability

		return getAttributeValue(ServerTags.SFSB_PERSISTENCE_TYPE);
	
public java.lang.StringgetSfsbQuickCheckpointEnabled()
Getter for SfsbQuickCheckpointEnabled of the Element ejb-container-availability

return
the SfsbQuickCheckpointEnabled of the Element ejb-container-availability

			return getAttributeValue(ServerTags.SFSB_QUICK_CHECKPOINT_ENABLED);
	
public java.lang.StringgetSfsbStorePoolName()
Getter for SfsbStorePoolName of the Element ejb-container-availability

return
the SfsbStorePoolName of the Element ejb-container-availability

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


	
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 ejb-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 ejb-container-availability

param
v the new value

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

		this.setValue(ELEMENT_PROPERTY, value);
	
public voidsetSfsbCheckpointEnabled(java.lang.String v, boolean overwrite)
Modify the SfsbCheckpointEnabled of the Element ejb-container-availability

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

		setAttributeValue(ServerTags.SFSB_CHECKPOINT_ENABLED, v, overwrite);
	
public voidsetSfsbCheckpointEnabled(java.lang.String v)
Modify the SfsbCheckpointEnabled of the Element ejb-container-availability

param
v the new value

		setAttributeValue(ServerTags.SFSB_CHECKPOINT_ENABLED, v);
	
public voidsetSfsbHaPersistenceType(java.lang.String v, boolean overwrite)
Modify the SfsbHaPersistenceType of the Element ejb-container-availability

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

		setAttributeValue(ServerTags.SFSB_HA_PERSISTENCE_TYPE, v, overwrite);
	
public voidsetSfsbHaPersistenceType(java.lang.String v)
Modify the SfsbHaPersistenceType of the Element ejb-container-availability

param
v the new value

		setAttributeValue(ServerTags.SFSB_HA_PERSISTENCE_TYPE, v);
	
public voidsetSfsbPersistenceType(java.lang.String v, boolean overwrite)
Modify the SfsbPersistenceType of the Element ejb-container-availability

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

		setAttributeValue(ServerTags.SFSB_PERSISTENCE_TYPE, v, overwrite);
	
public voidsetSfsbPersistenceType(java.lang.String v)
Modify the SfsbPersistenceType of the Element ejb-container-availability

param
v the new value

		setAttributeValue(ServerTags.SFSB_PERSISTENCE_TYPE, v);
	
public voidsetSfsbQuickCheckpointEnabled(java.lang.String v, boolean overwrite)
Modify the SfsbQuickCheckpointEnabled of the Element ejb-container-availability

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

		setAttributeValue(ServerTags.SFSB_QUICK_CHECKPOINT_ENABLED, v, overwrite);
	
public voidsetSfsbQuickCheckpointEnabled(java.lang.String v)
Modify the SfsbQuickCheckpointEnabled of the Element ejb-container-availability

param
v the new value

		setAttributeValue(ServerTags.SFSB_QUICK_CHECKPOINT_ENABLED, v);
	
public voidsetSfsbStorePoolName(java.lang.String v, boolean overwrite)
Modify the SfsbStorePoolName of the Element ejb-container-availability

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

		setAttributeValue(ServerTags.SFSB_STORE_POOL_NAME, v, overwrite);
	
public voidsetSfsbStorePoolName(java.lang.String v)
Modify the SfsbStorePoolName of the Element ejb-container-availability

param
v the new value

		setAttributeValue(ServerTags.SFSB_STORE_POOL_NAME, v);
	
public intsizeElementProperty()

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