Package org.eclipse.rdf4j.model.impl
Class ContextStatement
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractStatement
-
- org.eclipse.rdf4j.model.impl.SimpleStatement
-
- org.eclipse.rdf4j.model.impl.ContextStatement
-
- All Implemented Interfaces:
java.io.Serializable,Statement
- Direct Known Subclasses:
LinkedHashModel.ModelStatement,TreeModel.TreeStatement
@Deprecated(since="4.1.0", forRemoval=true) public class ContextStatement extends SimpleStatementDeprecated, for removal: This API element is subject to removal in a future version.UseinsteadAn extension ofSimpleStatementthat adds a context field.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ResourcecontextDeprecated, for removal: This API element is subject to removal in a future version.The statement's context, if applicable.private static longserialVersionUIDDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
Constructors Modifier Constructor Description protectedContextStatement(Resource subject, IRI predicate, Value object, Resource context)Deprecated, for removal: This API element is subject to removal in a future version.Creates a new Statement with the supplied subject, predicate and object for the specified associated context.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanexactSameContext(Resource context)Deprecated, for removal: This API element is subject to removal in a future version.ResourcegetContext()Deprecated, for removal: This API element is subject to removal in a future version.Gets the context of this statement.java.lang.StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class org.eclipse.rdf4j.model.impl.SimpleStatement
exactSameObject, exactSamePredicate, exactSameSubject, getObject, getPredicate, getSubject
-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractStatement
equals, hashCode
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
context
private final Resource context
Deprecated, for removal: This API element is subject to removal in a future version.The statement's context, if applicable.
-
-
Constructor Detail
-
ContextStatement
protected ContextStatement(Resource subject, IRI predicate, Value object, Resource context)
Deprecated, for removal: This API element is subject to removal in a future version.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()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:StatementGets the context of this statement.- Specified by:
getContextin interfaceStatement- Overrides:
getContextin classSimpleStatement- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
exactSameContext
public boolean exactSameContext(Resource context)
Deprecated, for removal: This API element is subject to removal in a future version.
-
toString
public java.lang.String toString()
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toStringin classAbstractStatement
-
-