FileDocCategorySizeDatePackage
PolicyModelUnmarshaller.javaAPI DocExample3841Tue May 29 16:56:40 BST 2007com.sun.xml.ws.policy.sourcemodel

PolicyModelUnmarshaller

public abstract class PolicyModelUnmarshaller extends Object
Abstract class defines interface for policy model unmarshaller implementations that are specific to underlying persistence layer.
author
Marek Potociar

Fields Summary
private static final PolicyModelUnmarshaller
xmlUnmarshaller
Constructors Summary
PolicyModelUnmarshaller()
Default constructor to ensure we have a common model unmarshaller base, but only our API classes implemented in this package will be able to extend this abstract class. This is to restrict attempts of extending the class from a client code.

    
                                                  
     
        // nothing to intitialize
    
Methods Summary
public static com.sun.xml.ws.policy.sourcemodel.PolicyModelUnmarshallergetXmlUnmarshaller()
Factory method that returns policy model unmarshaller able to unmarshal policy expressions from XML source.

return
policy model unmarshaller able to unmarshal policy expressions from XML source.

        return xmlUnmarshaller;
    
public abstract PolicySourceModelunmarshalModel(java.lang.Object storage)
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.

param
storage reference to underlying storage that should be used for model unmarshalling
return
unmarshalled policy source model. If no policies are found, returns {@code null}.
throws
PolicyException in case of the unmarshalling problems