org.openrdf.model.impl
Class ContextStatementImpl
java.lang.Object
org.openrdf.model.impl.StatementImpl
org.openrdf.model.impl.ContextStatementImpl
- All Implemented Interfaces:
- Serializable, Statement
- Direct Known Subclasses:
- MemStatement
public class ContextStatementImpl
- extends StatementImpl
An extension of StatementImpl that adds a context field.
- See Also:
- Serialized Form
|
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. |
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.
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-2007 Aduna. All Rights Reserved.