/** * Return the underlying {@link OperationBuilder} */ public DefaultOperationBuilder getOperationBuilder() { if (operation == null) operation = Operations.create(); else if (!(operation instanceof DefaultOperationBuilder)) operation = Operations.wrap(operation); return (DefaultOperationBuilder) operation; }
/** * Return the underlying {@link OperationBuilder} */ public DefaultOperationBuilder getOperationBuilder() { if (operation == null) operation = Operations.create(); else if (!(operation instanceof DefaultOperationBuilder)) operation = Operations.wrap(operation); return (DefaultOperationBuilder) operation; }
/** * Perform the given {@link Operation} when the conditions set in this {@link Rule} are met. */ public RuleBuilder perform(final Operation operation) { if (this.operation == null) this.operation = operation; else if (operation instanceof OperationBuilder) this.operation = ((OperationBuilder) this.operation).and(operation); else this.operation = Operations.wrap(this.operation).and(operation); return this; }
/** * Perform the given {@link Operation} when the conditions set in this {@link Rule} are met. */ public RuleBuilder perform(final Operation operation) { if (this.operation == null) this.operation = operation; else if (operation instanceof OperationBuilder) this.operation = ((OperationBuilder) this.operation).and(operation); else this.operation = Operations.wrap(this.operation).and(operation); return this; }