protected long dynamicCountFromUserValue( XTCENamedObject item, String form ) {
        // this can probably work on contentValues_
        String paramFullPath = item.getFullPath();
        for ( XTCEContainerContentEntry entry : contentList_ ) {
            if ( ( entry.getEntryType() != FieldType.PARAMETER ) &&
                 ( entry.getEntryType() != FieldType.ARGUMENT  ) ) {
                continue;
            }
            XTCEContainerEntryValue valueObj = entry.getValue();
            if ( entry.getValue() == null ) {
                continue;
            }
            if ( entry.getItemFullPath().equals( paramFullPath ) == true ) {
                if ( valueObj.getOperator().equals( "==" ) == true ) { // NOI18N
                    try {
                        return Long.parseLong( valueObj.getCalibratedValue() );
                    } catch ( NumberFormatException ex ) {
                        warnings_.add(
                            XTCEFunctions.getText( "xml_dynamic_count_numeric_error" ) + // NOI18N
                            " " + // NOI18N
                            item.getName() +
                            " (" + // NOI18N
                            XTCEFunctions.getText( "general_value" ) + // NOI18N
                            " '" + // NOI18N
                            valueObj.getCalibratedValue() +
                            "')" ); // NOI18N
                        return 1;
                    }
                }
                warnings_.add(
                    XTCEFunctions.getText( "xml_dynamic_count_missing_error" ) + // NOI18N
                    " " + // NOI18N
                    item.getName() +
                    ", " + // NOI18N
                    XTCEFunctions.getText( "xml_dynamic_count_assume1" ) ); // NOI18N
                return 1;
            }
        }
        return 1;
    }
protected long dynamicCountFromUserValue( XTCENamedObject item, String form ) {
       
        String paramFullPath = item.getFullPath();
        for ( XTCEContainerContentEntry entry : contentList_ ) {
            if ( ( entry.getEntryType() != FieldType.PARAMETER ) &&
                 ( entry.getEntryType() != FieldType.ARGUMENT  ) ) {
                continue;
            }
            XTCEContainerEntryValue valueObj = entry.getValue();
            if ( entry.getValue() == null ) {
                continue;
            }
            if ( entry.getItemFullPath().equals( paramFullPath ) == true ) {
                if ( valueObj.getOperator().equals( "==" ) == true ) {
                    try {
                        return Long.parseLong( valueObj.getCalibratedValue() );
                    } catch ( NumberFormatException ex ) {
                        warnings_.add(
                            XTCEFunctions.getText( "xml_dynamic_count_numeric_error" ) +
                            " " +
                            item.getName() +
                            " (" +
                            XTCEFunctions.getText( "general_value" ) +
                            " '" +
                            valueObj.getCalibratedValue() +
                            "')" );
                        return 1;
                    }
                }
                warnings_.add(
                    XTCEFunctions.getText( "xml_dynamic_count_missing_error" ) +
                    " " +
                    item.getName() +
                    ", " +
                    XTCEFunctions.getText( "xml_dynamic_count_assume1" ) );
                return 1;
            }
        }
        return 1;
    }
protected long dynamiccountfromuservalue( xtcenamedobject item, string form ) { string paramfullpath = item.getfullpath(); for ( xtcecontainercontententry entry : contentlist_ ) { if ( ( entry.getentrytype() != fieldtype.parameter ) && ( entry.getentrytype() != fieldtype.argument ) ) { continue; } xtcecontainerentryvalue valueobj = entry.getvalue(); if ( entry.getvalue() == null ) { continue; } if ( entry.getitemfullpath().equals( paramfullpath ) == true ) { if ( valueobj.getoperator().equals( "==" ) == true ) { try { return long.parselong( valueobj.getcalibratedvalue() ); } catch ( numberformatexception ex ) { warnings_.add( xtcefunctions.gettext( "xml_dynamic_count_numeric_error" ) + " " + item.getname() + " (" + xtcefunctions.gettext( "general_value" ) + " '" + valueobj.getcalibratedvalue() + "')" ); return 1; } } warnings_.add( xtcefunctions.gettext( "xml_dynamic_count_missing_error" ) + " " + item.getname() + ", " + xtcefunctions.gettext( "xml_dynamic_count_assume1" ) ); return 1; } } return 1; }