HelperClassParampublic class HelperClassParam extends com.sun.enterprise.tools.common.dd.ParamData This generated bean class HelperClassParam matches the schema element helper-class-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 HelperClassParam() // NOI18N
this(Common.USE_DEFAULT_VALUES);
| public HelperClassParam(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 void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public int | addParamValues(java.lang.String value)
return this.addValue(PARAM_VALUES, value);
| public void | dump(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.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("HelperClassParam\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getDefaultValue()
return (String)this.getValue(DEFAULT_VALUE);
| public java.lang.String | getHelpID()
return (String)this.getValue(HELPID);
| public java.lang.String | getParamName()
return (String)this.getValue(PARAM_NAME);
| public java.lang.String | getParamType()
return (String)this.getValue(PARAM_TYPE);
| public java.lang.String[] | getParamValues()
return (String[])this.getValues(PARAM_VALUES);
| public java.lang.String | getParamValues(int index)
return (String)this.getValue(PARAM_VALUES, index);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public int | removeParamValues(java.lang.String value)
return this.removeValue(PARAM_VALUES, value);
| public void | setDefaultValue(java.lang.String value)
this.setValue(DEFAULT_VALUE, value);
| public void | setHelpID(java.lang.String value)
this.setValue(HELPID, value);
| public void | setParamName(java.lang.String value)
this.setValue(PARAM_NAME, value);
| public void | setParamType(java.lang.String value)
this.setValue(PARAM_TYPE, value);
| public void | setParamValues(java.lang.String[] value)
this.setValue(PARAM_VALUES, value);
| public void | setParamValues(int index, java.lang.String value)
this.setValue(PARAM_VALUES, index, value);
| public int | sizeParamValues()
return this.size(PARAM_VALUES);
| public void | validate()
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) {
}
|
|