org.overlord.sramp.common.derived
Class PolicyDeriver

java.lang.Object
  extended by org.overlord.sramp.common.derived.AbstractXmlDeriver
      extended by 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:

Author:
eric.wittmann@redhat.com

Constructor Summary
PolicyDeriver()
          Constructor.
 
Method Summary
protected  void configureNamespaceMappings(StaticNamespaceContext namespaceContext)
          Configures the namespace mappings that will be available when executing XPath queries.
protected  void derive(Collection<BaseArtifactType> derivedArtifacts, BaseArtifactType artifact, Element rootElement, XPath xpath)
          Derives content for the given artifact.
 
Methods inherited from class org.overlord.sramp.common.derived.AbstractXmlDeriver
createDerivedArtifactCollection, derive, query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyDeriver

public PolicyDeriver()
Constructor.

Method Detail

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.