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()
NodeSetFilter
limitToEmptySet
in interface NodeSetFilter
public void limitToURIs()
NodeSetFilter
limitToURIs
in interface NodeSetFilter
public void limitToBlankNodes()
NodeSetFilter
limitToBlankNodes
in interface NodeSetFilter
public void limitToLiterals(String language, RDFDatatype datatype)
NodeSetFilter
limitToLiterals
in interface NodeSetFilter
language
- 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)
NodeSetFilter
limitTo
in interface NodeSetFilter
node
- A fixed singleton nodepublic void limitValues(String constant)
NodeSetFilter
limitValues
in interface NodeSetFilter
constant
- The value of the node in this setpublic void limitValuesToAttribute(Attribute attribute)
NodeSetFilter
limitValuesToAttribute
in interface NodeSetFilter
attribute
- The attribute containing possible valuespublic void limitValuesToBlankNodeID(BlankNodeID id)
NodeSetFilter
limitValuesToBlankNodeID
in interface NodeSetFilter
id
- The blank node ID producing possible valuespublic void limitValuesToPattern(Pattern pattern)
NodeSetFilter
limitValuesToPattern
in interface NodeSetFilter
pattern
- The pattern producing possible valuespublic void limitValuesToExpression(Expression expression)
NodeSetFilter
limitValuesToExpression
in interface NodeSetFilter
expression
- The SQL expression that generates possible valuespublic void setUsesTranslator(Translator translator)
NodeSetFilter
setUsesTranslator
in interface NodeSetFilter
translator
- A translator used to create values in this node setpublic boolean isEmpty()
public Expression constraint()
public boolean isUnsupported()