public class Restriction
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Restriction.Kind |
| Constructor and Description |
|---|
Restriction(Restriction.Kind kind)
Constructs a new restriction object of the given kind.
|
| Modifier and Type | Method and Description |
|---|---|
Restriction.Kind |
getKind() |
Restriction |
negate()
Returns the negated restriction, or null if not supported.
|
Value |
restrict(Value v)
Restricts the value according to this restriction.
|
Restriction |
set(Value v)
Sets the value (only for
Restriction.Kind.STRICT_EQUAL, Restriction.Kind.STRICT_NOT_EQUAL Restriction.Kind.LOOSE_EQUAL, and Restriction.Kind.LOOSE_NOT_EQUAL). |
static Restriction |
typeofToRestriction(java.lang.String s) |
public Restriction(Restriction.Kind kind)
public Restriction.Kind getKind()
public Restriction negate()
public Restriction set(Value v)
Restriction.Kind.STRICT_EQUAL, Restriction.Kind.STRICT_NOT_EQUAL Restriction.Kind.LOOSE_EQUAL, and Restriction.Kind.LOOSE_NOT_EQUAL).public static Restriction typeofToRestriction(java.lang.String s)
Copyright © 2009-2019 Aarhus University