org.openjena.riot.checker
Class CheckerIRI

java.lang.Object
  extended by org.openjena.riot.checker.CheckerIRI
All Implemented Interfaces:
NodeChecker

public class CheckerIRI
extends Object
implements NodeChecker


Constructor Summary
CheckerIRI()
           
CheckerIRI(ErrorHandler handler, com.hp.hpl.jena.iri.IRIFactory iriFactory)
           
 
Method Summary
 boolean check(com.hp.hpl.jena.graph.Node node, long line, long col)
           
 boolean checkIRI(com.hp.hpl.jena.iri.IRI iri, long line, long col)
           
 boolean checkURI(com.hp.hpl.jena.graph.Node node, long line, long col)
           
static void iriViolations(com.hp.hpl.jena.iri.IRI iri, ErrorHandler errorHandler)
          Process violations on an IRI Calls the errorhandler on all errors and warnings (as warning).
static void iriViolations(com.hp.hpl.jena.iri.IRI iri, ErrorHandler errorHandler, boolean allowRelativeIRIs, boolean includeIRIwarnings, long line, long col)
          Process violations on an IRI Calls the errorhandler on all errors and warnings (as warning).
static void iriViolations(com.hp.hpl.jena.iri.IRI iri, ErrorHandler errorHandler, long line, long col)
          Process violations on an IRI Calls the errorhandler on all errors and warnings (as warning).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckerIRI

public CheckerIRI()

CheckerIRI

public CheckerIRI(ErrorHandler handler,
                  com.hp.hpl.jena.iri.IRIFactory iriFactory)
Method Detail

check

public boolean check(com.hp.hpl.jena.graph.Node node,
                     long line,
                     long col)
Specified by:
check in interface NodeChecker

checkURI

public final boolean checkURI(com.hp.hpl.jena.graph.Node node,
                              long line,
                              long col)

checkIRI

public final boolean checkIRI(com.hp.hpl.jena.iri.IRI iri,
                              long line,
                              long col)

iriViolations

public static void iriViolations(com.hp.hpl.jena.iri.IRI iri,
                                 ErrorHandler errorHandler)
Process violations on an IRI Calls the errorhandler on all errors and warnings (as warning). Assumes error handler throws exceptions on errors if needbe

Parameters:
iri - IRI to check
errorHandler - The error handler to call on each warning or error.

iriViolations

public static void iriViolations(com.hp.hpl.jena.iri.IRI iri,
                                 ErrorHandler errorHandler,
                                 long line,
                                 long col)
Process violations on an IRI Calls the errorhandler on all errors and warnings (as warning). Assumes error handler throws exceptions on errors if needbe

Parameters:
iri - IRI to check
errorHandler - The error handler to call on each warning or error.

iriViolations

public static void iriViolations(com.hp.hpl.jena.iri.IRI iri,
                                 ErrorHandler errorHandler,
                                 boolean allowRelativeIRIs,
                                 boolean includeIRIwarnings,
                                 long line,
                                 long col)
Process violations on an IRI Calls the errorhandler on all errors and warnings (as warning). Assumes error handler throws exceptions on errors if needbe



Licenced under the Apache License, Version 2.0