public final class XmlPolicyModelMarshaller extends PolicyModelMarshaller
| Modifier and Type | Field and Description |
|---|---|
private static PolicyLogger |
LOGGER |
private boolean |
marshallInvisible |
| Constructor and Description |
|---|
XmlPolicyModelMarshaller(boolean marshallInvisible) |
| Modifier and Type | Method and Description |
|---|---|
void |
marshal(java.util.Collection<PolicySourceModel> models,
java.lang.Object storage)
Marshalls the collection of policy source models using provided storage reference
|
private void |
marshal(NamespaceVersion nsVersion,
ModelNode rootNode,
com.sun.xml.txw2.TypedXmlWriter writer)
Marshal given ModelNode and child elements on given TypedXmlWriter.
|
void |
marshal(PolicySourceModel model,
java.lang.Object storage)
Marshalls the policy source model using provided storage reference
|
private void |
marshal(PolicySourceModel model,
com.sun.xml.txw2.output.StaxSerializer writer)
Marshal a policy onto the given StaxSerializer.
|
private void |
marshal(PolicySourceModel model,
com.sun.xml.txw2.TypedXmlWriter writer)
Marshal a policy onto the given TypedXmlWriter.
|
private void |
marshal(PolicySourceModel model,
javax.xml.stream.XMLStreamWriter writer)
Marshal a policy onto the given XMLStreamWriter.
|
private void |
marshalDefaultPrefixes(PolicySourceModel model,
com.sun.xml.txw2.TypedXmlWriter writer)
Write default prefixes onto the given TypedXmlWriter
|
private static void |
marshalPolicyAttributes(PolicySourceModel model,
com.sun.xml.txw2.TypedXmlWriter writer)
Marshal the Policy root element attributes onto the TypedXmlWriter.
|
getXmlMarshallerprivate static final PolicyLogger LOGGER
private final boolean marshallInvisible
public void marshal(PolicySourceModel model, java.lang.Object storage) throws PolicyException
PolicyModelMarshallermarshal in class PolicyModelMarshallermodel - policy source model to be marshalledstorage - reference to underlying storage that should be used for model marshallingPolicyException - If marshalling failedpublic void marshal(java.util.Collection<PolicySourceModel> models, java.lang.Object storage) throws PolicyException
PolicyModelMarshallermarshal in class PolicyModelMarshallermodels - collection of policy source models to be marshalledstorage - reference to underlying storage that should be used for model marshallingPolicyException - If marshalling failedprivate void marshal(PolicySourceModel model, com.sun.xml.txw2.output.StaxSerializer writer) throws PolicyException
model - A policy source model.writer - A Stax serializer.PolicyException - If marshalling failed.private void marshal(PolicySourceModel model, com.sun.xml.txw2.TypedXmlWriter writer) throws PolicyException
model - A policy source model.writer - A typed XML writer.PolicyException - If marshalling failed.private void marshal(PolicySourceModel model, javax.xml.stream.XMLStreamWriter writer) throws PolicyException
model - A policy source model.writer - An XML stream writer.PolicyException - If marshalling failed.private static void marshalPolicyAttributes(PolicySourceModel model, com.sun.xml.txw2.TypedXmlWriter writer)
model - The policy source model.writer - The typed XML writer.private void marshal(NamespaceVersion nsVersion, ModelNode rootNode, com.sun.xml.txw2.TypedXmlWriter writer)
nsVersion - The WS-Policy version.rootNode - The ModelNode that is marshalled.writer - The TypedXmlWriter onto which the content of the rootNode is marshalled.private void marshalDefaultPrefixes(PolicySourceModel model, com.sun.xml.txw2.TypedXmlWriter writer) throws PolicyException
model - The policy source model. May not be null.writer - The TypedXmlWriter. May not be null.PolicyException - If the creation of the prefix to namespace URI map failed.