public abstract class PolicyModelMarshaller
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static PolicyModelMarshaller |
defaultXmlMarshaller |
private static PolicyModelMarshaller |
invisibleAssertionXmlMarshaller |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static PolicyModelMarshaller |
getXmlMarshaller(boolean marshallInvisible)
Factory methods that returns a marshaller instance based on input parameter.
|
abstract void |
marshal(java.util.Collection<PolicySourceModel> models,
java.lang.Object storage)
Marshalls the collection of policy source models using provided storage reference
|
abstract void |
marshal(PolicySourceModel model,
java.lang.Object storage)
Marshalls the policy source model using provided storage reference
|
private static final PolicyModelMarshaller defaultXmlMarshaller
private static final PolicyModelMarshaller invisibleAssertionXmlMarshaller
PolicyModelMarshaller()
public abstract void marshal(PolicySourceModel model, java.lang.Object storage) throws PolicyException
model - policy source model to be marshalledstorage - reference to underlying storage that should be used for model marshallingPolicyException - If marshalling failedpublic abstract void marshal(java.util.Collection<PolicySourceModel> models, java.lang.Object storage) throws PolicyException
models - collection of policy source models to be marshalledstorage - reference to underlying storage that should be used for model marshallingPolicyException - If marshalling failedpublic static PolicyModelMarshaller getXmlMarshaller(boolean marshallInvisible)
marshallInvisible - boolean parameter indicating whether the marshaller
returned by this method does marshall private assertions or not.