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

java.lang.Object
  extended by org.deri.wsmo4j.io.parser.rdf.RDFParserMessage
      extended by org.deri.wsmo4j.io.parser.rdf.RDFParserWarning

public class RDFParserWarning
extends RDFParserMessage

This class represents a RDF Parse Warning.

  Created on May 02, 2006
  Committed by $Author: morcen $
  $Source$
 

Version:
$Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $
Author:
nathalie.steinmetz@deri.org

Constructor Summary
RDFParserWarning(String warningMessage, int lineNo, int colNo)
           
 
Method Summary
 void addToTriples(org.openrdf.model.Statement statement)
          All triples that were not recognized, and thus not transformed and added to the WSMO object model, are put into a Set.
 boolean equals(Object obj)
           The equals method implements an equivalence relation on non-null object references.
 Set getTriples()
          This method returns a Set containing all triples that were not recognized, and thus not transformed and added to the WSMO object model.
 int hashCode()
           If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.
 
Methods inherited from class org.deri.wsmo4j.io.parser.rdf.RDFParserMessage
getColumn, getLine, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFParserWarning

public RDFParserWarning(String warningMessage,
                        int lineNo,
                        int colNo)
Method Detail

addToTriples

public void addToTriples(org.openrdf.model.Statement statement)
All triples that were not recognized, and thus not transformed and added to the WSMO object model, are put into a Set.

Parameters:
statement - statement to be added to the triples set

getTriples

public Set getTriples()
This method returns a Set containing all triples that were not recognized, and thus not transformed and added to the WSMO object model.

Returns:
Set of RDF statements concerned by this warning

equals

public boolean equals(Object obj)

The equals method implements an equivalence relation on non-null object references. RDFParserWarnings are equal if their warning message and their line and column numbers are equal.

It is generally necessary to override the hashCode method whenever this method is overridden.

Overrides:
equals in class Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.equals(java.lang.Object), Object.hashCode()

hashCode

public int hashCode()

If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result. However, it is not required that if two objects are unequal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce distinct integer results.

This method should be overriden, when the equals(Object) method is overriden.

Overrides:
hashCode in class Object
Returns:
A hash code value for this Object.
See Also:
Object.hashCode(), Object.equals(Object)


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