com.clarkparsia.pellet.rules.builtins
Class ComparisonTesters

java.lang.Object
  extended by com.clarkparsia.pellet.rules.builtins.ComparisonTesters

public class ComparisonTesters
extends java.lang.Object

Title: Comparison Testers

Description: Implementations for each of the SWRL comparison tests.

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Ron Alford

Field Summary
static Tester equal
           
static Tester greaterThan
           
static Tester greaterThanOrEqual
           
static Tester lessThan
           
static Tester lessThanOrEqual
           
static Tester notEqual
           
 
Constructor Summary
ComparisonTesters()
           
 
Method Summary
static Literal expectedIfEquals(Literal expected, Literal result)
          If the first argument is null, return the second.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

equal

public static final Tester equal

greaterThan

public static final Tester greaterThan

greaterThanOrEqual

public static final Tester greaterThanOrEqual

lessThan

public static final Tester lessThan

lessThanOrEqual

public static final Tester lessThanOrEqual

notEqual

public static final Tester notEqual
Constructor Detail

ComparisonTesters

public ComparisonTesters()
Method Detail

expectedIfEquals

public static Literal expectedIfEquals(Literal expected,
                                       Literal result)
If the first argument is null, return the second. Else, return the literal if its value equals the string. Otherwise return null.



Copyright © 2004 Evren Sirin. All Rights Reserved.