- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 24 Sep 2009 17:38:58 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn In directory hutz:/tmp/cvs-serv28519/src/org/w3c/unicorn Modified Files: UnicornCall.java Log Message: added check() method that checks the inputParameter and should be executed independently of doTask() Index: UnicornCall.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- UnicornCall.java 23 Sep 2009 17:00:33 -0000 1.25 +++ UnicornCall.java 24 Sep 2009 17:38:55 -0000 1.26 @@ -76,6 +76,11 @@ messages = new ArrayList<Message>(); } + + public void check() throws UnicornException { + inputParameter.check(); + } + /** * Execute the task aTask * @@ -88,8 +93,6 @@ logger.debug("Document name : " + inputParameter.getDocumentName() + "."); logger.debug("Map of string parameter : " + mapOfStringParameter + "."); - inputParameter.check(); - MimeType aMimeType = inputParameter.getMimeType(); if (!aTask.getSupportedMimeTypes().contains(aMimeType.toString())) throw new UnicornException(Message.Level.ERROR, "$message_unsupported_mime_type", null); @@ -157,7 +160,7 @@ final InputMethod aInputMethod = aObserver .getBestInputMethod(aEnumInputMethod); - //TODO: add warning if inputMethod has changed + //TODO: add warning if inputMethod has changed -> check behavior if (aInputMethod.getMethod() != inputParameter.getInputMethod()) { messages.add(new Message(Message.Level.WARNING, "Input method changed for observer: \"" + aObserver.getName(sLang)
Received on Thursday, 24 September 2009 17:39:07 UTC