Package org.eclipse.rdf4j.model.impl
Class LinkedHashModel.ModelStatement
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractStatement
org.eclipse.rdf4j.model.impl.SimpleStatement
org.eclipse.rdf4j.model.impl.ContextStatement
org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelStatement
- All Implemented Interfaces:
Serializable,Statement
- Enclosing class:
- LinkedHashModel
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModelStatement(org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> subj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<IRI> pred, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Value> obj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> ctx) ModelStatement(org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> subj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<IRI> pred, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Value> obj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> ctx, Statement statement) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this statement to another object.Gets the context of this statement.Gets the object of this statement.Gets the predicate of this statement.Gets the subject of this statement.Methods inherited from class org.eclipse.rdf4j.model.impl.ContextStatement
exactSameContext, toStringMethods inherited from class org.eclipse.rdf4j.model.impl.SimpleStatement
exactSameObject, exactSamePredicate, exactSameSubjectMethods inherited from class org.eclipse.rdf4j.model.base.AbstractStatement
hashCode
-
Constructor Details
-
ModelStatement
-
ModelStatement
public ModelStatement(org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> subj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<IRI> pred, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Value> obj, org.eclipse.rdf4j.model.impl.LinkedHashModel.ModelNode<Resource> ctx, Statement statement)
-
-
Method Details
-
getSubject
Description copied from interface:StatementGets the subject of this statement.- Specified by:
getSubjectin interfaceStatement- Overrides:
getSubjectin classSimpleStatement- Returns:
- The statement's subject.
-
getPredicate
Description copied from interface:StatementGets the predicate of this statement.- Specified by:
getPredicatein interfaceStatement- Overrides:
getPredicatein classSimpleStatement- Returns:
- The statement's predicate.
-
getObject
Description copied from interface:StatementGets the object of this statement.- Specified by:
getObjectin interfaceStatement- Overrides:
getObjectin classSimpleStatement- Returns:
- The statement's object.
-
getContext
Description copied from interface:StatementGets the context of this statement.- Specified by:
getContextin interfaceStatement- Overrides:
getContextin classContextStatement- Returns:
- The statement's context, or null in case of the null context or if not applicable.
-
equals
Description copied from interface:StatementCompares this statement to another object.- Specified by:
equalsin interfaceStatement- Overrides:
equalsin classAbstractStatement- Parameters:
other- the object to compare this statement to- Returns:
trueif the other object is an instance ofStatementand if their subjects, predicates, objects and contexts are equal;falseotherwise
-
getStatement
-