String type = atts.getValue( "class" );
String breakOnError = atts.getValue( "break-on-error" );
String minLen = atts.getValue( "minlen" );
String maxLen = atts.getValue( "maxlen" );
Class c = Class.forName( type );
ISOFieldValidator v = (ISOFieldValidator)c.newInstance();
if ( breakOnError != null ) v.setBreakOnError(Boolean.valueOf(breakOnError));
if ( minLen != null ) v.setMinLength( Integer.parseInt( minLen ) );
if ( maxLen != null ) v.setMaxLength( Integer.parseInt( maxLen ) );
v.setFieldId( Integer.parseInt(fldID) );
/** insert validator on stack waiting for properties **/
validatorStack.push( v );
validatorStack.push( new Properties() );
}
if ( localName.equals( "property" ) ){
((Properties)validatorStack.peek()).setProperty(
atts.getValue( "name" ),
atts.getValue( "value" ) );
}
if ( localName.equals( "isovalidator" ) ){
String type = atts.getValue( "class" );
String breakOnError = atts.getValue( "break-on-error" );
Class c = Class.forName( type );
ISOBaseValidator v = (ISOBaseValidator)c.newInstance();
if ( breakOnError != null ) v.setBreakOnError(Boolean.valueOf(breakOnError));
/** insert validator on stack waiting for properties **/
validatorStack.push( v );
validatorStack.push( new Properties() );
}
if ( localName.equals("isofieldpackager") ) {