Methods Summary |
---|
public int | addCheck(com.sun.enterprise.tools.common.validation.data.Check value)
return this.addValue(CHECK, 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("Name"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getName();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(NAME, 0, str, indent);
str.append(indent);
str.append("Check["+this.sizeCheck()+"]"); // NOI18N
for(int i=0; i<this.sizeCheck(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getCheck(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(CHECK, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("Element\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public com.sun.enterprise.tools.common.validation.data.Check | getCheck(int index)
return (Check)this.getValue(CHECK, index);
|
public com.sun.enterprise.tools.common.validation.data.Check[] | getCheck()
return (Check[])this.getValues(CHECK);
|
public java.lang.String | getName()
return (String)this.getValue(NAME);
|
void | initialize(int options)
|
public int | removeCheck(com.sun.enterprise.tools.common.validation.data.Check value)
return this.removeValue(CHECK, value);
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public void | setCheck(int index, com.sun.enterprise.tools.common.validation.data.Check value)
this.setValue(CHECK, index, value);
|
public void | setCheck(com.sun.enterprise.tools.common.validation.data.Check[] value)
this.setValue(CHECK, value);
|
public void | setName(java.lang.String value)
this.setValue(NAME, value);
|
public int | sizeCheck()
return this.size(CHECK);
|
public void | validate()
boolean restrictionFailure = false;
// Validating property name
if (getName() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getName() == null", "name", this); // NOI18N
}
// Validating property check
for (int _index = 0; _index < sizeCheck(); ++_index) {
com.sun.enterprise.tools.common.validation.data.Check element = getCheck(_index);
if (element != null) {
element.validate();
}
}
|