org.overlord.sramp.common.derived
Interface ArtifactDeriver

All Known Implementing Classes:
AbstractXmlDeriver, PolicyDeriver, WsdlDeriver, XsdDeriver

public interface ArtifactDeriver

Provides a way to derive artifacts. Classes that implement this interface must be able to parse a particular type of artifact and produce all of the derived artifacts for it. Examples include an XSD deriver, WSDL deriver, etc.

Author:
eric.wittmann@redhat.com

Method Summary
 Collection<BaseArtifactType> derive(BaseArtifactType artifact, InputStream contentStream)
          Given an artifact, this method will return a collection of derived content for it.
 

Method Detail

derive

Collection<BaseArtifactType> derive(BaseArtifactType artifact,
                                    InputStream contentStream)
                                    throws IOException
Given an artifact, this method will return a collection of derived content for it.

Parameters:
artifact - the artifact to derive
contentStream - the artifact content
Returns:
derived content
Throws:
IOException


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