public class ContextStatement extends SimpleStatement
SimpleStatement that adds a context field.| Modifier | Constructor and Description |
|---|---|
protected |
ContextStatement(Resource subject,
IRI predicate,
Value object,
Resource context)
Creates a new Statement with the supplied subject, predicate and object for the specified associated context.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
getContext()
Gets the context of this statement.
|
String |
toString() |
getObject, getPredicate, getSubjectequals, hashCodeprotected ContextStatement(Resource subject, IRI predicate, Value object, Resource context)
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.public Resource getContext()
StatementgetContext in interface StatementgetContext in class SimpleStatementpublic String toString()
toString in class AbstractStatementCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.