|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.xmlpolicy.PolicyXMLNode issrg.pba.rbac.xmlpolicy.XMLPolicyParser.TargetAccessPolicyNode
public class XMLPolicyParser.TargetAccessPolicyNode
This class represents the TargetAccessPolicy XML node. It indexes all the target access rules by action name.
Field Summary | |
---|---|
static char |
ACTIONS_SEPARATORS
This is the string of character separators between actions in the action list |
static int |
IF_SEQUENCE
|
static int |
OBLIGATIONS_SEQUENCE
|
static int |
OBLIGATIONS_SHIFT
|
static int |
ROLE_LIST_SEQUENCE
|
static int |
TARGET_LIST_SEQUENCE
|
Fields inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
attributes, children, name, nodeStr |
Constructor Summary | |
---|---|
XMLPolicyParser.TargetAccessPolicyNode(org.xml.sax.Attributes attrs)
This constructor builds a TargetAccessPolicyNode given the attributes of the XML element. |
Method Summary | |
---|---|
void |
construct()
This method checks that the TargetAccesses contained in this policy are semantically correct and indexes them by the action name. |
java.util.Set |
getAllNeededAttributes()
This method returns the Set of environment nodes, which represent all of the environmental (coordination) attributes in the current target access policy. |
java.util.Map |
getRules()
This method returns a Map of TargetAccess rules, indexed by action name. |
Methods inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
addChild, addString, getAttributes, getChildren, getName, getString, toString, toXML, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ROLE_LIST_SEQUENCE
public static final int TARGET_LIST_SEQUENCE
public static final int IF_SEQUENCE
public static final int OBLIGATIONS_SEQUENCE
public static final int OBLIGATIONS_SHIFT
public static final char ACTIONS_SEPARATORS
Constructor Detail |
---|
public XMLPolicyParser.TargetAccessPolicyNode(org.xml.sax.Attributes attrs)
attrs
- - the attributes of the XML elementMethod Detail |
---|
public java.util.Set getAllNeededAttributes()
public void construct() throws PolicyParsingException
construct
in class PolicyXMLNode
PolicyParsingException
- if any syntax or semantics error occurredpublic java.util.Map getRules()
There are two more rules with keys ActionPolicyNode.class and DomainPolicyNode.class, with the values of corresponding types. The ActionPolicyNode in this map defines all the actions declared in this policy. The DomainPolicyNode in this map defines all the Target Domains declared in this policy, and can tell the overall target coverage domain.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |