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

DiagnosticService

public class DiagnosticService extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class DiagnosticService matches the DTD element diagnostic-service

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


	  
		this(Common.USE_DEFAULT_VALUES);
	
public DiagnosticService(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(DiagnosticService.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("DiagnosticService\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.COMPUTE_CHECKSUM)) return "true".trim();
		if(attr.equals(ServerTags.VERIFY_CONFIG)) return "true".trim();
		if(attr.equals(ServerTags.CAPTURE_INSTALL_LOG)) return "true".trim();
		if(attr.equals(ServerTags.CAPTURE_SYSTEM_INFO)) return "true".trim();
		if(attr.equals(ServerTags.CAPTURE_HADB_INFO)) return "true".trim();
		if(attr.equals(ServerTags.CAPTURE_APP_DD)) return "true".trim();
		if(attr.equals(ServerTags.MIN_LOG_LEVEL)) return "INFO".trim();
		if(attr.equals(ServerTags.MAX_LOG_ENTRIES)) return "500".trim();
	return null;
	
public static java.lang.StringgetDefaultCaptureAppDd()
Get the default value of CaptureAppDd from dtd

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

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

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

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

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

		return "500".trim();
	
public static java.lang.StringgetDefaultMinLogLevel()
Get the default value of MinLogLevel from dtd

		return "INFO".trim();
	
public static java.lang.StringgetDefaultVerifyConfig()
Get the default value of VerifyConfig from dtd

		return "true".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.StringgetMaxLogEntries()
Getter for MaxLogEntries of the Element diagnostic-service

return
the MaxLogEntries of the Element diagnostic-service

		return getAttributeValue(ServerTags.MAX_LOG_ENTRIES);
	
public java.lang.StringgetMinLogLevel()
Getter for MinLogLevel of the Element diagnostic-service

return
the MinLogLevel of the Element diagnostic-service

		return getAttributeValue(ServerTags.MIN_LOG_LEVEL);
	
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 = "diagnostic-service";
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


	
public booleanisCaptureAppDd()
Getter for CaptureAppDd of the Element diagnostic-service

return
the CaptureAppDd of the Element diagnostic-service

		return toBoolean(getAttributeValue(ServerTags.CAPTURE_APP_DD));
	
public booleanisCaptureHadbInfo()
Getter for CaptureHadbInfo of the Element diagnostic-service

return
the CaptureHadbInfo of the Element diagnostic-service

		return toBoolean(getAttributeValue(ServerTags.CAPTURE_HADB_INFO));
	
public booleanisCaptureInstallLog()
Getter for CaptureInstallLog of the Element diagnostic-service

return
the CaptureInstallLog of the Element diagnostic-service

		return toBoolean(getAttributeValue(ServerTags.CAPTURE_INSTALL_LOG));
	
public booleanisCaptureSystemInfo()
Getter for CaptureSystemInfo of the Element diagnostic-service

return
the CaptureSystemInfo of the Element diagnostic-service

		return toBoolean(getAttributeValue(ServerTags.CAPTURE_SYSTEM_INFO));
	
public booleanisComputeChecksum()
Getter for ComputeChecksum of the Element diagnostic-service

return
the ComputeChecksum of the Element diagnostic-service

		return toBoolean(getAttributeValue(ServerTags.COMPUTE_CHECKSUM));
	
public booleanisVerifyConfig()
Getter for VerifyConfig of the Element diagnostic-service

return
the VerifyConfig of the Element diagnostic-service

		return toBoolean(getAttributeValue(ServerTags.VERIFY_CONFIG));
	
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 voidsetCaptureAppDd(boolean v, boolean overwrite)
Modify the CaptureAppDd of the Element diagnostic-service

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

		setAttributeValue(ServerTags.CAPTURE_APP_DD, ""+(v==true), overwrite);
	
public voidsetCaptureAppDd(boolean v)
Modify the CaptureAppDd of the Element diagnostic-service

param
v the new value

		setAttributeValue(ServerTags.CAPTURE_APP_DD, ""+(v==true));
	
public voidsetCaptureHadbInfo(boolean v, boolean overwrite)
Modify the CaptureHadbInfo of the Element diagnostic-service

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

		setAttributeValue(ServerTags.CAPTURE_HADB_INFO, ""+(v==true), overwrite);
	
public voidsetCaptureHadbInfo(boolean v)
Modify the CaptureHadbInfo of the Element diagnostic-service

param
v the new value

		setAttributeValue(ServerTags.CAPTURE_HADB_INFO, ""+(v==true));
	
public voidsetCaptureInstallLog(boolean v, boolean overwrite)
Modify the CaptureInstallLog of the Element diagnostic-service

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

		setAttributeValue(ServerTags.CAPTURE_INSTALL_LOG, ""+(v==true), overwrite);
	
public voidsetCaptureInstallLog(boolean v)
Modify the CaptureInstallLog of the Element diagnostic-service

param
v the new value

		setAttributeValue(ServerTags.CAPTURE_INSTALL_LOG, ""+(v==true));
	
public voidsetCaptureSystemInfo(boolean v, boolean overwrite)
Modify the CaptureSystemInfo of the Element diagnostic-service

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

		setAttributeValue(ServerTags.CAPTURE_SYSTEM_INFO, ""+(v==true), overwrite);
	
public voidsetCaptureSystemInfo(boolean v)
Modify the CaptureSystemInfo of the Element diagnostic-service

param
v the new value

		setAttributeValue(ServerTags.CAPTURE_SYSTEM_INFO, ""+(v==true));
	
public voidsetComputeChecksum(boolean v, boolean overwrite)
Modify the ComputeChecksum of the Element diagnostic-service

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

		setAttributeValue(ServerTags.COMPUTE_CHECKSUM, ""+(v==true), overwrite);
	
public voidsetComputeChecksum(boolean v)
Modify the ComputeChecksum of the Element diagnostic-service

param
v the new value

		setAttributeValue(ServerTags.COMPUTE_CHECKSUM, ""+(v==true));
	
public voidsetElementProperty(ElementProperty[] value)

		this.setValue(ELEMENT_PROPERTY, value);
	
public voidsetMaxLogEntries(java.lang.String v, boolean overwrite)
Modify the MaxLogEntries of the Element diagnostic-service

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

		setAttributeValue(ServerTags.MAX_LOG_ENTRIES, v, overwrite);
	
public voidsetMaxLogEntries(java.lang.String v)
Modify the MaxLogEntries of the Element diagnostic-service

param
v the new value

		setAttributeValue(ServerTags.MAX_LOG_ENTRIES, v);
	
public voidsetMinLogLevel(java.lang.String v, boolean overwrite)
Modify the MinLogLevel of the Element diagnostic-service

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

		setAttributeValue(ServerTags.MIN_LOG_LEVEL, v, overwrite);
	
public voidsetMinLogLevel(java.lang.String v)
Modify the MinLogLevel of the Element diagnostic-service

param
v the new value

		setAttributeValue(ServerTags.MIN_LOG_LEVEL, v);
	
public voidsetVerifyConfig(boolean v, boolean overwrite)
Modify the VerifyConfig of the Element diagnostic-service

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

		setAttributeValue(ServerTags.VERIFY_CONFIG, ""+(v==true), overwrite);
	
public voidsetVerifyConfig(boolean v)
Modify the VerifyConfig of the Element diagnostic-service

param
v the new value

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

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