FileDocCategorySizeDatePackage
ElementProperty.javaAPI DocGlassfish v2 API5470Tue Feb 21 12:28:16 GMT 2006com.sun.enterprise.config.serverbeans

ElementProperty

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

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


	  
		this(Common.USE_DEFAULT_VALUES);
	
public ElementProperty(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("ElementProperty\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 element-property

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

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

return
the Value of the Element element-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 element-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 element-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 element-property

param
v the new value

		setAttributeValue(ServerTags.NAME, v);
	
public voidsetValue(java.lang.String v, boolean overwrite)
Modify the Value of the Element element-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 element-property

param
v the new value

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