Skip to content
Snippets Groups Projects
Commit f5be00f8 authored by tpylak's avatar tpylak
Browse files

LMS-749 minor: toString for search criteria

SVN: 9760
parent ddbbb6c3
No related branches found
No related tags found
No related merge requests found
......@@ -21,10 +21,11 @@ import java.util.List;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* FIXME
* FIXME change the name, add a comment
*
* @author Izabela Adamczyk
*/
// TODO 2009-02-10, Tomasz Pylak: rename to DataSetSearchCriteria
public class SearchCriteria implements IsSerializable
{
private List<DataSetSearchCriterion> criteria;
......@@ -60,4 +61,19 @@ public class SearchCriteria implements IsSerializable
this.connection = connection;
}
@Override
public String toString()
{
StringBuffer sb = new StringBuffer();
sb.append(connection);
sb.append(" of ");
for (DataSetSearchCriterion criterion : criteria)
{
sb.append("[ ");
sb.append(criterion.toString());
sb.append("] ");
}
return sb.toString();
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment