ponderToolkit.compiler.semantics.objects
Class BasicPolicy
java.lang.Object
|
+--ponderToolkit.compiler.semantics.objects.PonderObject
|
+--ponderToolkit.compiler.semantics.objects.BasicPolicy
- Direct Known Subclasses:
- Authorisation, Delegation, Obligation, Refrain
- public abstract class BasicPolicy
- extends PonderObject
Function: Models a basic Policy
|
Field Summary |
protected boolean |
action
|
protected boolean |
subject
Fields |
protected boolean |
target
|
|
Method Summary |
void |
action()
An action attribute is specified. |
abstract void |
checkCompleteness()
Check the policy object for completeness. |
boolean |
hasSubject()
Return true/false depending on whether policy has a subject or not |
boolean |
hasTarget()
Return true/false depending on whether policy has ta arget or not |
void |
subject(boolean inRole)
Subject keyword found. |
void |
target()
Target keyword found. |
| Methods inherited from class ponderToolkit.compiler.semantics.objects.PonderObject |
getEnv, getIsType, getLocation, getName, getParent, getPosition, getSourceText, setEnv, setIsType, setLocation, setName, setParent, setPosition, setSourceText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subject
protected boolean subject
- Fields
target
protected boolean target
action
protected boolean action
BasicPolicy
public BasicPolicy(Table env,
PonderObject parent,
TokenPosition pos)
- Constructor which accepts an environment, the parent PonderObject
and the TokenPosition for this policy
BasicPolicy
public BasicPolicy(Table env)
- Constructor which accepts an environment only
BasicPolicy
public BasicPolicy()
- Constructor which builds a BasicPolicy with no associated
environment
subject
public void subject(boolean inRole)
- Subject keyword found.
target
public void target()
- Target keyword found.
hasTarget
public boolean hasTarget()
- Return true/false depending on whether policy has ta arget or not
hasSubject
public boolean hasSubject()
- Return true/false depending on whether policy has a subject or not
action
public void action()
- An action attribute is specified.
checkCompleteness
public abstract void checkCompleteness()
- Check the policy object for completeness.
Each sub-class implements its own.