OBSOLETE: use SimpleSelector. This implementation is a stub that provides only constructors.
An instance of this class is passed with query calls to models. The model
will use the test
method of this class to decide whether
a statement should be included in the selection.
Instances of this class can be provided with subject, predicate and object constraints. If a subject, a predicate or an object are provided, the model implementation may restrict the statements that it tests to statements whose subject, predicate and object match those provided in the constructor. This can provide for considerably more efficient searching. However, the model implementation is not required to do this. If no subject, predicate or object are provided in the constructor, then all statements in the model must be tested.
This class is designed to be subclassed by the application, defining
defining further selection criteria of its own by providing its own
selects
method.
The test
method first verifies that a statement satisfies
any subject, predicate or object constraints and the calls the
selects
method to test for any application supplied constraint. The
default selects
method simply returns true.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, boolean object) Deprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, char object) Deprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, double object) Deprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, float object) Deprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, long object) Deprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, Object object) Deprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, String object) Deprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, String object, String language) Deprecated.Create a selector.SelectorImpl
(Resource subject, Property predicate, RDFNode object) Deprecated.Create a selector. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSimple()
Deprecated.Answer true to the question "is this a simple selector".Methods inherited from class org.apache.jena.rdf.model.SimpleSelector
getObject, getPredicate, getSubject, selects, test
-
Constructor Details
-
SelectorImpl
public SelectorImpl()Deprecated.Create a selector. Since no subject, predicate or object constraints are specified a model will test all statements. -
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object parameter. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- if not null, the object of selected statements must equal this argument.
-
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object parameter. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- if not null, the object of selected statements must equal this argument.
-
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object parameter. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- the object of selected statements must equal this argument.
-
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object parameter. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- the object of selected statements must equal this argument.
-
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object parameter. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- the object of selected statements must equal this argument.
-
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object parameter. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- the object of selected statements must equal this argument.
-
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object parameter. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- the object of selected statements must equal this argument - a null string matches the empty string
-
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object parameter. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- the object of selected statements must equal this argument - the null string matches the empty stringlanguage
- the language of the object constraint
-
SelectorImpl
Deprecated.Create a selector. A model may restrict statements that are tested using theselects
method to those whose subject matches the subject parameter, whose predicate matches the predicate parameter and whose object matches the object paramater. Any null parameter is considered to match anything.- Parameters:
subject
- if not null, the subject of selected statements must equal this argument.predicate
- if not null, the predicate of selected statements must equal this argument.object
- if not null, the object of selected statements must equal this argument.
-
-
Method Details
-
isSimple
public boolean isSimple()Deprecated.Answer true to the question "is this a simple selector". Otherwise the default for SimpleSelector subclasses, false, would apply.- Specified by:
isSimple
in interfaceSelector
- Overrides:
isSimple
in classSimpleSelector
- Returns:
- true iff this selector only depends on S/P/O identity.
-
Predicate<Statement>