All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rbmhtechnology.vind.parser.queryparser.BooleanLeafLiteral Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package com.rbmhtechnology.vind.parser.queryparser;


import com.rbmhtechnology.vind.api.query.filter.Filter;
import com.rbmhtechnology.vind.model.FieldDescriptor;

public class BooleanLeafLiteral extends BooleanLiteral {
    private final String value ;

    public BooleanLeafLiteral(String val) {
        value = val;
    }

    public String getValue() {
        return value;
    }

    @Override
    public Filter toVindFilter(FieldDescriptor descriptor) {
        //TODO casting to descriptor type
        return Filter.eq(descriptor, value);
    }

    @Override
    public String toString() {
        return this.value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy