java.lang.Object
com.sun.xml.ws.policy.sourcemodel.PolicyModelTranslator
- Direct Known Subclasses:
ModelTranslator
This class provides a method for translating a
PolicySourceModel
structure to a normalized Policy
expression.
The resulting Policy is disconnected from its model, thus any additional changes in the model will have no effect on the Policy
expression.- Author:
- Marek Potociar, Fabian Ritzmann
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyModelTranslator
Method returns thread-safe policy model translator instance.translate
(PolicySourceModel model) The method translatesPolicySourceModel
structure into normalizedPolicy
expression.
-
Constructor Details
-
PolicyModelTranslator
- Throws:
PolicyException
-
-
Method Details
-
getTranslator
Method returns thread-safe policy model translator instance. This method is only intended to be used by code that has no dependencies on JAX-WS. Otherwise use com.sun.xml.ws.policy.api.ModelTranslator.- Returns:
- A policy model translator instance.
- Throws:
PolicyException
- If instantiating a PolicyAssertionCreator failed.
-
translate
The method translatesPolicySourceModel
structure into normalizedPolicy
expression. The resulting Policy is disconnected from its model, thus any additional changes in model will have no effect on the Policy expression.- Parameters:
model
- the model to be translated into normalized policy expression. Must not benull
.- Returns:
- translated policy expression in it's normalized form.
- Throws:
PolicyException
- in case of translation failure
-