public abstract class AbstractStringTest<Node> extends TestFunction<Node>
TestFunction
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractStringTest.ToStringFunction
A function for the guava-library to convert a node into a string based on
the backend provided in the constructor.
|
Modifier and Type | Field and Description |
---|---|
protected StringTransformer<Node> |
transformer |
Constructor and Description |
---|
AbstractStringTest() |
Modifier and Type | Method and Description |
---|---|
Boolean |
apply(RDFBackend<Node> backend,
Node context,
Collection<Node>... args)
Apply the function to the list of nodes passed as arguments and return the result as type T.
|
protected abstract int |
getArgCount()
Number of (required) arguments this function accepts.
|
String |
getSignature()
The signature of this functions (how to use it)
|
protected abstract boolean |
test(AbstractStringTest.ToStringFunction toStringFunction,
Collection<Node>... args) |
getLocalName, getPathExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
protected final StringTransformer<Node> transformer
public Boolean apply(RDFBackend<Node> backend, Node context, Collection<Node>... args) throws IllegalArgumentException
NodeFunction
context
- the context of the execution. Same as using the
NodeSelector
'.' as parameter.args
- a nested list of KiWiNodesIllegalArgumentException
protected abstract boolean test(AbstractStringTest.ToStringFunction toStringFunction, Collection<Node>... args)
toStringFunction
- args
- public String getSignature()
protected abstract int getArgCount()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.