org.openrdf.model.impl
Class ContextStatementImpl

java.lang.Object
  extended by org.openrdf.model.impl.StatementImpl
      extended by org.openrdf.model.impl.ContextStatementImpl
All Implemented Interfaces:
Serializable, Statement
Direct Known Subclasses:
MemStatement, RdbmsStatement

public class ContextStatementImpl
extends StatementImpl

An extension of StatementImpl that adds a context field.

See Also:
Serialized Form

Constructor Summary
ContextStatementImpl(Resource subject, URI predicate, Value object, Resource context)
          Creates a new Statement with the supplied subject, predicate and object for the specified associated context.
 
Method Summary
 Resource getContext()
          Gets the context of this statement.
 String toString()
          Gives a String-representation of this Statement that can be used for debugging.
 
Methods inherited from class org.openrdf.model.impl.StatementImpl
equals, getObject, getPredicate, getSubject, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextStatementImpl

public ContextStatementImpl(Resource subject,
                            URI predicate,
                            Value object,
                            Resource context)
Creates a new Statement with the supplied subject, predicate and object for the specified associated context.

Parameters:
subject - The statement's subject, must not be null.
predicate - The statement's predicate, must not be null.
object - The statement's object, must not be null.
context - The statement's context, null to indicate no context is associated.
Method Detail

getContext

public Resource getContext()
Description copied from interface: Statement
Gets the context of this statement.

Specified by:
getContext in interface Statement
Overrides:
getContext in class StatementImpl
Returns:
The statement's context, or null in case of the null context or if not applicable.

toString

public String toString()
Description copied from class: StatementImpl
Gives a String-representation of this Statement that can be used for debugging.

Overrides:
toString in class StatementImpl


Copyright © 2001-2008 Aduna. All Rights Reserved.