public class ContextStatementImpl extends StatementImpl
StatementImpl
that adds a context field.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Resource |
getContext()
Gets the context of this statement.
|
String |
toString()
Gives a String-representation of this Statement that can be used for
debugging.
|
equals, getObject, getPredicate, getSubject, hashCode
public ContextStatementImpl(Resource subject, URI 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()
Statement
getContext
in interface Statement
getContext
in class StatementImpl
public String toString()
StatementImpl
toString
in class StatementImpl
Copyright © 2001-2016 Aduna. All Rights Reserved.