FileDocCategorySizeDatePackage
TransformationRule.javaAPI DocGlassfish v2 API6607Tue Feb 21 12:28:24 GMT 2006com.sun.enterprise.config.serverbeans

TransformationRule

public class TransformationRule extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class TransformationRule matches the DTD element transformation-rule

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



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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(0);
		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;
	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("TransformationRule\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetApplyTo()
Getter for ApplyTo of the Element transformation-rule

return
the ApplyTo of the Element transformation-rule

		return getAttributeValue(ServerTags.APPLY_TO);
	
public static java.lang.StringgetDefaultApplyTo()
Get the default value of ApplyTo from dtd

		return "request".trim();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.ENABLED)) return "true".trim();
		if(attr.equals(ServerTags.APPLY_TO)) return "request".trim();
	return null;
	
public static java.lang.StringgetDefaultEnabled()
Get the default value of Enabled from dtd

		return "true".trim();
	
public java.lang.StringgetName()
Getter for Name of the Element transformation-rule

return
the Name of the Element transformation-rule

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

return
the RuleFileLocation of the Element transformation-rule

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


	
public booleanisEnabled()
Getter for Enabled of the Element transformation-rule

return
the Enabled of the Element transformation-rule

		return toBoolean(getAttributeValue(ServerTags.ENABLED));
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetApplyTo(java.lang.String v, boolean overwrite)
Modify the ApplyTo of the Element transformation-rule

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

		setAttributeValue(ServerTags.APPLY_TO, v, overwrite);
	
public voidsetApplyTo(java.lang.String v)
Modify the ApplyTo of the Element transformation-rule

param
v the new value

		setAttributeValue(ServerTags.APPLY_TO, v);
	
public voidsetEnabled(boolean v, boolean overwrite)
Modify the Enabled of the Element transformation-rule

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

		setAttributeValue(ServerTags.ENABLED, ""+(v==true), overwrite);
	
public voidsetEnabled(boolean v)
Modify the Enabled of the Element transformation-rule

param
v the new value

		setAttributeValue(ServerTags.ENABLED, ""+(v==true));
	
public voidsetName(java.lang.String v, boolean overwrite)
Modify the Name of the Element transformation-rule

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 transformation-rule

param
v the new value

		setAttributeValue(ServerTags.NAME, v);
	
public voidsetRuleFileLocation(java.lang.String v, boolean overwrite)
Modify the RuleFileLocation of the Element transformation-rule

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

		setAttributeValue(ServerTags.RULE_FILE_LOCATION, v, overwrite);
	
public voidsetRuleFileLocation(java.lang.String v)
Modify the RuleFileLocation of the Element transformation-rule

param
v the new value

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