@Override public void process ( final MasterHandlerPriorities priorities, final ItemFeatureEntry rawFeature, final OscarContext context ) { final ValueMapper feature = (ValueMapper)rawFeature; final String configurationId = Features.configurationItem ( feature ); final Map<String, String> data = new HashMap<String, String> (); data.put ( "mapper.id", feature.getDataMapper ().getName () ); //$NON-NLS-1$ if ( feature.getSourceAttribute () != null && !feature.getSourceAttribute ().isEmpty () ) { data.put ( "sourceAttributeName", feature.getSourceAttribute () ); //$NON-NLS-1$ } if ( feature.getTargetAttribute () != null && !feature.getTargetAttribute ().isEmpty () ) { data.put ( "targetAttributeName", feature.getTargetAttribute () ); //$NON-NLS-1$ } final int priority = priorities.findPriority ( Factories.FACTORY_MASTER_HANDLER_VALUE_MAPPER, configurationId ); Items.fillForMasterHandler ( data, feature.getItem (), priority, false ); context.addData ( Factories.FACTORY_MASTER_HANDLER_VALUE_MAPPER, configurationId, data ); } }
@Override public void process ( final MasterHandlerPriorities priorities, final ItemFeatureEntry rawFeature, final OscarContext context ) { final ValueMapper feature = (ValueMapper)rawFeature; final String configurationId = Features.configurationItem ( feature ); final Map<String, String> data = new HashMap<String, String> (); data.put ( "mapper.id", feature.getDataMapper ().getName () ); //$NON-NLS-1$ if ( feature.getSourceAttribute () != null && !feature.getSourceAttribute ().isEmpty () ) { data.put ( "sourceAttributeName", feature.getSourceAttribute () ); //$NON-NLS-1$ } if ( feature.getTargetAttribute () != null && !feature.getTargetAttribute ().isEmpty () ) { data.put ( "targetAttributeName", feature.getTargetAttribute () ); //$NON-NLS-1$ } final int priority = priorities.findPriority ( Factories.FACTORY_MASTER_HANDLER_VALUE_MAPPER, configurationId ); Items.fillForMasterHandler ( data, feature.getItem (), priority, false ); context.addData ( Factories.FACTORY_MASTER_HANDLER_VALUE_MAPPER, configurationId, data ); } }