org.deri.wsmo4j.io.parser.rdf
Class RDFParserMessage

java.lang.Object
  extended by org.deri.wsmo4j.io.parser.rdf.RDFParserMessage
Direct Known Subclasses:
RDFParserError, RDFParserWarning

public abstract class RDFParserMessage
extends Object

This class gives structure to an abstract RDF Parser Message, which can be either a warning or an error.

  Created on Nov 14, 2006
  Committed by $Author: nathaliest $
  $Source$
 

Version:
$Revision: 1876 $ $Date: 2006-11-16 11:53:28 +0200 (Thu, 16 Nov 2006) $
Author:
nathalie.steinmetz@deri.org

Constructor Summary
RDFParserMessage(String message, int lineNo, int colNo)
           
 
Method Summary
 int getColumn()
          Gets the column number associated with this parser message.
 int getLine()
          Gets the line number associated with this parser message.
 String getMessage()
          Gets the message associated with this parser message.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFParserMessage

public RDFParserMessage(String message,
                        int lineNo,
                        int colNo)
Method Detail

getMessage

public String getMessage()
Gets the message associated with this parser message.

Returns:
The parser message.

getLine

public int getLine()
Gets the line number associated with this parser message.

Returns:
A line number, or -1 if no line number is available or applicable.

getColumn

public int getColumn()
Gets the column number associated with this parser message.

Returns:
A column number, or -1 if no column number is available or applicable.

toString

public String toString()
Overrides:
toString in class Object
Returns:
A textual representation of an RDFParserWarning
See Also:
Object.toString()


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.