|
|||||||||
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.DomainSpecNode
public class XMLPolicyParser.DomainSpecNode
This class represents the abstract DomainSpec, of which there are two extensions: SubjectDomainSpec and TargetDomainSpec. It simply creates a ComplexSubtree object and gives it a name.
Field Summary | |
---|---|
static java.lang.String |
NODE_NAME
This is the end of the name of the DomainSpec node. |
Fields inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode |
---|
attributes, children, name, nodeStr |
Constructor Summary | |
---|---|
XMLPolicyParser.DomainSpecNode(java.lang.String prefix,
boolean objClass,
org.xml.sax.Attributes attrs)
This constructor builds a DomainSpecNode, given the prefix in the node name ("Subject" or "Target"), the flag whether Object Classes should be expected, and the other attributes of the XML element. |
Method Summary | |
---|---|
void |
construct()
This method uses gatherSubtrees method to construct a ComplexSubtree representing the Domain Specification. |
protected java.util.Vector |
gatherSubtrees(java.util.Vector children,
boolean includes)
This method gathers all subtrees defined by the vector of nodes. |
java.lang.String |
getID()
Returns the ID of the Domain. |
Subtree |
getSubtree()
Returns the Subtree of this Domain specification. |
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 java.lang.String NODE_NAME
Constructor Detail |
---|
public XMLPolicyParser.DomainSpecNode(java.lang.String prefix, boolean objClass, org.xml.sax.Attributes attrs)
prefix
- - the prefix of the DomainSpec XML elements; the only
meaningful values are "Subject" and "Target", but this is not
checkedobjClass
- - the flag indicating whether ObjectClass elements
are allowed in this DomainSpec; if true, they are allowed;
otherwise a signal error is signaled, when such elements are
encountered in XMLattrs
- - the attributes of the XML elementMethod Detail |
---|
public void construct() throws PolicyParsingException
construct
in class PolicyXMLNode
PolicyParsingException
- if any syntax or semantics error occurredprotected java.util.Vector gatherSubtrees(java.util.Vector children, boolean includes) throws PolicyParsingException, RFC2253ParsingException, BadURLException
children
- the Vector of Include and Exclude nodesincludes
- the boolean value telling whether Includes should be
expected; if true, it is the first level of nodes and Includes
are allowed (as well as the Excludes); otherwise, it is the second
level of nodes (inside the Includes) and Includes are not allowed
(whilst the Excludes are still allowed)
PolicyParsingException
RFC2253ParsingException
BadURLException
public java.lang.String getID()
public Subtree getSubtree()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |