|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectXGTRBAC.LogicalExpr
public class LogicalExpr
This class contains methods and members for evaluating logical expressions. It is instantiated in [XURAS/XPRAS]_DTDScanner class (setLogicalExpr/addPredicate method).
| Nested Class Summary | |
|---|---|
class |
LogicalExpr.Parameter
An inner "Parameter" class * |
class |
LogicalExpr.SimplePredicate
An inner "SimplePredicate" class * |
| Field Summary | |
|---|---|
private java.lang.String |
opcode
|
private java.util.LinkedList |
PredicateList
|
| Constructor Summary | |
|---|---|
LogicalExpr()
Creates a new instance of LogicalExpr |
|
| Method Summary | |
|---|---|
java.lang.Object |
addPredicate(int type)
Adds a new predicate to the PredicateList |
boolean |
evaluate(java.lang.Object subject,
java.lang.String cred_type)
Evaluates the logical expression given a credential type |
java.lang.String |
getOpcode()
Returns the opcode |
java.lang.Object |
getPredicate(int index)
Returns the predicate of the logical expression |
int |
getPredicateCount()
Returns the number of predicates for this logical expression |
boolean |
getResult(boolean[] status)
Returns the result for a logical expression evaluation |
void |
setOpcode(java.lang.String op)
Sets the opcode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String opcode
private java.util.LinkedList PredicateList
| Constructor Detail |
|---|
public LogicalExpr()
| Method Detail |
|---|
public java.lang.String getOpcode()
public void setOpcode(java.lang.String op)
op - The opcode supplied as Stringpublic int getPredicateCount()
public java.lang.Object getPredicate(int index)
index - The integer index of the credential condition in the AssignConditionList
public java.lang.Object addPredicate(int type)
type - The type of the predicate
(0:simple predicate, 1: logical expression)
public boolean evaluate(java.lang.Object subject,
java.lang.String cred_type)
throws java.lang.Exception
subject - The subject of evaluation (User or Role) supplied as Objectcred_type - The credential type name supplied as String
java.lang.Exceptionpublic boolean getResult(boolean[] status)
status - The status array supplied as boolean[]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||