org.overlord.sramp.common.derived
Class WsdlDeriver

java.lang.Object
  extended by org.overlord.sramp.common.derived.AbstractXmlDeriver
      extended by org.overlord.sramp.common.derived.XsdDeriver
          extended by org.overlord.sramp.common.derived.WsdlDeriver
All Implemented Interfaces:
ArtifactDeriver

public class WsdlDeriver
extends XsdDeriver

Creates derived content from a WSDL document. This will create the derived content as defined in the WSDL model found in the s-ramp specification. The following derived artifact types will (potentially) be created:

Author:
eric.wittmann@redhat.com

Constructor Summary
WsdlDeriver()
          Constructor.
 
Method Summary
protected  void configureNamespaceMappings(StaticNamespaceContext namespaceContext)
          Configures the namespace mappings that will be available when executing XPath queries.
protected  Collection<BaseArtifactType> createDerivedArtifactCollection()
          Sub-classes could provide an alternate collection here.
protected  void derive(Collection<BaseArtifactType> derivedArtifacts, BaseArtifactType artifact, Element rootElement, XPath xpath)
          Derives content for the given artifact.
 void processDefinitions(IndexedArtifactCollection derivedArtifacts, BaseArtifactType artifact, Element definitions, XPath xpath)
          Process the entire wsdl for all derived content.
 
Methods inherited from class org.overlord.sramp.common.derived.XsdDeriver
processSchema
 
Methods inherited from class org.overlord.sramp.common.derived.AbstractXmlDeriver
derive, query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsdlDeriver

public WsdlDeriver()
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 XsdDeriver
See Also:
org.overlord.sramp.common.repository.derived.XsdDeriver#configureNamespaceMappings(org.overlord.sramp.common.query.xpath.StaticNamespaceContext)

createDerivedArtifactCollection

protected Collection<BaseArtifactType> createDerivedArtifactCollection()
Description copied from class: AbstractXmlDeriver
Sub-classes could provide an alternate collection here. For example, the WsdlDeriver creates an indexed artifact collection so that it can reference derived artifacts and make connections/relationships.

Overrides:
createDerivedArtifactCollection in class AbstractXmlDeriver
See Also:
AbstractXmlDeriver.createDerivedArtifactCollection()

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.

Overrides:
derive in class XsdDeriver
Throws:
IOException
See Also:
org.overlord.sramp.common.repository.derived.XsdDeriver#derive(org.overlord.sramp.common.repository.derived.IndexedArtifactCollection, org.s_ramp.xmlns._2010.s_ramp.BaseArtifactType, org.w3c.dom.Element, javax.xml.xpath.XPath)

processDefinitions

public void processDefinitions(IndexedArtifactCollection derivedArtifacts,
                               BaseArtifactType artifact,
                               Element definitions,
                               XPath xpath)
                        throws XPathExpressionException
Process the entire wsdl for all derived content.

Parameters:
derivedArtifacts -
artifact -
definitions -
xpath -
Throws:
XPathExpressionException


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.