public abstract class AbstractXmlDeriver extends Object implements ArtifactDeriver
| Constructor and Description |
|---|
AbstractXmlDeriver()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Collection<BaseArtifactType> |
derive(BaseArtifactType artifact,
InputStream content)
Given an artifact, this method will return a collection of derived content
for it.
|
protected abstract void |
derive(Collection<BaseArtifactType> derivedArtifacts,
BaseArtifactType artifact,
Element rootElement,
XPath xpath)
Derives content for the given artifact.
|
protected Object |
query(XPath xpath,
Element context,
String query,
QName returnType)
Performs an x-query against the given context node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlinkpublic Collection<BaseArtifactType> derive(BaseArtifactType artifact, InputStream content) throws IOException
ArtifactDeriverderive in interface ArtifactDeriverartifact - the artifact to derivecontent - the artifact contentIOExceptionorg.overlord.sramp.common.repository.derived.ArtifactDeriver#derive(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType, java.io.InputStream)protected Collection<BaseArtifactType> createDerivedArtifactCollection()
WsdlDeriver
creates an indexed artifact collection so that it can reference derived artifacts and make
connections/relationships.protected Object query(XPath xpath, Element context, String query, QName returnType) throws XPathExpressionException
xpath - query - returnType - XPathExpressionExceptionprotected abstract void derive(Collection<BaseArtifactType> derivedArtifacts, BaseArtifactType artifact, Element rootElement, XPath xpath) throws IOException
derivedArtifacts - artifact - rootElement - xpath - IOExceptionprotected void configureNamespaceMappings(StaticNamespaceContext namespaceContext)
namespaceContext - Copyright © 2011–2013 JBoss, a division of Red Hat. All rights reserved.