com.versionone.apiclient.services.WhereBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of VersionOne.SDK.Java.APIClient Show documentation
Show all versions of VersionOne.SDK.Java.APIClient Show documentation
A library for custom Java development against the VersionOne Development Platform's REST API.
package com.versionone.apiclient.services;
import com.versionone.apiclient.Query;
import com.versionone.apiclient.exceptions.APIException;
import com.versionone.apiclient.filters.IFilterTerm;
public class WhereBuilder extends QueryBuilder {
@Override
protected void doBuild(Query query, BuildResult result) {
IFilterTerm filter2token = query.getFilter();
if (filter2token != null) {
try {
result.querystringParts.add("where=" + filter2token.getToken());
} catch (APIException e) {
throw new RuntimeException(e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy