org.deri.wsmo4j.validator
Class FileValidator

java.lang.Object
  extended by org.deri.wsmo4j.validator.FileValidator

public class FileValidator
extends Object

A file validator that validates a given WSML document given in the form of a file handle and prints complaints from the parser and the validator out to the console. It is targeted at external programs rather than human users, in particular at glue languages like perl and phyton. All of its output adheres to the same regular expression and is going to stdout rather than stderr, defaulting to be accessible via shell pipes. TODO make this class self-checking, to verify the outgoing lines against the regular expression

 Created on Apr 16, 2006
 Committed by $Author: morcen $
 $Source$
 

Version:
$Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $code
Author:
Thomas Haselwanter

Constructor Summary
FileValidator()
           
 
Method Summary
 List getErrors()
           
 List getWarnings()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileValidator

public FileValidator()
Method Detail

main

public static void main(String[] args)

getErrors

public List getErrors()

getWarnings

public List getWarnings()


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.