Package org.eclipse.rdf4j.sail.helpers
Class AbstractSailConnection.WildStatement
- java.lang.Object
-
- org.eclipse.rdf4j.sail.helpers.AbstractSailConnection.WildStatement
-
- All Implemented Interfaces:
java.io.Serializable
,Statement
- Enclosing class:
- AbstractSailConnection
private static class AbstractSailConnection.WildStatement extends java.lang.Object implements Statement
Statement pattern that uses null values as wild cards.
-
-
Field Summary
Fields Modifier and Type Field Description private Resource
context
The statement's context, if applicable.private Value
object
The statement's object.private IRI
predicate
The statement's predicate.private static long
serialVersionUID
private Resource
subject
The statement's subject.
-
Constructor Summary
Constructors Constructor Description WildStatement(Resource subject, IRI predicate, Value object)
Creates a new Statement with the supplied subject, predicate and object.WildStatement(Resource subject, IRI predicate, Value object, Resource context)
Creates a new Statement with the supplied subject, predicate and object for the specified associated context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource
getContext()
Gets the context of this statement.Value
getObject()
Gets the object of this statement.IRI
getPredicate()
Gets the predicate of this statement.Resource
getSubject()
Gets the subject of this statement.java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
subject
private final Resource subject
The statement's subject.
-
predicate
private final IRI predicate
The statement's predicate.
-
object
private final Value object
The statement's object.
-
context
private final Resource context
The statement's context, if applicable.
-
-
Constructor Detail
-
WildStatement
public WildStatement(Resource subject, IRI predicate, Value object)
Creates a new Statement with the supplied subject, predicate and object.- Parameters:
subject
- The statement's subject, may be null.predicate
- The statement's predicate, may be null.object
- The statement's object, may be null.
-
WildStatement
public WildStatement(Resource subject, IRI 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, may be null.predicate
- The statement's predicate, may be null.object
- The statement's object, may be null.context
- The statement's context, null to indicate no context is associated.
-
-
Method Detail
-
getSubject
public Resource getSubject()
Description copied from interface:Statement
Gets the subject of this statement.- Specified by:
getSubject
in interfaceStatement
- Returns:
- The statement's subject.
-
getPredicate
public IRI getPredicate()
Description copied from interface:Statement
Gets the predicate of this statement.- Specified by:
getPredicate
in interfaceStatement
- Returns:
- The statement's predicate.
-
getObject
public Value getObject()
Description copied from interface:Statement
Gets the object of this statement.
-
getContext
public Resource getContext()
Description copied from interface:Statement
Gets the context of this statement.- Specified by:
getContext
in interfaceStatement
- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-