FileDocCategorySizeDatePackage
PolicyModelMarshaller.javaAPI DocExample4405Tue May 29 16:56:38 BST 2007com.sun.xml.ws.policy.sourcemodel

PolicyModelMarshaller

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

Fields Summary
private static final PolicyModelMarshaller
defaultXmlMarshaller
private static final PolicyModelMarshaller
invisibleAssertionXmlMarshaller
Constructors Summary
PolicyModelMarshaller()
Default constructor to ensure we have a common model marshaller 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 instantiate
    
Methods Summary
public static com.sun.xml.ws.policy.sourcemodel.PolicyModelMarshallergetXmlMarshaller(boolean marshallInvisible)
Factory methods that returns a marshaller instance based on input parameter.

param
marshallInvisible boolean parameter indicating whether the marshaller returned by this method does marshall private assertions or not.
return
policy model marshaller that either marshalls private assertions or not based on the input argument.

        return (marshallInvisible) ? invisibleAssertionXmlMarshaller : defaultXmlMarshaller;
    
public abstract voidmarshal(PolicySourceModel model, java.lang.Object storage)
Marshalls the policy source model using provided storage reference

param
model policy source model to be marshalled
param
storage reference to underlying storage that should be used for model marshalling
throws
PolicyException If marshalling failed

public abstract voidmarshal(java.util.Collection models, java.lang.Object storage)
Marshalls the collection of policy source models using provided storage reference

param
models collection of policy source models to be marshalled
param
storage reference to underlying storage that should be used for model marshalling
throws
PolicyException If marshalling failed