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

java.lang.Object
  extended by com.sun.xml.ws.policy.sourcemodel.PolicyModelUnmarshaller
      extended by com.sun.xml.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller
Direct Known Subclasses:
ModelUnmarshaller

public class XmlPolicyModelUnmarshaller
extends PolicyModelUnmarshaller

Unmarshal XML policy expressions.

Author:
Marek Potociar, Fabian Ritzmann

Constructor Summary
protected XmlPolicyModelUnmarshaller()
          Creates a new instance of XmlPolicyModelUnmarshaller
 
Method Summary
protected  PolicySourceModel createSourceModel(NamespaceVersion nsVersion, String id, String name)
          Allow derived classes to pass in a custom instance of PolicySourceModel.
 PolicySourceModel unmarshalModel(Object storage)
          See base method documentation.
 
Methods inherited from class com.sun.xml.ws.policy.sourcemodel.PolicyModelUnmarshaller
getXmlUnmarshaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlPolicyModelUnmarshaller

protected XmlPolicyModelUnmarshaller()
Creates a new instance of XmlPolicyModelUnmarshaller

Method Detail

unmarshalModel

public PolicySourceModel unmarshalModel(Object storage)
                                 throws PolicyException
See base method documentation.

Specified by:
unmarshalModel in class PolicyModelUnmarshaller
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

createSourceModel

protected PolicySourceModel createSourceModel(NamespaceVersion nsVersion,
                                              String id,
                                              String name)
Allow derived classes to pass in a custom instance of PolicySourceModel.

Parameters:
nsVersion -
id -
name -
Returns:


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