org.deri.iris.builtins.datatype
Class IsNotDatatypeBuiltin

java.lang.Object
  extended by org.deri.iris.builtins.AbstractBuiltin
      extended by org.deri.iris.builtins.BooleanBuiltin
          extended by org.deri.iris.builtins.datatype.IsNotDatatypeBuiltin
All Implemented Interfaces:
Comparable<IAtom>, IAtom, IBuiltinAtom

public class IsNotDatatypeBuiltin
extends BooleanBuiltin

Represents a isLiteralOfType predicate as defined in http://www.w3.org/2005/rules/wiki/DTB#pred:isLiteralNotOfType.


Field Summary
 
Fields inherited from class org.deri.iris.builtins.AbstractBuiltin
EMPTY_TERM
 
Constructor Summary
IsNotDatatypeBuiltin(ITerm... terms)
          Constructor.
 
Method Summary
protected  boolean computeResult(ITerm[] terms)
          Compute the result of the comparison.
 
Methods inherited from class org.deri.iris.builtins.BooleanBuiltin
evaluateTerms
 
Methods inherited from class org.deri.iris.builtins.AbstractBuiltin
compareTo, equals, evaluate, getPredicate, getTuple, hashCode, isBuiltin, isGround, maxUnknownVariables, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsNotDatatypeBuiltin

public IsNotDatatypeBuiltin(ITerm... terms)
Constructor. At least two terms must be passed to the constructor, otherwise an exception will be thrown.

Parameters:
terms - The terms
Throws:
IllegalArgumentException - if one of the terms is null
IllegalArgumentException - if the number of terms submitted is not 1
IllegalArgumentException - if t is null
Method Detail

computeResult

protected boolean computeResult(ITerm[] terms)
Description copied from class: BooleanBuiltin
Compute the result of the comparison.

Specified by:
computeResult in class BooleanBuiltin
Parameters:
terms - The terms
Returns:
The result of the comparison.