Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 5.5.1.

Duplications

File Line
fr/paris/lutece/plugins/genericattributes/modules/ocr/service/OcrCniProvider.java 128
fr/paris/lutece/plugins/genericattributes/modules/ocr/service/OcrDriverLicenceProvider.java 124
fr/paris/lutece/plugins/genericattributes/modules/ocr/service/OcrTaxAssessmentProvider.java 123
        refListField.addItem( 9, "Address" );

        return refListField;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public ReferenceItem getFieldById( int idField )
    {
        return getListField( ).get( idField );
    }

    /**
     * {@inheritDoc}
     */
    /*
     * @Override public List<Integer> getAuthorizedEntryType() { String strAuthorizedEntryType = AppPropertiesService.getProperty(
     * PROPERTY_AUTHORIZED_ENTRY_TYPE ); Pattern pattern = Pattern.compile("-"); return
     * pattern.splitAsStream(strAuthorizedEntryType).map(Integer::valueOf).collect(Collectors.toList()); }
     */

    /**
     * {@inheritDoc}
     * 
     * @throws CallOcrException
     */
    @Override
    public List<Response> process( FileItem fileUploaded, int nIdTargetEntry, String strResourceType ) throws CallOcrException
    {
        return OcrProviderUtils.process( fileUploaded, nIdTargetEntry, strResourceType, getKey( ), getListField( ) );
    }

    @Override
    public String getConfigHtmlCode( ReferenceList lisEntry, int nIdQuestion, String strResourceType )
    {

        return OcrProviderUtils.builtTempalteConfiog( lisEntry, this, nIdQuestion, strResourceType ).getHtml( );
    }

    @Override
    public String getHtmlCode( int nIdTargetEntry, String strResourceType )
    {

        return OcrProviderUtils.builtTempalteCode( nIdTargetEntry, strResourceType ).getHtml( );
    }
}