version-1.30
Last change
on this file since 4adc697 was
8780cbec,
checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago
|
ABAC sources from Cobham
|
-
Property mode set to
100644
|
File size:
447 bytes
|
Line | |
---|
1 | package edu.stanford.peer.rbtm.engine; |
---|
2 | |
---|
3 | import edu.stanford.peer.rbtm.credential.*; |
---|
4 | import edu.stanford.peer.rbtm.util.*; |
---|
5 | |
---|
6 | /** |
---|
7 | * A simple predicate to fail only on role expressions which are roles. |
---|
8 | */ |
---|
9 | public class Simp implements Predicate { |
---|
10 | |
---|
11 | /** apply the predicate to determine if a role expression isn't a role */ |
---|
12 | public boolean test(EntityExpression obj) { |
---|
13 | if(obj instanceof Role) { |
---|
14 | return false; |
---|
15 | } |
---|
16 | return true; |
---|
17 | } |
---|
18 | |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.