|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.policy.predicate.AbstractPredicate<Value<?>>
org.openpermis.policy.predicate.ValueRelationalPredicate
public class ValueRelationalPredicate
A relational predicate.
Nested Class Summary | |
---|---|
static class |
ValueRelationalPredicate.Relation
|
Field Summary |
---|
Fields inherited from interface org.openpermis.policy.Predicate |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
ValueRelationalPredicate(ValueRelationalPredicate.Relation relation,
Value<?> first,
Value<?> second)
Creates a relational predicate. |
Method Summary | |
---|---|
boolean |
comparablePredicate(Predicate predicate)
Compares the type of predicate with this. |
ValueRelationalPredicate.Relation |
getRelation()
Returns the relation of this predicate. |
boolean |
isMatchable(Map<String,Class<?>> arguments)
Try to match the predicate with arguments, without evaluating the predicates but to check that no runtime exception is thrown at runtime. |
boolean |
isValid()
Validates this predicate. |
boolean |
matches(TimeStamp timeStamp,
Map<String,?> arguments)
Try to match the predicate according to time and arguments. |
protected int |
partHashCode()
Returns the hash code of this part. |
Methods inherited from class org.openpermis.policy.predicate.AbstractPredicate |
---|
equals, getOperand, getOperandCount, getOperands, hashCode, isValid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openpermis.policy.Part |
---|
toString |
Constructor Detail |
---|
public ValueRelationalPredicate(ValueRelationalPredicate.Relation relation, Value<?> first, Value<?> second)
relation
- a ValueRelationalPredicate.Relation
.first
- the first comparable Value
.second
- the second comparable Value
.Method Detail |
---|
public ValueRelationalPredicate.Relation getRelation()
public boolean isValid()
Predicate
public boolean matches(TimeStamp timeStamp, Map<String,?> arguments)
Predicate
timeStamp
- the current TimeStamp
.arguments
- a Map
of arguments.
public boolean isMatchable(Map<String,Class<?>> arguments)
Predicate
arguments
- a Map
of arguments.
true
if this predicate is matchable and won't throw an exception at
runtime.public boolean comparablePredicate(Predicate predicate)
AbstractPredicate
comparablePredicate
in class AbstractPredicate<Value<?>>
predicate
- a Predicate
.
protected int partHashCode()
AbstractPredicate
partHashCode
in class AbstractPredicate<Value<?>>
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:10
Copyright (c) 2002-2007 Ergon Informatik AG