public TransformOperation(TransformOperation other) { super(other); this.mappingPropertyInternalName = other.getMappingPropertyInternalName(); this.sourceStaticProperty = other.getSourceStaticProperty(); this.transformationScope = other.getTransformationScope(); this.targetValue = other.getTargetValue(); }
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); }