@Override public void process ( final MasterHandlerPriorities priorities, final ItemFeatureEntry rawFeature, final OscarContext context ) { final Rounding feature = (Rounding)rawFeature; final String configurationId = Features.configurationItem ( feature ); final Map<String, String> data = new HashMap<String, String> (); final RoundingType type = feature.getType () != null ? feature.getType () : RoundingType.NONE; data.put ( "active", "" + ( type != RoundingType.NONE ) ); //$NON-NLS-1$ //$NON-NLS-2$ data.put ( "type", "" + type.name () ); //$NON-NLS-1$ //$NON-NLS-2$ final int priority = priorities.findPriority ( Factories.FACTORY_MASTER_HANDLER_ROUND, configurationId ); Items.fillForMasterHandler ( data, feature.getItem (), priority ); context.addData ( Factories.FACTORY_MASTER_HANDLER_ROUND, configurationId, data ); } }
@Override public void process ( final MasterHandlerPriorities priorities, final ItemFeatureEntry rawFeature, final OscarContext context ) { final Rounding feature = (Rounding)rawFeature; final String configurationId = Features.configurationItem ( feature ); final Map<String, String> data = new HashMap<String, String> (); final RoundingType type = feature.getType () != null ? feature.getType () : RoundingType.NONE; data.put ( "active", "" + ( type != RoundingType.NONE ) ); //$NON-NLS-1$ //$NON-NLS-2$ data.put ( "type", "" + type.name () ); //$NON-NLS-1$ //$NON-NLS-2$ final int priority = priorities.findPriority ( Factories.FACTORY_MASTER_HANDLER_ROUND, configurationId ); Items.fillForMasterHandler ( data, feature.getItem (), priority ); context.addData ( Factories.FACTORY_MASTER_HANDLER_ROUND, configurationId, data ); } }