FileDocCategorySizeDatePackage
JspParam.javaAPI DocGlassfish v2 API9632Fri May 04 22:34:54 BST 2007com.sun.enterprise.tools.common.dd.webapp.data

JspParam

public class JspParam extends com.sun.enterprise.tools.common.dd.ParamData
This generated bean class JspParam matches the schema element jsp-param Generated on Tue Aug 12 18:27:47 PDT 2003

Fields Summary
static Vector
comparators
public static final String
PARAM_NAME
public static final String
PARAM_TYPE
public static final String
PARAM_VALUES
public static final String
DEFAULT_VALUE
public static final String
HELPID
Constructors Summary
public JspParam()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("param-name", 	// NOI18N
			PARAM_NAME, 
			Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("param-type", 	// NOI18N
			PARAM_TYPE, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("param-values", 	// NOI18N
			PARAM_VALUES, 
			Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("default-value", 	// NOI18N
			DEFAULT_VALUE, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("helpID", 	// NOI18N
			HELPID, 
			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 intaddParamValues(java.lang.String value)

		return this.addValue(PARAM_VALUES, value);
	
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("ParamName");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getParamName();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(PARAM_NAME, 0, str, indent);

		str.append(indent);
		str.append("ParamType");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getParamType();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(PARAM_TYPE, 0, str, indent);

		str.append(indent);
		str.append("ParamValues["+this.sizeParamValues()+"]");	// NOI18N
		for(int i=0; i<this.sizeParamValues(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			str.append(indent+"\t");	// NOI18N
			str.append("<");	// NOI18N
			s = this.getParamValues(i);
			str.append((s==null?"null":s.trim()));	// NOI18N
			str.append(">\n");	// NOI18N
			this.dumpAttributes(PARAM_VALUES, i, str, indent);
		}

		str.append(indent);
		str.append("DefaultValue");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getDefaultValue();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(DEFAULT_VALUE, 0, str, indent);

		str.append(indent);
		str.append("HelpID");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getHelpID();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(HELPID, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("JspParam\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetDefaultValue()

		return (String)this.getValue(DEFAULT_VALUE);
	
public java.lang.StringgetHelpID()

		return (String)this.getValue(HELPID);
	
public java.lang.StringgetParamName()

		return (String)this.getValue(PARAM_NAME);
	
public java.lang.StringgetParamType()

		return (String)this.getValue(PARAM_TYPE);
	
public java.lang.String[]getParamValues()

		return (String[])this.getValues(PARAM_VALUES);
	
public java.lang.StringgetParamValues(int index)

		return (String)this.getValue(PARAM_VALUES, index);
	
voidinitialize(int options)

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

		comparators.remove(c);
	
public intremoveParamValues(java.lang.String value)

		return this.removeValue(PARAM_VALUES, value);
	
public voidsetDefaultValue(java.lang.String value)

		this.setValue(DEFAULT_VALUE, value);
	
public voidsetHelpID(java.lang.String value)

		this.setValue(HELPID, value);
	
public voidsetParamName(java.lang.String value)

		this.setValue(PARAM_NAME, value);
	
public voidsetParamType(java.lang.String value)

		this.setValue(PARAM_TYPE, value);
	
public voidsetParamValues(java.lang.String[] value)

		this.setValue(PARAM_VALUES, value);
	
public voidsetParamValues(int index, java.lang.String value)

		this.setValue(PARAM_VALUES, index, value);
	
public intsizeParamValues()

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

		boolean restrictionFailure = false;
		// Validating property paramName
		if (getParamName() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getParamName() == null", "paramName", this);	// NOI18N
		}
		// Validating property paramType
		if (getParamType() != null) {
		}
		// Validating property paramValues
		for (int _index = 0; _index < sizeParamValues(); ++_index) {
			String element = getParamValues(_index);
			if (element != null) {
			}
		}
		// Validating property defaultValue
		if (getDefaultValue() != null) {
		}
		// Validating property helpID
		if (getHelpID() != null) {
		}