Class PolicyModelUnmarshaller
java.lang.Object
com.sun.xml.ws.policy.sourcemodel.PolicyModelUnmarshaller
- Direct Known Subclasses:
XmlPolicyModelUnmarshaller
Abstract class defines interface for policy model unmarshaller implementations that are specific to underlying
persistence layer.
Code that depends on JAX-WS should use com.sun.xml.ws.api.policy.ModelUnmarshaller
instead of this class.
- Author:
- Marek Potociar, Fabian Ritzmann
-
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyModelUnmarshallerFactory method that returns policy model unmarshaller able to unmarshal policy expressions from XML source.abstract PolicySourceModelunmarshalModel(Object storage) Unmarshalls single policy source model from provided storage reference.
-
Method Details
-
unmarshalModel
Unmarshalls single policy source model from provided storage reference. Method expects that the storage cursor to be alread placed on the start of a policy expression. Inner comments and whitespaces are skipped in processing. Any other cursor position results in a PolicyException being thrown.- Parameters:
storage- reference to underlying storage that should be used for model unmarshalling- Returns:
- unmarshalled policy source model. If no policies are found, returns
null. - Throws:
PolicyException- in case of the unmarshalling problems
-
getXmlUnmarshaller
Factory method that returns policy model unmarshaller able to unmarshal policy expressions from XML source. Code that depends on JAX-WS should use com.sun.xml.ws.api.policy.ModelUnmarshaller.getUnmarshaller() instead of this method.- Returns:
- policy model unmarshaller able to unmarshal policy expressions from XML source.
-