public static final int getTrimTypeByDesc( String tt ) { if ( tt == null ) { return 0; } for ( int i = 0; i < trimTypeDesc.length; i++ ) { if ( trimTypeDesc[i].equalsIgnoreCase( tt ) ) { return i; } } // If this fails, try to match using the code. return getTrimTypeByCode( tt ); }
@Deprecated public static final int getTrimTypeByCode( String tt ) { return ValueMetaBase.getTrimTypeByCode( tt ); }
@Injection( name = "TRIM_TYPE", group = "FIELDS" ) public void setTrimType( String trimType ) { this.trimtype = ValueMetaBase.getTrimTypeByCode( trimType ); }
groupingSymbol = XMLHandler.getTagValue( node, "grouping_symbol" ); currencySymbol = XMLHandler.getTagValue( node, "currency_symbol" ); trimType = getTrimTypeByCode( XMLHandler.getTagValue( node, "trim_type" ) ); caseInsensitive = "Y".equalsIgnoreCase( XMLHandler.getTagValue( node, "case_insensitive" ) ); collatorDisabled = "Y".equalsIgnoreCase( XMLHandler.getTagValue( node, "collator_disabled" ) );
break; case FIELD_TRIM_TYPE: field.setTrimType( ValueMetaBase.getTrimTypeByCode( value ) ); break; case FIELD_PRECISION:
field.setLength( (int) rep.getStepAttributeInteger( id_step, i, "field_length" ) ); field.setPrecision( (int) rep.getStepAttributeInteger( id_step, i, "field_precision" ) ); field.setTrimType( ValueMetaBase.getTrimTypeByCode( rep.getStepAttributeString( id_step, i, "field_trim_type" ) ) ); field.setRepeated( rep.getStepAttributeBoolean( id_step, i, "field_repeat" ) );