class NormalizedModelGenerator extends PolicyModelGenerator
PolicyModelGenerator.PolicySourceModelCreator| Modifier and Type | Field and Description |
|---|---|
private static PolicyLogger |
LOGGER |
private PolicyModelGenerator.PolicySourceModelCreator |
sourceModelCreator |
| Constructor and Description |
|---|
NormalizedModelGenerator(PolicyModelGenerator.PolicySourceModelCreator sourceModelCreator) |
| Modifier and Type | Method and Description |
|---|---|
protected ModelNode |
translate(ModelNode parentAssertion,
NestedPolicy policy)
Iterates through a nested policy and returns the corresponding policy info model.
|
PolicySourceModel |
translate(Policy policy)
This method translates a
Policy into a
policy infoset. |
getCompactGenerator, getGenerator, getNormalizedGenerator, translate, translateprivate static final PolicyLogger LOGGER
private final PolicyModelGenerator.PolicySourceModelCreator sourceModelCreator
NormalizedModelGenerator(PolicyModelGenerator.PolicySourceModelCreator sourceModelCreator)
public PolicySourceModel translate(Policy policy) throws PolicyException
PolicyModelGeneratorPolicy into a
policy infoset. The resulting
PolicySourceModel is disconnected from the input policy, thus any
additional changes in the policy will have no effect on the PolicySourceModel.translate in class PolicyModelGeneratorpolicy - The policy to be translated into an infoset. May be null.PolicyException - in case Policy translation fails.protected ModelNode translate(ModelNode parentAssertion, NestedPolicy policy)
PolicyModelGeneratortranslate in class PolicyModelGeneratorparentAssertion - The parent node.policy - The nested policy.