org.openjena.riot.checker
Class CheckerIRI
java.lang.Object
org.openjena.riot.checker.CheckerIRI
- All Implemented Interfaces:
- NodeChecker
public class CheckerIRI
- extends Object
- implements NodeChecker
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). |
CheckerIRI
public CheckerIRI()
CheckerIRI
public CheckerIRI(ErrorHandler handler,
com.hp.hpl.jena.iri.IRIFactory iriFactory)
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 checkerrorHandler
- 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 checkerrorHandler
- 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