public class DetermineNodeType extends Object implements NodeSetFilter
Constructor and Description |
---|
DetermineNodeType() |
Modifier and Type | Method and Description |
---|---|
RDFDatatype |
getDatatype() |
String |
getLanguage() |
boolean |
isLimittedToBlankNodes() |
boolean |
isLimittedToLiterals() |
boolean |
isLimittedToURIs() |
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 boolean isLimittedToURIs()
public RDFDatatype getDatatype()
public String getLanguage()
public boolean isLimittedToBlankNodes()
public boolean isLimittedToLiterals()
public void limitTo(Node node)
NodeSetFilter
limitTo
in interface NodeSetFilter
node
- A fixed singleton nodepublic void limitToBlankNodes()
NodeSetFilter
limitToBlankNodes
in interface NodeSetFilter
public void limitToEmptySet()
NodeSetFilter
limitToEmptySet
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 limitToURIs()
NodeSetFilter
limitToURIs
in interface NodeSetFilter
public 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 limitValuesToExpression(Expression expression)
NodeSetFilter
limitValuesToExpression
in interface NodeSetFilter
expression
- The SQL expression that generates possible valuespublic void limitValuesToPattern(Pattern pattern)
NodeSetFilter
limitValuesToPattern
in interface NodeSetFilter
pattern
- The pattern producing possible valuespublic void setUsesTranslator(Translator translator)
NodeSetFilter
setUsesTranslator
in interface NodeSetFilter
translator
- A translator used to create values in this node set