com.hp.hpl.jena.ontology.tidy
Class SyntaxProblem

java.lang.Object
  extended by com.hp.hpl.jena.ontology.tidy.SyntaxProblem

public class SyntaxProblem
extends Object

This class encapsulates some problem found during syntax checking.

Author:
Jeremy Carroll

Method Summary
 int getLevel()
          The level associated with this problem.
 String longDescription()
          Everything you ever wanted to know about this problem.
 EnhNode problemNode()
          An orphan or some other node that is at the centre of this problem.
 Graph problemSubGraph()
          A (hopefully small) subgraph exhibiting the problem.
 RDFWriter setWriter(RDFWriter w)
          Sets the writer used for creation of the longDescription().
 String shortDescription()
          A line or two characterising this problem.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setWriter

public RDFWriter setWriter(RDFWriter w)
Sets the writer used for creation of the longDescription().

Parameters:
w -
Returns:
the old writer

longDescription

public String longDescription()
Everything you ever wanted to know about this problem.

Returns:
An exhaustive description of the problem.

problemNode

public EnhNode problemNode()
An orphan or some other node that is at the centre of this problem. The associated EnhGraph is always a Model, and is intended to be small but complete (e.g. all triples involving an orphan node).

Returns:
A problem node or null

shortDescription

public String shortDescription()
A line or two characterising this problem.

Returns:
A short description of the problem.

problemSubGraph

public Graph problemSubGraph()
A (hopefully small) subgraph exhibiting the problem. At least one of problemSubGraph and problemNode() is non-null. If both are non-null then the problemSubGraph() is the graph underlying the problemNode().

Returns:
the problem sub-graph

getLevel

public int getLevel()
The level associated with this problem.

Returns:
One of the values in Levels.


Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP