issrg.pba.rbac.xmlpolicy
Class XMLPolicyParser.RepositoryPolicyNode

java.lang.Object
  extended by issrg.pba.rbac.xmlpolicy.PolicyXMLNode
      extended by issrg.pba.rbac.xmlpolicy.XMLPolicyParser.RepositoryPolicyNode
Enclosing class:
XMLPolicyParser

public class XMLPolicyParser.RepositoryPolicyNode
extends PolicyXMLNode

This class represents the RepositoryPolicy node. It knows URLs of all repositories listed.


Field Summary
 
Fields inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode
attributes, children, name, nodeStr
 
Constructor Summary
XMLPolicyParser.RepositoryPolicyNode(org.xml.sax.Attributes attrs)
          This constructor builds a RepositoryPolicyNode given the set of attributes of the XML element.
 
Method Summary
 void construct()
          This method gets the URLs, but it does not check if they can be interpreted by any URLHandler.
 java.lang.String[] getURLs()
          This method returns an array of repository URLs declared in this policy.
 
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
 

Constructor Detail

XMLPolicyParser.RepositoryPolicyNode

public XMLPolicyParser.RepositoryPolicyNode(org.xml.sax.Attributes attrs)
This constructor builds a RepositoryPolicyNode given the set of attributes of the XML element. It also sets repositoryPolicy of this XMLPolicyParser, so it can be used later.

Parameters:
attrs - - the attributes of the XML element
Method Detail

construct

public void construct()
               throws PolicyParsingException
This method gets the URLs, but it does not check if they can be interpreted by any URLHandler.

Overrides:
construct in class PolicyXMLNode
Throws:
PolicyParsingException - if any syntax or semantics error occurred

getURLs

public java.lang.String[] getURLs()
This method returns an array of repository URLs declared in this policy. It is never null, an does not contain null entries.