|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.client.http.helper.ListResultBean
Container for navigating a result set. Contains subjects as a list of
all URIs matching the query. The subjects can be associated with labels
and when the subjects are sorted, the sorting will performed regarding
these labels. Depending the defined length this object provides the
label for the first and last subject on a given page (getStartLabel(int)
and getEndLabel(int)
.
getNavigateNext()
and getNavigatePrevious()
provides information for requesting next, or previous, subset of subjects.
Field Summary | |
static String |
ASCENDING
Description of the Field |
static String |
DESCENDING
Description of the Field |
static String |
NAME
Bean-name |
static String |
UNORDERD
Description of the Field |
Constructor Summary | |
ListResultBean()
Default constructor. |
|
ListResultBean(Model model)
Creates a ListResultBean from a set of subjects . |
Method Summary | |
Model |
getCurrentModel()
Gets the currentModel attribute of the ListResultBean object |
int |
getCurrentPage()
Gets the currentPage attribute of the ListResultBean object |
List |
getCurrentSubjects()
Gets the current subset of subjects. |
String |
getEndLabel(int pageRef)
Gets the last label of the requested page. |
double |
getFetchTime()
Gets the fetchTime attribute of the ListResultBean object |
boolean |
getHasNext()
Gets the hasNext attribute of the ListResultBean object |
boolean |
getHasPrev()
Gets the hasPrev attribute of the ListResultBean object |
int |
getLength()
The length of subset |
Model |
getModel()
Gets the model attribute of the ListResultBean object |
String |
getNavigateNext()
Gets the navigateNext attribute of the ListResultBean object |
String |
getNavigatePrevious()
Gets the navigatePrevious attribute of the ListResultBean object |
String |
getPage(int pageRef)
Gets the page attribute of the ListResultBean object |
double |
getSearchTime()
Gets the searchTime attribute of the ListResultBean object |
String |
getSortCriteria()
Gets the sortCriteria attribute of the ListResultBean object |
String |
getSortorder()
Gets the sortorder attribute of the ListResultBean object |
int |
getStart()
Start index of subjects |
String |
getStartLabel(int pageRef)
Gets the first label of the requested page. |
List |
getSubjectLabels()
Gets the subjectLabels attribute, sorting criteria, of the ListResultBean object |
List |
getSubjects()
The list of all subject-URIs matching search. |
int |
getSubjectsLength()
Number of matching subjects |
void |
removeSubject(Resource res)
Remove component from search-result. |
void |
setCurrentPage(int pageRef)
Sets the currentPage attribute of the ListResultBean object |
void |
setFetchTime(double time)
Sets the fetchTime attribute of the ListResultBean object |
void |
setLength(int length)
Sets the length of subset |
void |
setModel(Model m)
Sets the model attribute of the ListResultBean object |
void |
setSearchTime(double time)
Sets the searchTime attribute of the ListResultBean object |
void |
setSortCriteria(String criteria)
Sets the sortCriteria attribute of the ListResultBean object |
void |
setSortorder(String order)
Sets the sortOrder attribute of the ListResultBean object |
void |
setStart(int start)
Sets the start index |
void |
setSubjectLabels(List labels)
Sets the subjectLabels attribute, sorting criteria, of the ListResultBean object |
void |
setSubjects(List subjects)
Sets the subjects attribute. |
boolean |
sort(Sorter sorter)
Sorts subjects and subjectLabels according to the sorting function. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String NAME
public static final String UNORDERD
public static final String ASCENDING
public static final String DESCENDING
Constructor Detail |
public ListResultBean()
public ListResultBean(Model model) throws RDFException
model
- Description of the Parameter
RDFException
- Description of the Exception
RDFException
- thrown in case of exception finding the
subjects.Method Detail |
public List getSubjects()
Vector
of String
s (URIs)public int getSubjectsLength()
public void setSubjects(List subjects)
subjects
- new subjects attribute value (URIs)public List getCurrentSubjects()
public Model getModel()
public void setModel(Model m)
m
- The new model valuepublic Model getCurrentModel() throws RDFException
RDFException
- Description of the Exceptionpublic void removeSubject(Resource res) throws RDFException
RDFException
public void setSearchTime(double time)
time
- The new searchTime valuepublic double getSearchTime()
public void setFetchTime(double time)
time
- The new fetchTime valuepublic double getFetchTime()
public void setSubjectLabels(List labels)
labels
- The new subjectLabels valuepublic List getSubjectLabels()
public boolean sort(Sorter sorter)
sorter
- Sorting function
public void setSortCriteria(String criteria)
criteria
- The new sortCriteria valuepublic String getSortCriteria()
public void setSortorder(String order)
order
- The new sortOrder valuepublic String getSortorder()
public String getStartLabel(int pageRef)
pageRef
- A referense to the requested page
public String getEndLabel(int pageRef)
pageRef
- A referense to the requested page
public String getPage(int pageRef)
pageRef
- Description of the Parameter
public void setCurrentPage(int pageRef)
pageRef
- The new currentPage valuepublic int getCurrentPage()
public int getStart()
public void setStart(int start)
start
- The new start valuepublic int getLength()
public void setLength(int length)
length
- The new length valuepublic String getNavigatePrevious()
public String getNavigateNext()
public boolean getHasNext()
public boolean getHasPrev()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |