public abstract class AbstractXmlDeriver extends Object implements ArtifactDeriver
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractXmlDeriver.XmlDeriverContext
A context passed to the xml deriver's derive method.
|
| 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<org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType> |
createDerivedArtifactCollection()
Sub-classes could provide an alternate collection here.
|
Collection<org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType> |
derive(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
InputStream content)
Given an artifact, this method will return a collection of derived content
for it.
|
protected abstract void |
derive(Collection<org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType> derivedArtifacts,
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact,
AbstractXmlDeriver.XmlDeriverContext xmlDeriverContext)
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<org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType> derive(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.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<org.oasis_open.docs.s_ramp.ns.s_ramp_v1.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<org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType> derivedArtifacts, org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact, AbstractXmlDeriver.XmlDeriverContext xmlDeriverContext) throws IOException
derivedArtifacts - artifact - xmlDeriverContext - IOExceptionprotected void configureNamespaceMappings(StaticNamespaceContext namespaceContext)
namespaceContext - Copyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.