- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 19 Oct 2009 16:18:54 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response In directory hutz:/tmp/cvs-serv17527/src/org/w3c/unicorn/response Modified Files: Response.java Log Message: added multiple convenient methods to retrieve messages based on level or uri + added getURISortedMessages method Index: Response.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/Response.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Response.java 19 Oct 2009 12:38:30 -0000 1.11 +++ Response.java 19 Oct 2009 16:18:52 -0000 1.12 @@ -6,6 +6,7 @@ import java.util.Date; import java.util.List; +import java.util.Map; public interface Response { @@ -20,17 +21,7 @@ public List<Group> getGroups(); public List<Group> getGroupChildren(Group group); - - public List<Message> getMessages(); - - public List<Message> getErrorMessages(); - - public List<Message> getWarningMessages(); - - public List<Message> getInfoMessages(); - - public Integer getRating(); - + public String getURI(); public int getErrorCount(); @@ -38,6 +29,26 @@ public int getInfoCount(); public int getWarningCount(); + + public Map<String, Iterable<Message>> getURISortedMessages(int type); + + public Iterable<Message> getMessages(); + + public Iterable<Message> getMessages(String uri, Integer type); + + public Iterable<Message> getErrorMessages(); + + public Iterable<Message> getErrorMessages(String uri); + + public Iterable<Message> getWarningMessages(); + + public Iterable<Message> getWarningMessages(String uri); + + public Iterable<Message> getInfoMessages(); + + public Iterable<Message> getInfoMessages(String uri); + + public Integer getRating(); public int getStatus();
Received on Monday, 19 October 2009 16:18:57 UTC