private static TransformOperation dynamicTransformOperation(TransformOperationType transformationScope, String mappingPropertyInternalName, String sourceStaticPropertyInternalName) { TransformOperation to = prepareTransformOperation(transformationScope.name() , mappingPropertyInternalName); to.setSourceStaticProperty(sourceStaticPropertyInternalName); return to; }
private EventProperty modifyEventProperty(EventProperty eventProperty, TransformOperation to, List<StaticProperty> staticProperties) { if (to.getTargetValue() != null) { return modifyEventProperty(eventProperty, TransformOperationType.valueOf(to.getTransformationScope()), to .getTargetValue()); } else { Optional<StaticProperty> sp = findStaticProperty(staticProperties, to.getSourceStaticProperty()); if (sp.isPresent()) { return modifyEventProperty(eventProperty, sp.get(), TransformOperationType.valueOf(to.getTransformationScope ())); } } return new Cloner().property(eventProperty); }
private EventProperty modifyEventProperty(EventProperty eventProperty, TransformOperation to, List<StaticProperty> staticProperties) { if (to.getTargetValue() != null) { return modifyEventProperty(eventProperty, TransformOperationType.valueOf(to.getTransformationScope()), to .getTargetValue()); } else { Optional<StaticProperty> sp = findStaticProperty(staticProperties, to.getSourceStaticProperty()); if (sp.isPresent()) { return modifyEventProperty(eventProperty, sp.get(), TransformOperationType.valueOf(to.getTransformationScope ())); } } return new Cloner().property(eventProperty); }
private static TransformOperation staticTransformOperation(TransformOperationType transformationScope, String mappingPropertyInternalName, String targetValue) { TransformOperation to = prepareTransformOperation(transformationScope.name() , mappingPropertyInternalName); to.setTargetValue(targetValue); return to; }