at.newmedialab.ldpath.model.functions
Class CssSelectFunction<KiWiNode>

java.lang.Object
  extended by at.newmedialab.ldpath.model.functions.CssSelectFunction<KiWiNode>
All Implemented Interfaces:
NodeFunction<Collection<KiWiNode>,KiWiNode>, SelectorFunction<KiWiNode>, LDPathConstruct<KiWiNode>

public class CssSelectFunction<KiWiNode>
extends Object
implements SelectorFunction<KiWiNode>


Constructor Summary
CssSelectFunction()
           
 
Method Summary
 Collection<KiWiNode> apply(RDFBackend<KiWiNode> rdfBackend, KiWiNode context, Collection<KiWiNode>... args)
          Apply the function to the list of nodes passed as arguments and return the result as type T.
 String getDescription()
          A short human-readable description of what the node function does.
 String getPathExpression(RDFBackend<KiWiNode> backend)
          Return the name of the NodeFunction for registration in the function registry
 String getSignature()
          A string describing the signature of this node function, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssSelectFunction

public CssSelectFunction()
Method Detail

apply

public Collection<KiWiNode> apply(RDFBackend<KiWiNode> rdfBackend,
                                  KiWiNode context,
                                  Collection<KiWiNode>... args)
                           throws IllegalArgumentException
Apply the function to the list of nodes passed as arguments and return the result as type T. Throws IllegalArgumentException if the function cannot be applied to the nodes passed as argument or the number of arguments is not correct.

Specified by:
apply in interface NodeFunction<Collection<KiWiNode>,KiWiNode>
Parameters:
args - a nested list of KiWiNodes
Returns:
Throws:
IllegalArgumentException

getPathExpression

public String getPathExpression(RDFBackend<KiWiNode> backend)
Return the name of the NodeFunction for registration in the function registry

Specified by:
getPathExpression in interface LDPathConstruct<KiWiNode>
Parameters:
backend -
Returns:

getSignature

public String getSignature()
A string describing the signature of this node function, e.g. "fn:content(uris : Nodes) : Nodes". The syntax for representing the signature can be chosen by the implementer. This method is for informational purposes only.

Specified by:
getSignature in interface NodeFunction<Collection<KiWiNode>,KiWiNode>
Returns:

getDescription

public String getDescription()
A short human-readable description of what the node function does.

Specified by:
getDescription in interface NodeFunction<Collection<KiWiNode>,KiWiNode>
Returns:


Copyright © 2012 Salzburg Research. All Rights Reserved.