Class PolicyModelUnmarshaller
- java.lang.Object
-
- com.sun.xml.ws.policy.sourcemodel.PolicyModelUnmarshaller
-
- Direct Known Subclasses:
XmlPolicyModelUnmarshaller
public abstract class PolicyModelUnmarshaller extends Object
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
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static PolicyModelUnmarshallergetXmlUnmarshaller()Factory 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 Detail
-
unmarshalModel
public abstract PolicySourceModel unmarshalModel(Object storage) throws PolicyException
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
public static PolicyModelUnmarshaller 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.
-
-