Class PolicyModelMarshaller
java.lang.Object
com.sun.xml.ws.policy.sourcemodel.PolicyModelMarshaller
- Direct Known Subclasses:
XmlPolicyModelMarshaller
Abstract class defines interface for policy model marshaller implementations that are specific to underlying
persistence layer.
- Author:
- Marek Potociar
-
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyModelMarshallergetXmlMarshaller(boolean marshallInvisible) Factory methods that returns a marshaller instance based on input parameter.abstract voidmarshal(PolicySourceModel model, Object storage) Marshalls the policy source model using provided storage referenceabstract voidmarshal(Collection<PolicySourceModel> models, Object storage) Marshalls the collection of policy source models using provided storage reference
-
Method Details
-
marshal
Marshalls the policy source model using provided storage reference- Parameters:
model- policy source model to be marshalledstorage- reference to underlying storage that should be used for model marshalling- Throws:
PolicyException- If marshalling failed
-
marshal
public abstract void marshal(Collection<PolicySourceModel> models, Object storage) throws PolicyException Marshalls the collection of policy source models using provided storage reference- Parameters:
models- collection of policy source models to be marshalledstorage- reference to underlying storage that should be used for model marshalling- Throws:
PolicyException- If marshalling failed
-
getXmlMarshaller
Factory methods that returns a marshaller instance based on input parameter.- Parameters:
marshallInvisible- boolean parameter indicating whether the marshaller returned by this method does marshall private assertions or not.- Returns:
- policy model marshaller that either marshalls private assertions or not based on the input argument.
-