public abstract class IlrConstraintValueChecker extends java.lang.Object implements IlrValueChecker
| Constructor and Description |
|---|
IlrConstraintValueChecker() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
accept(java.lang.Object ref,
java.lang.Object value)
Accepts or rejects the value found in
the referenced role.
|
boolean |
check(java.lang.Object value,
IlrSyntaxTree.Node node,
IlrValueError valueError)
Checks if the given value is acceptable in the given branch of the Abstract Syntax Tree.
|
public boolean check(java.lang.Object value,
IlrSyntaxTree.Node node,
IlrValueError valueError)
IlrValueCheckercheck in interface IlrValueCheckervalue - The value which can be a literal or a Concept Instance.node - The parent node under which the value is added .valueError - The error that can be filled to parameterize the error message.
That parameter can be null when no error message is reported.true if the given value is accepted, and false otherwise.protected abstract boolean accept(java.lang.Object ref,
java.lang.Object value)
ref - The referenced value associated to the referenced placeholder role in the Abstract Syntax Tree. This reference is not null.value - The actual value being checked.true to accept the value, false to reject it.© Copyright IBM Corp. 1987, 2017