/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
import java.util.Collection;
/**
- * Represents the PDB request to be consumed by the PDBRestClient
+ * Represents the FTS request to be consumed by the FTSRestClient
*
* @author tcnofoegbu
*
private boolean allowEmptySequence;
- private boolean allowUnpublishedEntries = Cache.getDefault(
- "ALLOW_UNPUBLISHED_PDB_QUERYING", false);
+ private boolean allowUnpublishedEntries = Cache
+ .getDefault("ALLOW_UNPUBLISHED_PDB_QUERYING", false);
private boolean facet;
private int responseSize;
+ private int offSet;
+
private boolean isSortAscending;
private Collection<FTSDataColumnI> wantedFields;
return wantedFields;
}
- public void setWantedFields(
- Collection<FTSDataColumnI> wantedFields)
+ public void setWantedFields(Collection<FTSDataColumnI> wantedFields)
{
this.wantedFields = wantedFields;
}
return fieldToSortBy;
}
- public void setFieldToSortBy(String fieldToSortBy, boolean isSortAscending)
+ public void setFieldToSortBy(String fieldToSortBy,
+ boolean isSortAscending)
{
this.fieldToSortBy = fieldToSortBy;
this.isSortAscending = isSortAscending;
{
this.facetPivotMinCount = facetPivotMinCount;
}
+
+ public int getOffSet()
+ {
+ return offSet;
+ }
+
+ public void setOffSet(int offSet)
+ {
+ this.offSet = offSet;
+ }
+
+ /**
+ * locate column given field name
+ *
+ * @param string
+ * - field name
+ * @return -1 if not located
+ */
+ public int getFieldIndex(String string)
+ {
+ int i = associatedSequence != null ? 1 : 0;
+ for (FTSDataColumnI field : wantedFields)
+ {
+ if (field.getName().equals(string))
+ {
+ return i;
+ }
+ i++;
+ }
+ return -1;
+ }
}