com.sun.xml.ws.policy.sourcemodel
Class PolicyModelUnmarshaller

java.lang.Object
  extended by 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
static PolicyModelUnmarshaller getXmlUnmarshaller()
          Factory method that returns policy model unmarshaller able to unmarshal policy expressions from XML source.
abstract  PolicySourceModel unmarshalModel(Object storage)
          Unmarshalls single policy source model from provided storage reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.