org.apache.imperius.spl.datastore.impl
Interface PolicyParser

All Known Implementing Classes:
PolicyParserImpl

public interface PolicyParser


Method Summary
 SPLPolicy createInternalPolicyObject(java.lang.String PolicyRuleName, java.lang.String PolicyString)
           
 void init()
           
 void shutDown()
           
 boolean validate(java.lang.String PolicyRuleName, java.lang.String PolicyString)
           
 boolean validatePolicyString(java.lang.String policyString)
          Determine if the given policy string is properly formatted and parsable.
 

Method Detail

createInternalPolicyObject

SPLPolicy createInternalPolicyObject(java.lang.String PolicyRuleName,
                                     java.lang.String PolicyString)
                                     throws SPLException
Throws:
SPLException

validate

boolean validate(java.lang.String PolicyRuleName,
                 java.lang.String PolicyString)

init

void init()
          throws SPLException
Throws:
SPLException

shutDown

void shutDown()

validatePolicyString

boolean validatePolicyString(java.lang.String policyString)
                             throws SPLException
Determine if the given policy string is properly formatted and parsable.

Parameters:
policyString - the SPL policy.
Returns:
true if the the string is parsable, false otherwise.
Throws:
SPLException - // TODO: why do we need to throw an exception here?