org.openanzo.glitter.expression.builtin
Class RegEx

java.lang.Object
  extended by org.openanzo.glitter.expression.FunctionBase
      extended by org.openanzo.glitter.expression.builtin.RegEx
All Implemented Interfaces:
Function, FunctionOnValues

public class RegEx
extends FunctionBase
implements FunctionOnValues

Implements the SPARQL regex function.

Author:
lee

Nested Class Summary
 class RegEx.InvalidRegularExpressionFlagException
          Thrown for an unrecognized regular expression flag.
 
Constructor Summary
RegEx()
           
 
Method Summary
 RDFTerm call(java.util.List<RDFTerm> arguments)
          Invokes the function and determines a return value.
 java.net.URI getIdentifier()
           
 
Methods inherited from class org.openanzo.glitter.expression.FunctionBase
compareBooleans, compareBooleans, compareDateTimes, compareNumerics, compareStringLiterals, operatesOnTypeErrors, operatesOnValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openanzo.glitter.expression.Function
operatesOnTypeErrors, operatesOnValues
 

Constructor Detail

RegEx

public RegEx()
Method Detail

call

public RDFTerm call(java.util.List<RDFTerm> arguments)
             throws ExpressionEvaluationException
Description copied from interface: FunctionOnValues
Invokes the function and determines a return value.

Specified by:
call in interface FunctionOnValues
Parameters:
arguments - The (evaluated) RDF terms being passed to the function
Returns:
The result of evaluating this function against the given arguments
Throws:
ExpressionEvaluationException - For invalid types, or other expression evalutaion problems

getIdentifier

public java.net.URI getIdentifier()
Specified by:
getIdentifier in interface Function
Returns:
The identifier for this function


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.