public ListOutputStrategy(ListOutputStrategy other) { super(other); this.propertyName = other.getPropertyName(); }
public OutputSchemaGenerator<?> getOuputSchemaGenerator() { if (firstOutputStrategy instanceof AppendOutputStrategy) return new AppendOutputSchemaGenerator(((AppendOutputStrategy) firstOutputStrategy).getEventProperties()); else if (firstOutputStrategy instanceof KeepOutputStrategy) return new RenameOutputSchemaGenerator((KeepOutputStrategy) firstOutputStrategy); else if (firstOutputStrategy instanceof FixedOutputStrategy) return new FixedOutputSchemaGenerator(((FixedOutputStrategy) firstOutputStrategy).getEventProperties()); else if (firstOutputStrategy instanceof CustomOutputStrategy) return new CustomOutputSchemaGenerator(((CustomOutputStrategy) firstOutputStrategy).getEventProperties()); else if (firstOutputStrategy instanceof ListOutputStrategy) return new ListOutputSchemaGenerator(((ListOutputStrategy) firstOutputStrategy).getPropertyName()); else if (firstOutputStrategy instanceof TransformOutputStrategy) { return new TransformOutputSchemaGenerator(dataProcessorInvocation, (TransformOutputStrategy) firstOutputStrategy); } else if (firstOutputStrategy instanceof CustomTransformOutputStrategy) { return new CustomTransformOutputSchemaGenerator(dataProcessorInvocation, (CustomTransformOutputStrategy) firstOutputStrategy); } else { throw new IllegalArgumentException(); } } }
public OutputSchemaGenerator<?> getOuputSchemaGenerator() { if (firstOutputStrategy instanceof AppendOutputStrategy) return new AppendOutputSchemaGenerator(((AppendOutputStrategy) firstOutputStrategy).getEventProperties()); else if (firstOutputStrategy instanceof KeepOutputStrategy) return new RenameOutputSchemaGenerator((KeepOutputStrategy) firstOutputStrategy); else if (firstOutputStrategy instanceof FixedOutputStrategy) return new FixedOutputSchemaGenerator(((FixedOutputStrategy) firstOutputStrategy).getEventProperties()); else if (firstOutputStrategy instanceof CustomOutputStrategy) return new CustomOutputSchemaGenerator(((CustomOutputStrategy) firstOutputStrategy).getEventProperties()); else if (firstOutputStrategy instanceof ListOutputStrategy) return new ListOutputSchemaGenerator(((ListOutputStrategy) firstOutputStrategy).getPropertyName()); else if (firstOutputStrategy instanceof TransformOutputStrategy) { return new TransformOutputSchemaGenerator(dataProcessorInvocation, (TransformOutputStrategy) firstOutputStrategy); } else if (firstOutputStrategy instanceof CustomTransformOutputStrategy) { return new CustomTransformOutputSchemaGenerator(dataProcessorInvocation, (CustomTransformOutputStrategy) firstOutputStrategy); } else { throw new IllegalArgumentException(); } } }