|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.policy.bean.basic.BasicPart
org.openpermis.policy.bean.basic.BasicPartBean
org.openpermis.policy.bean.basic.predicate.False
public class False
A predicate that evaluates always to false.
Constructor Summary | |
---|---|
False(SerialNumber serialNumber)
Creates a Predicate that is always false. |
Method Summary | |
---|---|
void |
accept(List<PartBean> parents,
MultiPartBeanVisitor visitor)
Allows traversing the model according to the visitor pattern. |
protected boolean |
comparablePart(BasicPart part)
Check if the part specified is comparable to this part. |
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 |
matches(TimeStamp timeStamp,
Map<String,?> arguments)
Try to match the predicate according to time and arguments. |
protected int |
partHashCode()
Returns the hash code of the extended part state. |
Methods inherited from class org.openpermis.policy.bean.basic.BasicPartBean |
---|
accept, addPropertyChangeListener, equalSerialNumber, findBySerialNumber, firePropertyChange, getPartBeanType, getSerialNumber, getSerialNumberString, instanceOf, notifyIdentityChange, notifyNameChange, removePropertyChangeListener, toShortString |
Methods inherited from class org.openpermis.policy.bean.basic.BasicPart |
---|
appendDetails, appendPartDetails, areIdentitiesUnique, areNamesUnique, checkLocalConsistency, checkLocalPartConsistency, equalPart, equals, getIdentity, getName, getSimpleClassName, hashCode, hasPartIdentity, hasPartName, isIdentityValid, isNameValid, reportProblem, setIdentity, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openpermis.policy.bean.PartBean |
---|
accept, addPropertyChangeListener, checkLocalPartConsistency, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, instanceOf, removePropertyChangeListener, toShortString |
Methods inherited from interface org.openpermis.policy.Part |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public False(SerialNumber serialNumber)
serialNumber
- the serial number of this part.Method Detail |
---|
public boolean matches(TimeStamp timeStamp, Map<String,?> arguments)
Predicate
matches
in interface Predicate
timeStamp
- the current TimeStamp
.arguments
- a Map
of arguments.
public boolean isMatchable(Map<String,Class<?>> arguments)
Predicate
isMatchable
in interface Predicate
arguments
- a Map
of arguments.
true
if this predicate is matchable and won't throw an exception at
runtime.protected boolean comparablePart(BasicPart part)
BasicPart
comparablePart
in class BasicPart
part
- the part to check.BasicPart
true
if the part supplied is comparable to this part.protected int partHashCode()
BasicPart
partHashCode
in class BasicPart
BasicPart
,
BasicUtilities.multiHashCode(int...)
public void accept(List<PartBean> parents, MultiPartBeanVisitor visitor)
PartBean
Each part bean must call method visitor.visit(this)
accept
in interface PartBean
parents
- the path of parents of this part.visitor
- a PartBeanVisitor
.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG