public class NodeSetConstraintBuilder extends Object implements NodeSetFilter
Expression that expresses restrictions
on a set of nodes.
Used for expressing the constraints on a variable that is
shared between node relations.| Constructor and Description |
|---|
NodeSetConstraintBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Expression |
constraint() |
boolean |
isEmpty() |
boolean |
isUnsupported() |
void |
limitTo(Node node)
Limits this node set to one particular node.
|
void |
limitToBlankNodes()
Limits this node set to blank nodes.
|
void |
limitToEmptySet()
Limits the node set to the empty set.
|
void |
limitToLiterals(String language,
RDFDatatype datatype)
Limits this node set to literals having a particular language
tag and datatype.
|
void |
limitToURIs()
Limits this node set to URI nodes.
|
void |
limitValues(String constant)
Limits this node set to the node that has a particular
constant value.
|
void |
limitValuesToAttribute(Attribute attribute)
Limits this node set to those whose value matches a value in a
particular database table column.
|
void |
limitValuesToBlankNodeID(BlankNodeID id)
Limits this node set to nodes whose value matches the values
produced by a blank node ID.
|
void |
limitValuesToExpression(Expression expression)
Limits this node set to nodes whose value matches the given
SQL expression.
|
void |
limitValuesToPattern(Pattern pattern)
Limits this node set to nodes whose value matches the values
produced by a pattern.
|
void |
setUsesTranslator(Translator translator)
Registers the use of a translator to create values in this node set.
|
public void limitToEmptySet()
NodeSetFilterlimitToEmptySet in interface NodeSetFilterpublic void limitToURIs()
NodeSetFilterlimitToURIs in interface NodeSetFilterpublic void limitToBlankNodes()
NodeSetFilterlimitToBlankNodes in interface NodeSetFilterpublic void limitToLiterals(String language, RDFDatatype datatype)
NodeSetFilterlimitToLiterals in interface NodeSetFilterlanguage - The language tag of all nodes in the set, or null
for plain or datatype literalsdatatype - The datatype of all nodes in the set, or null
for plain literalspublic void limitTo(Node node)
NodeSetFilterlimitTo in interface NodeSetFilternode - A fixed singleton nodepublic void limitValues(String constant)
NodeSetFilterlimitValues in interface NodeSetFilterconstant - The value of the node in this setpublic void limitValuesToAttribute(Attribute attribute)
NodeSetFilterlimitValuesToAttribute in interface NodeSetFilterattribute - The attribute containing possible valuespublic void limitValuesToBlankNodeID(BlankNodeID id)
NodeSetFilterlimitValuesToBlankNodeID in interface NodeSetFilterid - The blank node ID producing possible valuespublic void limitValuesToPattern(Pattern pattern)
NodeSetFilterlimitValuesToPattern in interface NodeSetFilterpattern - The pattern producing possible valuespublic void limitValuesToExpression(Expression expression)
NodeSetFilterlimitValuesToExpression in interface NodeSetFilterexpression - The SQL expression that generates possible valuespublic void setUsesTranslator(Translator translator)
NodeSetFiltersetUsesTranslator in interface NodeSetFiltertranslator - A translator used to create values in this node setpublic boolean isEmpty()
public Expression constraint()
public boolean isUnsupported()