|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.common.derived.AbstractXmlDeriver
public abstract class AbstractXmlDeriver
Base class for all derivers that are based on XML documents. This base class does some of the boilerplate such as parsing the document. Child classes are responsible for processing the resulting document in interesting ways.
| Constructor Summary | |
|---|---|
AbstractXmlDeriver()
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractXmlDeriver()
| Method Detail |
|---|
public Collection<BaseArtifactType> derive(BaseArtifactType artifact,
InputStream content)
throws IOException
ArtifactDeriver
derive in interface ArtifactDeriverartifact - the artifact to derivecontent - the artifact content
IOExceptionorg.overlord.sramp.common.repository.derived.ArtifactDeriver#derive(org.s_ramp.xmlns._2010.s_ramp.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 -
XPathExpressionException
protected abstract void derive(Collection<BaseArtifactType> derivedArtifacts,
BaseArtifactType artifact,
Element rootElement,
XPath xpath)
throws IOException
derivedArtifacts - artifact - rootElement - xpath -
IOExceptionprotected void configureNamespaceMappings(StaticNamespaceContext namespaceContext)
namespaceContext -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||