org.deri.iris.builtins.datatype
Class IsDatatypeBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.BooleanBuiltin
org.deri.iris.builtins.datatype.IsDatatypeBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
public class IsDatatypeBuiltin
- extends BooleanBuiltin
Represents the RIF built-in isLiteralOfType as defined in
http://www.w3.org/2005/rules/wiki/DTB#pred:isLiteralOfType.
|
Method Summary |
protected boolean |
computeResult(ITerm[] terms)
Compute the result of the comparison. |
IsDatatypeBuiltin
public IsDatatypeBuiltin(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
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.