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