org.apache.tuscany.sca.binding.notification.encoding
Class EndpointReferenceSequenceEnDeCoder<ERS extends EndpointReferenceSequence>

java.lang.Object
  extended by org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder<ERS>
      extended by org.apache.tuscany.sca.binding.notification.encoding.EndpointReferenceSequenceEnDeCoder<ERS>
All Implemented Interfaces:
EnDeCoder<ERS>
Direct Known Subclasses:
EndConsumersEnDeCoder, EndProducersEnDeCoder, NeighborBrokerConsumersEnDeCoder, NewConsumerResponseEnDeCoder, NewProducerResponseEnDeCoder

public abstract class EndpointReferenceSequenceEnDeCoder<ERS extends EndpointReferenceSequence>
extends AbstractEnDeCoder<ERS>


Field Summary
 
Fields inherited from class org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder
registry
 
Constructor Summary
EndpointReferenceSequenceEnDeCoder(EncodingRegistry registry)
           
 
Method Summary
 ERS decode(javax.xml.stream.XMLStreamReader reader)
          Decodes an XML stream to an object.
protected abstract  java.lang.String decodeSequenceTypeAttribute(javax.xml.stream.XMLStreamReader reader)
           
 void encode(ERS encodingObject, javax.xml.stream.XMLStreamWriter writer)
          Encodes an object to the specified stream writer.
protected abstract  void encodeSequenceTypeAttribute(ERS encodingObject, javax.xml.stream.XMLStreamWriter 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

EndpointReferenceSequenceEnDeCoder

public EndpointReferenceSequenceEnDeCoder(EncodingRegistry registry)
Method Detail

encode

public void encode(ERS 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.

encodeSequenceTypeAttribute

protected abstract void encodeSequenceTypeAttribute(ERS encodingObject,
                                                    javax.xml.stream.XMLStreamWriter writer)
                                             throws EncodingException
Throws:
EncodingException

decode

public ERS 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.

decodeSequenceTypeAttribute

protected abstract java.lang.String decodeSequenceTypeAttribute(javax.xml.stream.XMLStreamReader reader)