return message;
}
@Override
public SimpleResolutionRuleTransform buildObject(final FudgeDeserializer deserializer, final FudgeMsg message) {
final SimpleResolutionRuleTransform transform = new SimpleResolutionRuleTransform();
for (FudgeField field : message) {
if (field.getName() != null) {
if (field.getValue() == IndicatorType.INSTANCE) {
transform.suppressRule(field.getName());
} else if (field.getValue() instanceof FudgeMsg) {
final FudgeMsg action = (FudgeMsg) field.getValue();
final FudgeField parameters = action.getByName(PARAMETERS_FIELD);
final FudgeField filter = action.getByName(FILTER_FIELD);
final FudgeField priority = action.getByName(PRIORITY_FIELD);
transform.adjustRule(field.getName(), (parameters != null) ? deserializer.fieldValueToObject(FunctionParameters.class, parameters) : null, (filter != null) ? deserializer.fieldValueToObject(
ComputationTargetFilter.class, filter) : null, (priority != null) ? message.getFieldValue(Integer.class, priority) : null);
}
}
}
return transform;