org.overlord.sramp.common.derived
Class PolicyDeriver
java.lang.Object
org.overlord.sramp.common.derived.AbstractXmlDeriver
org.overlord.sramp.common.derived.PolicyDeriver
- All Implemented Interfaces:
- ArtifactDeriver
public class PolicyDeriver
- extends AbstractXmlDeriver
Creates derived content from a Policy document. This will create the derived content as
defined in the Policy model found in the s-ramp specification. The following derived
artifact types will (potentially) be created:
- PolicyExpression
- PolicyAttachment
- Author:
- eric.wittmann@redhat.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyDeriver
public PolicyDeriver()
- Constructor.
configureNamespaceMappings
protected void configureNamespaceMappings(StaticNamespaceContext namespaceContext)
- Description copied from class:
AbstractXmlDeriver
- Configures the namespace mappings that will be available when executing XPath
queries.
- Overrides:
configureNamespaceMappings in class AbstractXmlDeriver
- See Also:
org.overlord.sramp.common.repository.derived.AbstractXmlDeriver#configureNamespaceMappings(org.overlord.sramp.common.query.xpath.StaticNamespaceContext)
derive
protected void derive(Collection<BaseArtifactType> derivedArtifacts,
BaseArtifactType artifact,
Element rootElement,
XPath xpath)
throws IOException
- Description copied from class:
AbstractXmlDeriver
- Derives content for the given artifact.
- Specified by:
derive in class AbstractXmlDeriver
- Throws:
IOException- See Also:
AbstractXmlDeriver.derive(java.util.Collection, org.s_ramp.xmlns._2010.s_ramp.BaseArtifactType, org.w3c.dom.Element, javax.xml.xpath.XPath)
Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.