/** * * This begins the scanning of the contained object. * * @return - The PolicySet/Policy that was scanned. */ public Object scan() { if (this.policyObject == null) { return null; } if (this.callback != null) { if (this.callback.onBeginScan(this.policyObject) == CallbackResult.STOP) { return this.policyObject; } } if (this.policyObject instanceof PolicyType) { this.scanPolicy(null, (PolicyType) this.policyObject); } else if (this.policyObject instanceof PolicySetType) { this.scanPolicySet(null, (PolicySetType) this.policyObject); } else { logger.error("Unknown class type: " + this.policyObject.getClass().getCanonicalName()); } if (this.callback != null) { this.callback.onFinishScan(this.policyObject); } return this.policyObject; }
if (this.callback.onPreVisitPolicySet(parent, policySet) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onPostVisitPolicySet(parent, policySet) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onPreVisitPolicy(parent, policy) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onPreVisitRule(policy, rule) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onPostVisitRule(policy, rule) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onVariable(policy, (VariableDefinitionType) o) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onPostVisitPolicy(parent, policy) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onAttribute(parent, target, attribute) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onAttribute(parent, target, attribute) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onPreVisitPolicy(parent, policy) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onPreVisitRule(policy, rule) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onPostVisitRule(policy, rule) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onVariable(policy, (VariableDefinitionType) o) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onPostVisitPolicy(parent, policy) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onPreVisitPolicySet(parent, policySet) == CallbackResult.STOP) { return CallbackResult.STOP; if (this.callback.onPostVisitPolicySet(parent, policySet) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onAdvice(parent, expression, ob) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onObligation(parent, expression, ob) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onObligation(parent, expression, ob) == CallbackResult.STOP) { return CallbackResult.STOP;
if (this.callback.onAdvice(parent, expression, ob) == CallbackResult.STOP) { return CallbackResult.STOP;
/** * * This begins the scanning of the contained object. * * @return - The PolicySet/Policy that was scanned. */ public Object scan() { if (this.policyObject == null) { return null; } if (this.callback != null) { if (this.callback.onBeginScan(this.policyObject) == CallbackResult.STOP) { return this.policyObject; } } if (this.policyObject instanceof PolicyType) { this.scanPolicy(null, (PolicyType) this.policyObject); } else if (this.policyObject instanceof PolicySetType) { this.scanPolicySet(null, (PolicySetType) this.policyObject); } else { logger.error("Unknown class type: " + this.policyObject.getClass().getCanonicalName()); } if (this.callback != null) { this.callback.onFinishScan(this.policyObject); } return this.policyObject; }
/** * Scans the list of conditions. * * @param rule * @param condition * @return */ protected CallbackResult scanConditions(RuleType rule, ConditionType condition) { if (condition != null) { if (this.callback != null) { if (this.callback.onCondition(rule, condition) == CallbackResult.STOP) { return CallbackResult.STOP; } } } return CallbackResult.CONTINUE; }
/** * Scans the list of conditions. * * @param rule * @param condition * @return */ protected CallbackResult scanConditions(RuleType rule, ConditionType condition) { if (condition != null) { if (this.callback != null) { if (this.callback.onCondition(rule, condition) == CallbackResult.STOP) { return CallbackResult.STOP; } } } return CallbackResult.CONTINUE; }