package com.jongsoft.harvester.query.neo4j;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.jongsoft.harvester.query.NotOperator;
import com.jongsoft.harvester.query.Operation;

/**
 *
 * @author gerben
 */
@JsonTypeName(value = "not")
public class Neo4jNotOperator extends NotOperator {

    public Neo4jNotOperator(@JsonProperty("operator") Operation operation) {
        super(operation);
    }

    @Override
    public String toString(String ... fields) {
        return " NOT (" + super.getOperation().toString(fields) + ") ";
    }

    @Override
    public String toString() {
        return " NOT (" + super.getOperation().toString() + ") ";
    }
    
}
