|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor
public class ExtensibleStAXArtifactProcessor
Implementation of an extensible StAX artifact processor. Takes a StAXArtifactProcessorExtensionPoint and delegates to the proper StAXArtifactProcessor by element QName
Constructor Summary | |
---|---|
ExtensibleStAXArtifactProcessor(StAXArtifactProcessorExtensionPoint processors,
javax.xml.stream.XMLInputFactory inputFactory,
javax.xml.stream.XMLOutputFactory outputFactory,
Monitor monitor)
Constructs a new ExtensibleStAXArtifactProcessor. |
Method Summary | ||
---|---|---|
javax.xml.namespace.QName |
getArtifactType()
Returns the type of artifact handled by this artifact processor. |
|
java.lang.Class<java.lang.Object> |
getModelType()
Returns the type of model handled by this artifact processor. |
|
|
read(java.io.InputStream is,
java.lang.Class<M> type)
Read a model from an InputStream. |
|
java.lang.Object |
read(javax.xml.stream.XMLStreamReader source)
Reads a model from an XMLStreamReader. |
|
void |
resolve(java.lang.Object model,
ModelResolver resolver)
Resolve references from this model to other models. |
|
void |
write(java.lang.Object model,
java.io.OutputStream os)
Write a model to an OutputStream. |
|
void |
write(java.lang.Object model,
javax.xml.stream.XMLStreamWriter outputSource)
Writes a model to an XMLStreamWriter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensibleStAXArtifactProcessor(StAXArtifactProcessorExtensionPoint processors, javax.xml.stream.XMLInputFactory inputFactory, javax.xml.stream.XMLOutputFactory outputFactory, Monitor monitor)
processors
- inputFactory
- outputFactory
- Method Detail |
---|
public java.lang.Object read(javax.xml.stream.XMLStreamReader source) throws ContributionReadException, javax.xml.stream.XMLStreamException
StAXArtifactProcessor
read
in interface StAXArtifactProcessor<java.lang.Object>
source
- The XMLStreamReader
ContributionReadException
javax.xml.stream.XMLStreamException
public void write(java.lang.Object model, javax.xml.stream.XMLStreamWriter outputSource) throws ContributionWriteException, javax.xml.stream.XMLStreamException
StAXArtifactProcessor
write
in interface StAXArtifactProcessor<java.lang.Object>
model
- A model representing the sourceoutputSource
- The XML stream writer
ContributionWriteException
javax.xml.stream.XMLStreamException
public void resolve(java.lang.Object model, ModelResolver resolver) throws ContributionResolveException
ArtifactProcessor
resolve
in interface ArtifactProcessor<java.lang.Object>
model
- The model to resolveresolver
- The resolver to use to resolve referenced models
ContributionResolveException
public <M> M read(java.io.InputStream is, java.lang.Class<M> type) throws ContributionReadException
is
- The artifact InputStreamtype
- Model type
ContributionReadException
public void write(java.lang.Object model, java.io.OutputStream os) throws ContributionWriteException
model
- os
-
ContributionWriteException
public javax.xml.namespace.QName getArtifactType()
StAXArtifactProcessor
getArtifactType
in interface StAXArtifactProcessor<java.lang.Object>
public java.lang.Class<java.lang.Object> getModelType()
ArtifactProcessor
getModelType
in interface ArtifactProcessor<java.lang.Object>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |