org.biojava.dasobert.das.validation
Class RegistryRelaxNG

java.lang.Object
  extended by org.biojava.dasobert.das.validation.RegistryRelaxNG

public class RegistryRelaxNG
extends Object

* BioJava development code This code may be freely distributed and modified under the terms of the GNU Lesser General Public Licence. This should be distributed with the code. If you do not have a copy, see: http://www.gnu.org/copyleft/lesser.html Copyright for this code is held jointly by the individual authors. These should be listed in @author doc comments. For more information on the BioJava project and its aims, or to join the biojava-l mailing list, visit the home page at: http://www.biojava.org/

Author:
JWarren

Field Summary
static String ERR_LOAD_GRAMMAR
           
static String MSG_BAILOUT
           
static String MSG_DTDVALIDATION
           
static String MSG_FAILED_TO_IGNORE_EXTERNAL_DTD
           
static String MSG_INVALID
           
static String MSG_PARSER
           
static String MSG_PARSING_TIME
           
static String MSG_START_PARSING_GRAMMAR
           
static String MSG_UNRECOGNIZED_OPTION
           
static String MSG_USAGE
           
static String MSG_VALID
           
static String MSG_VALIDATING
           
static String MSG_VALIDATION_TIME
           
static String MSG_WARNING_FOUND
           
 
Constructor Summary
RegistryRelaxNG()
           
 
Method Summary
 String getRegMessage()
           
static String localize(String prop)
           
static String localize(String prop, Object arg1)
           
static String localize(String propertyName, Object[] args)
           
static String localize(String prop, Object arg1, Object arg2)
           
static void main(String[] args)
           
 int validate(String grammarName, String instName)
           
 int validateCatchingExceptions(String rng, String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_DTDVALIDATION

public static final String MSG_DTDVALIDATION
See Also:
Constant Field Values

MSG_PARSER

public static final String MSG_PARSER
See Also:
Constant Field Values

MSG_USAGE

public static final String MSG_USAGE
See Also:
Constant Field Values

MSG_UNRECOGNIZED_OPTION

public static final String MSG_UNRECOGNIZED_OPTION
See Also:
Constant Field Values

MSG_START_PARSING_GRAMMAR

public static final String MSG_START_PARSING_GRAMMAR
See Also:
Constant Field Values

MSG_PARSING_TIME

public static final String MSG_PARSING_TIME
See Also:
Constant Field Values

MSG_VALIDATING

public static final String MSG_VALIDATING
See Also:
Constant Field Values

MSG_VALIDATION_TIME

public static final String MSG_VALIDATION_TIME
See Also:
Constant Field Values

MSG_VALID

public static final String MSG_VALID
See Also:
Constant Field Values

MSG_INVALID

public static final String MSG_INVALID
See Also:
Constant Field Values

ERR_LOAD_GRAMMAR

public static final String ERR_LOAD_GRAMMAR
See Also:
Constant Field Values

MSG_BAILOUT

public static final String MSG_BAILOUT
See Also:
Constant Field Values

MSG_FAILED_TO_IGNORE_EXTERNAL_DTD

public static final String MSG_FAILED_TO_IGNORE_EXTERNAL_DTD
See Also:
Constant Field Values

MSG_WARNING_FOUND

public static final String MSG_WARNING_FOUND
See Also:
Constant Field Values
Constructor Detail

RegistryRelaxNG

public RegistryRelaxNG()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

validate

public int validate(String grammarName,
                    String instName)
             throws InstantiationException,
                    IllegalAccessException,
                    ClassNotFoundException,
                    MalformedURLException,
                    IOException,
                    FactoryConfigurationError,
                    ParserConfigurationException,
                    Exception,
                    SAXException
Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
MalformedURLException
IOException
FactoryConfigurationError
ParserConfigurationException
Exception
SAXException

localize

public static String localize(String propertyName,
                              Object[] args)

localize

public static String localize(String prop)

localize

public static String localize(String prop,
                              Object arg1)

localize

public static String localize(String prop,
                              Object arg1,
                              Object arg2)

getRegMessage

public String getRegMessage()

validateCatchingExceptions

public int validateCatchingExceptions(String rng,
                                      String input)