public SimpleSegmentPredicate(SimplePredicate predicate) { this.baseFieldName = predicate.getField(); this.operator = predicate.getOperator(); this.value = predicate.getValue(); this.stringLiteralValue = checkValueForStringLiteral(this.value); if (this.operator == null) { throw new IllegalStateException("PMML - SimplePredicate: Missing operator"); } }