org.ontoware.rdf2go.model.impl
Class StatementImpl
java.lang.Object
org.ontoware.rdf2go.model.impl.AbstractStatement
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
| 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 |
subject
protected Resource subject
predicate
protected URI predicate
StatementImpl
public StatementImpl(URI context,
Resource subject,
URI predicate,
Node object)
- builds a new statement
- Parameters:
subject - The subject of this statementpredicate - The proerty of this statementobject - The object of this statement
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.