FileDocCategorySizeDatePackage
SystemProperty.javaAPI DocGlassfish v2 API5453Tue Feb 21 12:28:22 GMT 2006com.sun.enterprise.config.serverbeans

SystemProperty

public class SystemProperty extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class SystemProperty matches the DTD element system-property

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


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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(1);
		this.createProperty("description", DESCRIPTION, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		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;
		str.append(indent);
		str.append("Description");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		o = this.getDescription();
		str.append((o==null?"null":o.toString().trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(DESCRIPTION, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("SystemProperty\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();
	return null;
	
public java.lang.StringgetDescription()
Return the Description of the Element system-property

		return (String) getValue(ServerTags.DESCRIPTION);
	
public java.lang.StringgetName()
Getter for Name of the Element system-property

return
the Name of the Element system-property

		return getAttributeValue(ServerTags.NAME);
	
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 = "system-property" + (canHaveSiblings() ? "[@name='" + getAttributeValue("name") +"']" : "") ;
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetValue()
Getter for Value of the Element system-property

return
the Value of the Element system-property

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


	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetDescription(java.lang.String v)
Modify the Description of the Element system-property

param
v the new value

		setValue(ServerTags.DESCRIPTION, (null != v ? v.trim() : null));
		
public voidsetName(java.lang.String v, boolean overwrite)
Modify the Name of the Element system-property

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

		setAttributeValue(ServerTags.NAME, v, overwrite);
	
public voidsetName(java.lang.String v)
Modify the Name of the Element system-property

param
v the new value

		setAttributeValue(ServerTags.NAME, v);
	
public voidsetValue(java.lang.String v, boolean overwrite)
Modify the Value of the Element system-property

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

		setAttributeValue(ServerTags.VALUE, v, overwrite);
	
public voidsetValue(java.lang.String v)
Modify the Value of the Element system-property

param
v the new value

		setAttributeValue(ServerTags.VALUE, v);
	
public voidvalidate()