|
Protégé-OWL 3.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.swrl.bridge.builtins.SWRLBuiltInUtil
public class SWRLBuiltInUtil
Class containing argument processing utility methods that can be used in built-in method implementations.
Constructor Summary | |
---|---|
SWRLBuiltInUtil()
|
Method Summary | |
---|---|
static boolean |
areAllArgumentLiterals(List<Argument> arguments)
|
static boolean |
areAllArgumentsBooleans(List<Argument> arguments)
|
static boolean |
areAllArgumentsDoubles(List<Argument> arguments)
|
static boolean |
areAllArgumentsFloats(List<Argument> arguments)
|
static boolean |
areAllArgumentsIntegers(List<Argument> arguments)
|
static boolean |
areAllArgumentsLongs(List<Argument> arguments)
|
static boolean |
areAllArgumentsNumeric(List<Argument> arguments)
|
static boolean |
areAllArgumentsOfAnOrderedType(List<Argument> arguments)
|
static boolean |
areAllArgumentsShorts(List<Argument> arguments)
|
static boolean |
areAllArgumentsStrings(List<Argument> arguments)
|
static void |
checkArgumentNumber(int argumentNumber,
List<Argument> arguments)
|
static void |
checkForUnboundArguments(List<Argument> arguments)
|
static void |
checkForUnboundNonFirstArguments(List<Argument> arguments)
|
static void |
checkNumberOfArgumentsAtLeast(int expectingAtLeast,
int actual)
|
static void |
checkNumberOfArgumentsAtMost(int expectingAtMost,
int actual)
|
static void |
checkNumberOfArgumentsEqualTo(int expecting,
int actual)
|
static void |
checkNumberOfArgumentsInRange(int expectingAtLeast,
int expectingAtMost,
int actual)
|
static void |
checkThatAllArgumentsAreBound(List<Argument> arguments)
|
static void |
checkThatAllArgumentsAreFloats(List<Argument> arguments)
|
static void |
checkThatAllArgumentsAreIntegers(List<Argument> arguments)
|
static void |
checkThatAllArgumentsAreLiterals(List<Argument> arguments)
|
static void |
checkThatAllArgumentsAreNumeric(List<Argument> arguments)
|
static void |
checkThatAllArgumentsAreOfAnOrderedType(List<Argument> arguments)
|
static void |
checkThatAllArgumentsAreStrings(List<Argument> arguments)
|
static void |
checkThatArgumentIsABoolean(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsAClass(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsAClassPropertyOrIndividual(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsADouble(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsAFloat(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsALiteral(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsALong(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsAnIndividual(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsAnInteger(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsAProperty(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsAString(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsBound(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsNonNumeric(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsNumeric(int argumentNumber,
List<Argument> arguments)
|
static void |
checkThatArgumentIsOfAnOrderedType(int argumentNumber,
List<Argument> arguments)
|
static String |
createInvocationPattern(SWRLRuleEngineBridge invokingBridge,
String invokingRuleName,
int invokingBuiltInIndex,
List<Argument> arguments)
Create a string that represents a unique invocation pattern for a built-in for a bridge/rule/built-in/argument combination. |
static BigDecimal |
getArgumentAsABigDecimal(int argumentNumber,
List<Argument> arguments)
|
static BigInteger |
getArgumentAsABigInteger(int argumentNumber,
List<Argument> arguments)
|
static boolean |
getArgumentAsABoolean(int argumentNumber,
List<Argument> arguments)
|
static String |
getArgumentAsAClassName(int argumentNumber,
List<Argument> arguments)
|
static double |
getArgumentAsADouble(int argumentNumber,
List<Argument> arguments)
|
static float |
getArgumentAsAFloat(int argumentNumber,
List<Argument> arguments)
|
static LiteralInfo |
getArgumentAsALiteral(int argumentNumber,
List<Argument> arguments)
|
static long |
getArgumentAsALong(int argumentNumber,
List<Argument> arguments)
|
static String |
getArgumentAsAnIndividualName(int argumentNumber,
List<Argument> arguments)
|
static int |
getArgumentAsAnInteger(int argumentNumber,
List<Argument> arguments)
|
static String |
getArgumentAsAPropertyName(int argumentNumber,
List<Argument> arguments)
|
static Object |
getArgumentAsAPropertyValue(int argumentNumber,
List<Argument> arguments)
Take an bound Argument object with types ClassArgument, PropertyArgument, IndividualArgument, or LiteralArgument and return it as a property value representation. |
static String |
getArgumentAsAResourceName(int argumentNumber,
List<Argument> arguments)
|
static int |
getArgumentAsAShort(int argumentNumber,
List<Argument> arguments)
|
static String |
getArgumentAsAString(int argumentNumber,
List<Argument> arguments)
|
static int |
getFirstUnboundArgument(List<Argument> arguments)
Get 0-offset position of first unbound argument; return -1 if no unbound arguments are found. |
static boolean |
hasUnboundArguments(List<Argument> arguments)
|
static boolean |
isArgumentABoolean(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentAClass(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentAClassPropertyOrIndividual(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentADouble(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentAFloat(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentALiteral(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentALong(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentAnIndividual(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentAnInteger(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentAProperty(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentAShort(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentAString(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentNonNumeric(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentNumeric(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isArgumentOfAnOrderedType(int argumentNumber,
List<Argument> arguments)
|
static boolean |
isFloatMostPreciseArgument(List<Argument> arguments)
|
static boolean |
isIntegerMostPreciseArgument(List<Argument> arguments)
|
static boolean |
isLongMostPreciseArgument(List<Argument> arguments)
|
static boolean |
isShortMostPreciseArgument(List<Argument> arguments)
|
static boolean |
isUnboundArgument(int argumentNumber,
List<Argument> arguments)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SWRLBuiltInUtil()
Method Detail |
---|
public static void checkNumberOfArgumentsEqualTo(int expecting, int actual) throws InvalidBuiltInArgumentNumberException
InvalidBuiltInArgumentNumberException
public static void checkNumberOfArgumentsAtLeast(int expectingAtLeast, int actual) throws InvalidBuiltInArgumentNumberException
InvalidBuiltInArgumentNumberException
public static void checkNumberOfArgumentsAtMost(int expectingAtMost, int actual) throws InvalidBuiltInArgumentNumberException
InvalidBuiltInArgumentNumberException
public static void checkNumberOfArgumentsInRange(int expectingAtLeast, int expectingAtMost, int actual) throws InvalidBuiltInArgumentNumberException
InvalidBuiltInArgumentNumberException
public static void checkThatAllArgumentsAreLiterals(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatAllArgumentsAreNumeric(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatAllArgumentsAreIntegers(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsShorts(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsIntegers(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsLongs(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsFloats(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsDoubles(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isShortMostPreciseArgument(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isIntegerMostPreciseArgument(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isFloatMostPreciseArgument(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isLongMostPreciseArgument(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsBooleans(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentLiterals(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsNumeric(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsStrings(List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean areAllArgumentsOfAnOrderedType(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatAllArgumentsAreFloats(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatAllArgumentsAreStrings(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatAllArgumentsAreOfAnOrderedType(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsALiteral(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsNumeric(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsOfAnOrderedType(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentOfAnOrderedType(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentAnIndividual(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsAnIndividual(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static String getArgumentAsAnIndividualName(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static String getArgumentAsAClassName(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static String getArgumentAsAResourceName(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static String getArgumentAsAPropertyName(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkArgumentNumber(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentNumeric(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentNonNumeric(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsNonNumeric(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsAnInteger(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentAnInteger(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static int getArgumentAsAnInteger(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentAShort(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static int getArgumentAsAShort(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static BigDecimal getArgumentAsABigDecimal(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static BigInteger getArgumentAsABigInteger(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentALiteral(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentAProperty(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsAProperty(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsAClassPropertyOrIndividual(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentAClassPropertyOrIndividual(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentAClass(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsAClass(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static LiteralInfo getArgumentAsALiteral(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsALong(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentALong(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static long getArgumentAsALong(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsAFloat(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentAFloat(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static float getArgumentAsAFloat(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsADouble(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentADouble(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static double getArgumentAsADouble(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsABoolean(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentABoolean(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean getArgumentAsABoolean(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsAString(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isArgumentAString(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static String getArgumentAsAString(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean hasUnboundArguments(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatAllArgumentsAreBound(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkThatArgumentIsBound(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static boolean isUnboundArgument(int argumentNumber, List<Argument> arguments)
public static int getFirstUnboundArgument(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkForUnboundArguments(List<Argument> arguments) throws BuiltInException
BuiltInException
public static void checkForUnboundNonFirstArguments(List<Argument> arguments) throws BuiltInException
BuiltInException
public static Object getArgumentAsAPropertyValue(int argumentNumber, List<Argument> arguments) throws BuiltInException
BuiltInException
public static String createInvocationPattern(SWRLRuleEngineBridge invokingBridge, String invokingRuleName, int invokingBuiltInIndex, List<Argument> arguments) throws BuiltInException
BuiltInException
|
Protégé-OWL 3.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |