From 31d794be59cb2d1bf264df79f471b0c8d5f5a457 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:40:26 +0000 Subject: Moving to site trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882841 13f79535-47bb-0310-9956-ffa450edef68 --- .../processor/ExtensibleStAXArtifactProcessor.html | 464 +++++++++++++++++++++ 1 file changed, 464 insertions(+) create mode 100644 site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXArtifactProcessor.html (limited to 'site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXArtifactProcessor.html') diff --git a/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXArtifactProcessor.html b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXArtifactProcessor.html new file mode 100644 index 0000000000..2c839b885e --- /dev/null +++ b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXArtifactProcessor.html @@ -0,0 +1,464 @@ + + + + + + +ExtensibleStAXArtifactProcessor + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.tuscany.sca.contribution.processor +
+Class ExtensibleStAXArtifactProcessor

+
+java.lang.Object
+  extended by org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor
+
+
+
All Implemented Interfaces:
ArtifactProcessor<java.lang.Object>, StAXArtifactProcessor<java.lang.Object>
+
+
+
+
public class ExtensibleStAXArtifactProcessor
extends java.lang.Object
implements StAXArtifactProcessor<java.lang.Object>
+ + +

+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.QNamegetArtifactType() + +
+          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.
+ + + + + +
+<M> M
+
read(java.io.InputStream is, + java.lang.Class<M> type) + +
+          Read a model from an InputStream.
+ java.lang.Objectread(javax.xml.stream.XMLStreamReader source) + +
+          Reads a model from an XMLStreamReader.
+ voidresolve(java.lang.Object model, + ModelResolver resolver) + +
+          Resolve references from this model to other models.
+ voidwrite(java.lang.Object model, + java.io.OutputStream os) + +
+          Write a model to an OutputStream.
+ voidwrite(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
+ +

+ExtensibleStAXArtifactProcessor

+
+public ExtensibleStAXArtifactProcessor(StAXArtifactProcessorExtensionPoint processors,
+                                       javax.xml.stream.XMLInputFactory inputFactory,
+                                       javax.xml.stream.XMLOutputFactory outputFactory,
+                                       Monitor monitor)
+
+
Constructs a new ExtensibleStAXArtifactProcessor. +

+

+
Parameters:
processors -
inputFactory -
outputFactory -
+
+ + + + + + + + +
+Method Detail
+ +

+read

+
+public java.lang.Object read(javax.xml.stream.XMLStreamReader source)
+                      throws ContributionReadException,
+                             javax.xml.stream.XMLStreamException
+
+
Description copied from interface: StAXArtifactProcessor
+
Reads a model from an XMLStreamReader. +

+

+
Specified by:
read in interface StAXArtifactProcessor<java.lang.Object>
+
+
+
Parameters:
source - The XMLStreamReader +
Returns:
A model representation of the input. +
Throws: +
ContributionReadException +
javax.xml.stream.XMLStreamException
+
+
+
+ +

+write

+
+public void write(java.lang.Object model,
+                  javax.xml.stream.XMLStreamWriter outputSource)
+           throws ContributionWriteException,
+                  javax.xml.stream.XMLStreamException
+
+
Description copied from interface: StAXArtifactProcessor
+
Writes a model to an XMLStreamWriter. +

+

+
Specified by:
write in interface StAXArtifactProcessor<java.lang.Object>
+
+
+
Parameters:
model - A model representing the source
outputSource - The XML stream writer +
Throws: +
ContributionWriteException +
javax.xml.stream.XMLStreamException
+
+
+
+ +

+resolve

+
+public void resolve(java.lang.Object model,
+                    ModelResolver resolver)
+             throws ContributionResolveException
+
+
Description copied from interface: ArtifactProcessor
+
Resolve references from this model to other models. For example references + from a composite to another one, or references from a composite to a WSDL + model. +

+

+
Specified by:
resolve in interface ArtifactProcessor<java.lang.Object>
+
+
+
Parameters:
model - The model to resolve
resolver - The resolver to use to resolve referenced models +
Throws: +
ContributionResolveException
+
+
+
+ +

+read

+
+public <M> M read(java.io.InputStream is,
+                  java.lang.Class<M> type)
+       throws ContributionReadException
+
+
Read a model from an InputStream. +

+

+
+
+
+
Parameters:
is - The artifact InputStream
type - Model type +
Returns:
The model +
Throws: +
ContributionReadException
+
+
+
+ +

+write

+
+public void write(java.lang.Object model,
+                  java.io.OutputStream os)
+           throws ContributionWriteException
+
+
Write a model to an OutputStream. +

+

+
+
+
+
Parameters:
model -
os - +
Throws: +
ContributionWriteException
+
+
+
+ +

+getArtifactType

+
+public javax.xml.namespace.QName getArtifactType()
+
+
Description copied from interface: StAXArtifactProcessor
+
Returns the type of artifact handled by this artifact processor. +

+

+
Specified by:
getArtifactType in interface StAXArtifactProcessor<java.lang.Object>
+
+
+ +
Returns:
The type of artifact handled by this artifact processor
+
+
+
+ +

+getModelType

+
+public java.lang.Class<java.lang.Object> getModelType()
+
+
Description copied from interface: ArtifactProcessor
+
Returns the type of model handled by this artifact processor. +

+

+
Specified by:
getModelType in interface ArtifactProcessor<java.lang.Object>
+
+
+ +
Returns:
The type of model handled by this artifact processor
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3