Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addParameter(com.sun.enterprise.tools.common.validation.data.Parameter value)
return this.addValue(PARAMETER, 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("Parameter["+this.sizeParameter()+"]"); // NOI18N
for(int i=0; i<this.sizeParameter(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getParameter(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(PARAMETER, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("Parameters\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public com.sun.enterprise.tools.common.validation.data.Parameter | getParameter(int index)
return (Parameter)this.getValue(PARAMETER, index);
|
public com.sun.enterprise.tools.common.validation.data.Parameter[] | getParameter()
return (Parameter[])this.getValues(PARAMETER);
|
void | initialize(int options)
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeParameter(com.sun.enterprise.tools.common.validation.data.Parameter value)
return this.removeValue(PARAMETER, value);
|
public void | setParameter(int index, com.sun.enterprise.tools.common.validation.data.Parameter value)
this.setValue(PARAMETER, index, value);
|
public void | setParameter(com.sun.enterprise.tools.common.validation.data.Parameter[] value)
this.setValue(PARAMETER, value);
|
public int | sizeParameter()
return this.size(PARAMETER);
|
public void | validate()
boolean restrictionFailure = false;
// Validating property parameter
if (sizeParameter() == 0) {
throw new org.netbeans.modules.schema2beans.ValidateException("sizeParameter() == 0", "parameter", this); // NOI18N
}
for (int _index = 0; _index < sizeParameter(); ++_index) {
com.sun.enterprise.tools.common.validation.data.Parameter element = getParameter(_index);
if (element != null) {
element.validate();
}
}
|