Changeset 1014:58fed5ced352
- Timestamp:
- 03/21/10 22:47:45 (3 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@1015
- Message:
-
changed signature of check() to check(ArrayList?<Message>)
- Location:
- src/org/w3c/unicorn/input
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r668
|
r1014
|
|
| 1 | 1 | package org.w3c.unicorn.input; |
| | 2 | |
| | 3 | import java.util.ArrayList; |
| 2 | 4 | |
| 3 | 5 | import javax.activation.MimeType; |
| … |
… |
|
| 20 | 22 | |
| 21 | 23 | @Override |
| 22 | | public void check() throws UnicornException { |
| | 24 | public void check(ArrayList<Message> messages) throws UnicornException { |
| 23 | 25 | if (document == null || document.equals("")) |
| 24 | 26 | throw new UnicornException(Message.ERROR, "$message_empty_direct_input"); |
-
|
r620
|
r1014
|
|
| 1 | 1 | package org.w3c.unicorn.input; |
| | 2 | |
| | 3 | import java.util.ArrayList; |
| 2 | 4 | |
| 3 | 5 | import javax.activation.MimeType; |
| … |
… |
|
| 5 | 7 | import org.w3c.unicorn.contract.EnumInputMethod; |
| 6 | 8 | import org.w3c.unicorn.exceptions.UnicornException; |
| | 9 | import org.w3c.unicorn.util.Message; |
| 7 | 10 | |
| 8 | 11 | public abstract class InputParameter { |
| … |
… |
|
| 16 | 19 | protected String documentName; |
| 17 | 20 | |
| 18 | | public abstract void check() throws UnicornException; |
| | 21 | public abstract void check(ArrayList<Message> messages) throws UnicornException; |
| 19 | 22 | |
| 20 | 23 | public InputModule getInputModule() { |
-
|
r651
|
r1014
|
|
| 1 | 1 | package org.w3c.unicorn.input; |
| | 2 | |
| | 3 | import java.util.ArrayList; |
| 2 | 4 | |
| 3 | 5 | import javax.activation.MimeType; |
| … |
… |
|
| 17 | 19 | |
| 18 | 20 | @Override |
| 19 | | public void check() throws UnicornException { |
| | 21 | public void check(ArrayList<Message> messages) throws UnicornException { |
| 20 | 22 | if (file.getName() == null || file.getName().equals("")) { |
| 21 | 23 | throw new UnicornException(Message.ERROR, "$message_no_uploaded_file", null); |