org.ontoware.rdf2go.model.impl
Class StatementImpl

java.lang.Object
  extended by org.ontoware.rdf2go.model.impl.AbstractStatement
      extended by org.ontoware.rdf2go.model.impl.StatementImpl
All Implemented Interfaces:
java.lang.Comparable<Statement>, Statement, TriplePattern

public class StatementImpl
extends AbstractStatement
implements Statement

StatementImpl is an implementation of Statement, so there are all necessary constructors, and methods for getting the type and the parts of the statement

Author:
mvo

Field Summary
protected  URI predicate
           
protected  Resource subject
           
 
Constructor Summary
StatementImpl(URI context, Resource subject, URI predicate, Node object)
          builds a new statement
 
Method Summary
 boolean equals(java.lang.Object other)
           
 URI getContext()
           
 Node getObject()
           
 URI getPredicate()
           
 Resource getSubject()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.ontoware.rdf2go.model.impl.AbstractStatement
compareTo, dump, matches
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ontoware.rdf2go.model.Statement
dump
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.ontoware.rdf2go.model.TriplePattern
matches
 

Field Detail

subject

protected Resource subject

predicate

protected URI predicate
Constructor Detail

StatementImpl

public StatementImpl(URI context,
                     Resource subject,
                     URI predicate,
                     Node object)
builds a new statement

Parameters:
subject - The subject of this statement
predicate - The proerty of this statement
object - The object of this statement
Method Detail

getSubject

public Resource getSubject()
Specified by:
getSubject in interface Statement
Specified by:
getSubject in interface TriplePattern

getPredicate

public URI getPredicate()
Specified by:
getPredicate in interface Statement
Specified by:
getPredicate in interface TriplePattern

getObject

public Node getObject()
Specified by:
getObject in interface Statement
Specified by:
getObject in interface TriplePattern

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getContext

public URI getContext()
Specified by:
getContext in interface Statement

hashCode

public int hashCode()
Specified by:
hashCode in interface Statement
Overrides:
hashCode in class AbstractStatement

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface Statement
Overrides:
equals in class AbstractStatement


Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.