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

com.lithium.ldn.starql.parsers.QlConstraintOperatorSupport Maven / Gradle / Ivy

There is a newer version: 2.13
Show newest version
package com.lithium.ldn.starql.parsers;

import java.util.List;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.lithium.ldn.starql.models.QlConstraintOperatorType;

public class QlConstraintOperatorSupport implements ConstraintOperatorSupport {

	private List displayStrings;
	
	public QlConstraintOperatorSupport() {
		List temp = Lists.newArrayList();
		for (QlConstraintOperatorType op : QlConstraintOperatorType.values()) {
			temp.add(op.getName());
		}
		this.displayStrings = ImmutableList.copyOf(temp);
	}

	@Override
	public List getOperatorDisplayStrings() {
		return displayStrings;
	}

	@Override
	public QlConstraintOperatorType convert(String operatorName) {
		return QlConstraintOperatorType.get(operatorName);
	}

	@Override
	public boolean isCaseSensitive() {
		return false;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy