- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 21 Mar 2010 22:47:47 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/input In directory hutz:/tmp/cvs-serv4933/src/org/w3c/unicorn/input Modified Files: DirectInputParameter.java InputParameter.java UploadInputParameter.java Log Message: changed signature of check() to check(ArrayList<Message>) Index: UploadInputParameter.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/input/UploadInputParameter.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- UploadInputParameter.java 5 Oct 2009 14:25:41 -0000 1.4 +++ UploadInputParameter.java 21 Mar 2010 22:47:45 -0000 1.5 @@ -1,5 +1,7 @@ package org.w3c.unicorn.input; +import java.util.ArrayList; + import javax.activation.MimeType; import javax.activation.MimeTypeParseException; import org.apache.commons.fileupload.FileItem; @@ -16,7 +18,7 @@ } @Override - public void check() throws UnicornException { + public void check(ArrayList<Message> messages) throws UnicornException { if (file.getName() == null || file.getName().equals("")) { throw new UnicornException(Message.ERROR, "$message_no_uploaded_file", null); } Index: InputParameter.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/input/InputParameter.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- InputParameter.java 1 Oct 2009 18:12:15 -0000 1.3 +++ InputParameter.java 21 Mar 2010 22:47:45 -0000 1.4 @@ -1,9 +1,12 @@ package org.w3c.unicorn.input; +import java.util.ArrayList; + import javax.activation.MimeType; import org.w3c.unicorn.contract.EnumInputMethod; import org.w3c.unicorn.exceptions.UnicornException; +import org.w3c.unicorn.util.Message; public abstract class InputParameter { @@ -15,7 +18,7 @@ protected String documentName; - public abstract void check() throws UnicornException; + public abstract void check(ArrayList<Message> messages) throws UnicornException; public InputModule getInputModule() { return inputModule; Index: DirectInputParameter.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/input/DirectInputParameter.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- DirectInputParameter.java 6 Oct 2009 10:05:16 -0000 1.6 +++ DirectInputParameter.java 21 Mar 2010 22:47:45 -0000 1.7 @@ -1,5 +1,7 @@ package org.w3c.unicorn.input; +import java.util.ArrayList; + import javax.activation.MimeType; import javax.activation.MimeTypeParseException; @@ -19,7 +21,7 @@ } @Override - public void check() throws UnicornException { + public void check(ArrayList<Message> messages) throws UnicornException { if (document == null || document.equals("")) throw new UnicornException(Message.ERROR, "$message_empty_direct_input"); if (sMimeType == null || sMimeType.equals(""))
Received on Sunday, 21 March 2010 22:47:49 UTC