uk.ac.bbk.dcs.automed.qproc.functions.xml
Class GenerateElemUID

java.lang.Object
  extended by uk.ac.bbk.dcs.automed.qproc.functions.xml.GenerateElemUID
All Implemented Interfaces:
BuiltInFunction

public class GenerateElemUID
extends java.lang.Object
implements BuiltInFunction

Function that produces element UIDs based on the two arguments passed to the function. The first argument is an ASG representing a list; the function will create as many element UIDs as the size of the list. The second argument is a scheme string representing an attribute, which will serve as the prototype for the element UIDs: the UIDs produced by the function will be based on the name of the attribute

Author:
Lucas Zamboulis

Constructor Summary
GenerateElemUID()
           
 
Method Summary
 int getArity()
          Returns the arity of the function.
 Cell perform(Cell[] args, Evaluator e)
          Returns a Cell object that is the root of a graph that represents the result of applying the built-in function to the arguments args.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateElemUID

public GenerateElemUID()
Method Detail

getArity

public int getArity()
Description copied from interface: BuiltInFunction
Returns the arity of the function.

Specified by:
getArity in interface BuiltInFunction

perform

public Cell perform(Cell[] args,
                    Evaluator e)
Description copied from interface: BuiltInFunction
Returns a Cell object that is the root of a graph that represents the result of applying the built-in function to the arguments args. Uses the Evaluator e to evaluate any sub-queries that need to be evaluated.

Specified by:
perform in interface BuiltInFunction