gov.lanl.RAD.Impl
Class PolicyReader

java.lang.Object
  |
  +--gov.lanl.RAD.Impl.PolicyReader

public class PolicyReader
extends java.lang.Object

Maintains a mapping from Id to corresponding policyname

 

Constructor Summary
PolicyReader(java.lang.String policynameFile)
          Creates a new HashTable and reads the id-policyname pairs into it from policyname.xml
 
Method Summary
 java.lang.String getPolicyName(java.lang.String Id)
          get the policy name associated with the input indentifier (ResourceName)
 void readPolicies(java.lang.String fileName)
          Opens the policyname XML file and passes it to TraverseTX for traversal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyReader

public PolicyReader(java.lang.String policynameFile)
Creates a new HashTable and reads the id-policyname pairs into it from policyname.xml

Method Detail

readPolicies

public void readPolicies(java.lang.String fileName)
Opens the policyname XML file and passes it to TraverseTX for traversal


getPolicyName

public java.lang.String getPolicyName(java.lang.String Id)
get the policy name associated with the input indentifier (ResourceName)

Parameters:
Id - is used to return the policyname
Returns:
the policyname corresponding to the Id