info.sswap.impl.empire.model
Class JenaModelFactory.ErrorHandler

java.lang.Object
  extended by info.sswap.impl.empire.model.JenaModelFactory.ErrorHandler
All Implemented Interfaces:
com.hp.hpl.jena.rdf.model.RDFErrorHandler
Enclosing class:
JenaModelFactory

private static class JenaModelFactory.ErrorHandler
extends java.lang.Object
implements com.hp.hpl.jena.rdf.model.RDFErrorHandler

An internal error handler for errors encountered while parsing the model

Author:
Blazej Bulka

Field Summary
private  java.util.List<java.lang.Exception> errors
           
private  java.util.List<java.lang.Exception> fatalErrors
           
private  java.util.List<java.lang.Exception> warnings
           
 
Constructor Summary
private JenaModelFactory.ErrorHandler()
           
 
Method Summary
 void error(java.lang.Exception ex)
          Method used by Jena to report that an error occurred
 void fatalError(java.lang.Exception ex)
          Method used by jena to report that a fatal error occurred
 void warning(java.lang.Exception ex)
          Method used by Jena to report that a warning occurred
 boolean wereErrors()
          Checks whether there were any errors (either regular or fatal).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errors

private java.util.List<java.lang.Exception> errors

fatalErrors

private java.util.List<java.lang.Exception> fatalErrors

warnings

private java.util.List<java.lang.Exception> warnings
Constructor Detail

JenaModelFactory.ErrorHandler

private JenaModelFactory.ErrorHandler()
Method Detail

error

public void error(java.lang.Exception ex)
Method used by Jena to report that an error occurred

Specified by:
error in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
Parameters:
ex - the exception

fatalError

public void fatalError(java.lang.Exception ex)
Method used by jena to report that a fatal error occurred

Specified by:
fatalError in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
Parameters:
ex - the exception

warning

public void warning(java.lang.Exception ex)
Method used by Jena to report that a warning occurred

Specified by:
warning in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
Parameters:
ex - the exception

wereErrors

public boolean wereErrors()
Checks whether there were any errors (either regular or fatal).

Returns:
true if there were any errors


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.