org.apache.tuscany.sca.binding.notification.encoding
Class EndpointReferenceWrapperEnDeCoder<ERW extends EndpointReferenceWrapper>

java.lang.Object
  extended by org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder<ERW>
      extended by org.apache.tuscany.sca.binding.notification.encoding.EndpointReferenceWrapperEnDeCoder<ERW>
All Implemented Interfaces:
EnDeCoder<ERW>
Direct Known Subclasses:
BrokerConsumerReferenceEnDeCoder, BrokerProducerReferenceEnDeCoder, ConsumerReferenceEnDeCoder, NewConsumerEnDeCoder, NewProducerEnDeCoder, RemovedBrokerEnDeCoder

public abstract class EndpointReferenceWrapperEnDeCoder<ERW extends EndpointReferenceWrapper>
extends AbstractEnDeCoder<ERW>


Field Summary
 
Fields inherited from class org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder
registry
 
Constructor Summary
EndpointReferenceWrapperEnDeCoder(EncodingRegistry registry)
           
 
Method Summary
 ERW decode(javax.xml.stream.XMLStreamReader reader)
          Decodes an XML stream to an object.
 void encode(ERW encodingObject, javax.xml.stream.XMLStreamWriter writer)
          Encodes an object to the specified stream writer.
 
Methods inherited from class org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.binding.notification.encoding.EnDeCoder
getEncodingObjectQName, getEncodingObjectType
 

Constructor Detail

EndpointReferenceWrapperEnDeCoder

public EndpointReferenceWrapperEnDeCoder(EncodingRegistry registry)
Method Detail

encode

public void encode(ERW encodingObject,
                   javax.xml.stream.XMLStreamWriter writer)
            throws EncodingException
Description copied from interface: EnDeCoder
Encodes an object to the specified stream writer.

Parameters:
encodingObject - Object to be serialized.
writer - Stream writer to which the infoset is serialized.
Throws:
EncodingException - In case of any encoding error.

decode

public ERW decode(javax.xml.stream.XMLStreamReader reader)
                                            throws EncodingException
Description copied from interface: EnDeCoder
Decodes an XML stream to an object.

Parameters:
reader - XML stream from where the encoded XML is read.
Returns:
Encoding object.
Throws:
EncodingException - In case of any encoding error.